
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.From an Agent or Code
From an agent,export_email over MCP exports a design to Mailjet. From code, send POST /v1/emails/{emailId}/export with "provider": "mailjet". Connect Mailjet in the app first.
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.
If your Mailjet account has more than one active sender, pass senderEmail to choose one. With exactly one, Brew picks it for you.
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.
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.