Skip to main content
Connect your Postmark account to export email templates created in Brew directly to your Postmark server.
Moving your sending off Postmark instead? See Migrate from Postmark to Brew.
Postmark Integration

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.
Postmark is now connected to Brew.

Export a Template

Once connected, you can export any email to Postmark:
  1. Open an email you’ve created in Brew
  2. Click Send
  3. Choose to export the template to Postmark
  4. 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.
To find your template, go to Servers, click into your server, then click the Templates tab.
Postmark fills a template only from the TemplateModel 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:

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:

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.