InTouch Hub · Blue Isle Software

Postmark

Send and track transactional email with templates and bounce tracking via the Postmark API.

emailpostmarktransactionalbounces

Postmark

Send and track transactional email through the Postmark API. Send raw or template-based emails, list bounces, and pull delivery and outbound statistics.

Operations

Operation Method / Endpoint Purpose
send-email POST /email Send a single transactional email (HTML and/or text).
send-email-template POST /email/withTemplate Send an email rendered from a Postmark template.
list-bounces GET /bounces List bounced messages, optionally filtered by type/recipient.
get-delivery-stats GET /deliverystats Summary of bounce counts and inactive addresses.
get-outbound-stats GET /stats/outbound Aggregate outbound send statistics.

apiKey setup

  1. Sign in to the Postmark dashboard.
  2. Open your Server, then go to the API Tokens tab.
  3. Copy the Server API Token and pass it as the apiKey input. The tool sends it as the X-Postmark-Server-Token header.
  4. For testing without sending real mail, use the special token value POSTMARK_API_TEST.

Note: the from address must be a verified Sender Signature (or be on a verified domain) in your Postmark account, or the send will be rejected.

Inputs

Output

Every call prints a single JSON envelope:

{ "result": "<response body as JSON string>", "status": "<http status code>" }

On failure it prints { "error": "...", "status": "0", "result": "" } and exits non-zero, marking the step as failed.

Examples

Send a transactional email

operation:  send-email
apiKey:     <your-server-token>
from:       [email protected]
to:         [email protected]
subject:    Your receipt
textBody:   Thanks for your purchase!
tag:        receipt

A successful send returns { "MessageID": "...", "SubmittedAt": "...", "ErrorCode": 0, "Message": "OK", "To": "[email protected]" }.

Send via a template

operation:      send-email-template
apiKey:         <your-server-token>
from:           [email protected]
to:             [email protected]
templateAlias:  welcome
templateModel:  {"name":"Sam","product_url":"https://app.example.com"}

List recent hard bounces

operation:  list-bounces
apiKey:     <your-server-token>
type:       HardBounce
count:      50

Check delivery stats

operation:  get-delivery-stats
apiKey:     <your-server-token>