
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.
4
Paste your secret key
Copy your Secret Key (private key) from the same page and paste it into Brew. Click Connect.
Export a Template
Once connected:- Open an email you’ve created in Brew
- Click Send
- Choose Export template to Mailjet
- 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.Merge Tags and Unsubscribe Link
Mailjet fills the recipient’s address itself and every other field from theVariables 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-TemplateLanguageheader
[[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:
INTEGRATION_NOT_CONNECTED: Mailjet isn’t connected to this brand. Connect it on the Integrations page.EXPORT_UNSUPPORTED: Mailjet rejected a field value it doesn’t support. Change the value and export again.EXPORT_PROVIDER_ERROR: Mailjet refused or failed the export. Check the connection and retry.
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:- 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.