Postmark
Postmark Setup
Section titled “Postmark Setup”Connect your Postmark account to Optail.
Prerequisites
Section titled “Prerequisites”- A Postmark account
- A verified sending domain or sender signature in Postmark
1. Get Your Server Token
Section titled “1. Get Your Server Token”- Log in to the Postmark dashboard
- Select your Server (or create one)
- Go to Settings > API Tokens
- 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.
2. Connect in Optail
Section titled “2. Connect in Optail”Via Dashboard
Section titled “Via Dashboard”- Go to Providers > Connect Provider
- Select Postmark
- Enter a display name (e.g., “Postmark Transactional”)
- Paste your Server Token
- Click Connect — Optail validates by calling Postmark’s server info endpoint
Via API
Section titled “Via API”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" } }'3. Verify Your Sending Domain
Section titled “3. Verify Your Sending Domain”- In Postmark, go to Sender Signatures > Add Domain
- Add your sending domain
- Add the required DNS records (DKIM via CNAME, Return-Path via CNAME)
- Click Verify once DNS records propagate
Postmark requires either a verified domain or a verified sender signature before you can send.
4. Configure Webhooks (Optional)
Section titled “4. Configure Webhooks (Optional)”To receive delivery events in Optail:
- In Postmark, go to your Server > Settings > Webhooks
- Click Add webhook
- Set the Webhook URL to:
https://webhooks.optail.io/v1/ingest/postmark - Select the events: Delivery, Bounce, Spam Complaint, Open, Click
- Save the webhook
Credential Reference
Section titled “Credential Reference”| Field | Description |
|---|---|
serverToken | Postmark Server API Token (UUID format). |