Moving your sending off Postmark instead? See Migrate from Postmark to Brew.

Connect
1
Open the Postmark integration in Brew
In Brew, go to Integrations and click the Postmark card.
2
Go to your server's API Tokens tab
In Postmark, click Servers, select the server you want to use, then go to the API Tokens tab.
3
Copy your Server API token
Copy the Server API token shown on the page. To get a new one, generate it on the same page.
4
Paste the token in Brew
Go back to Brew, paste the Server API token, and click Connect.
Export a Template
Once connected, you can export any email to Postmark:- Open an email you’ve created in Brew
- Click Send
- Choose to export the template to Postmark
- Give it a name, check the subject line, and click Export
Where It Lands
The template appears in Postmark on your server’s Templates tab, ready to use for transactional or broadcast emails.Merge Tags and Unsubscribe Link
Postmark fills a template only from theTemplateModel you send with the message. Brew keeps each field’s name, so send the same keys:
The
To address doesn’t fill {{ email }}, so include email in the model if the template uses it. Liquid logic such as {% if %} or a filter like upcase has no Postmark equivalent. Brew stops the export and names the tag.
Postmark’s template validation fills in sample values, so a preview that looks complete doesn’t confirm your model’s keys.
The unsubscribe link becomes {{{ pm:unsubscribe }}}. Postmark requires it on Broadcast streams and makes it optional on Transactional streams.
Postmark reference: template syntax and Templates API.
From an Agent or Code
Connect Postmark in the app first. Then, with Brew connected to your AI assistant over MCP, ask in plain English:“Export my welcome email to Postmark as a template.”From code, send with . Export is free. Pass
dryRun: true to check the design and the connection without creating a template. A dry run doesn’t test whether Postmark accepts the template: only a real export does.
The template takes the email’s title unless you pass templateName (up to 100 characters), and the response returns its templateId. If an export fails, the error says why:
INTEGRATION_NOT_CONNECTED: Postmark isn’t connected to this brand. Connect it on the Integrations page.EXPORT_UNSUPPORTED: Postmark rejected a field value it doesn’t support. Change the value and export again.EXPORT_PROVIDER_ERROR: Postmark refused or failed the export. Check the connection and retry.
Requirements
- A Postmark account with at least one server
- A Server API token
Need Help?
Our team is ready to support you at every step of your journey with Brew. Choose the option that works best for you:- Self-Service Tools
- Talk to Our Team
Search Documentation
Type in the “Ask any question” search bar at the top left to instantly find relevant documentation pages.
Ask ChatGPT or Claude
Click here to open the Copy page menu at the top of this page, then send the page to ChatGPT, Claude, or your editor.