Skip to content

Postmark

Connect your Postmark account to Optail.

  1. Log in to the Postmark dashboard
  2. Select your Server (or create one)
  3. Go to Settings > API Tokens
  4. Copy the Server API Token

The Server Token is scoped to a single server and is used for sending emails. Do not use your Account API Token.

  1. Go to Providers > Connect Provider
  2. Select Postmark
  3. Enter a display name (e.g., “Postmark Transactional”)
  4. Paste your Server Token
  5. Click Connect — Optail validates by calling Postmark’s server info endpoint
Terminal window
curl -X POST https://api.optail.io/v1/providers \
-H "Authorization: Bearer ms_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"providerType": "POSTMARK",
"displayName": "Postmark Transactional",
"credentials": {
"serverToken": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}'
  1. In Postmark, go to Sender Signatures > Add Domain
  2. Add your sending domain
  3. Add the required DNS records (DKIM via CNAME, Return-Path via CNAME)
  4. Click Verify once DNS records propagate

Postmark requires either a verified domain or a verified sender signature before you can send.

To receive delivery events in Optail:

  1. In Postmark, go to your Server > Settings > Webhooks
  2. Click Add webhook
  3. Set the Webhook URL to: https://webhooks.optail.io/v1/ingest/postmark
  4. Select the events: Delivery, Bounce, Spam Complaint, Open, Click
  5. Save the webhook
FieldDescription
serverTokenPostmark Server API Token (UUID format).