Skip to main content
Connect your Mailjet account to export emails created in Brew directly to Mailjet as templates.
Mailjet Integration

Connect

1

Open the Mailjet integration in Brew

In Brew, go to Integrations and click the Mailjet card.
2

Navigate to API Key Management in Mailjet

In Mailjet, go to Account Settings → API Key Management (SMTP & API Settings).
3

Paste your API key

Copy your API Key (public key) and paste it into Brew.
Use your account’s primary API Key, not a subaccount key. Subaccount keys cannot access the templates API and exports will fail.
4

Paste your secret key

Copy your Secret Key (private key) from the same page and paste it into Brew. Click Connect.
Mailjet is now connected to Brew.

Export a Template

Once connected:
  1. Open an email you’ve created in Brew
  2. Click Send
  3. Choose Export template to Mailjet
  4. Give it a name, check the subject line, and click Export

Where It Lands

The template appears in Mailjet under Content → Email Templates, ready to use. From there, Preview lets you check the email in mobile and desktop views.

Editing and Re-exporting

From the template list, Edit opens the HTML code editor. Brew templates are not editable in Mailjet’s drag-and-drop editor. Make design changes in Brew and re-export. To send a test email, open the Edit view and use the Preview & Test option. Mailjet fills the recipient’s address itself and every other field from the Variables object you send with the message. Brew keeps each field’s name, so send the same keys, matching case: Every recipient has an address, so Brew drops a fallback on email. Dotted paths such as {{ trigger.orderId }} stay as written, but Mailjet variables are flat, so rename them before exporting. To read a Mailjet contact property instead of a send variable, edit the tag to Mailjet’s [[data:firstname:"there"]] form. Enable template language on the send with the setting for your transport:
  • Send API v3.1: TemplateLanguage: true
  • Send API v3: Mj-TemplateLanguage
  • SMTP: the X-MJ-TemplateLanguage header
The unsubscribe link becomes [[UNSUB_LINK]]. Mailjet reference: template language and tag reference.

From an Agent or Code

Connect Mailjet in the app first. Then, with Brew connected to your AI assistant over MCP, ask in plain English:
“Export my welcome email to Mailjet 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 Mailjet 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: If your Mailjet account has more than one active sender, pass senderEmail to choose one. With exactly one, Brew picks it for you.

Requirements

  • A Mailjet account
  • Your API Key and Secret Key (Account Settings → API Key Management)
Subaccount API keys can’t create templates. Use your account’s primary API Key.

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.