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.
That’s it. 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.

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:

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.