Skip to main content
Connect your Klaviyo account to export emails created in Brew directly into Klaviyo as reusable CODE templates. Use Brew for the creative work; keep your campaign and flow execution in Klaviyo.
Moving your whole account off Klaviyo instead? See Migrate from Klaviyo to Brew.
Klaviyo Integration

Connect

1

Connect your Klaviyo account

In Brew, go to Integrations and click the Klaviyo card. You’ll be redirected to Klaviyo to authorize the connection. Brew never sees your Klaviyo password or API keys.
That’s it. Klaviyo is now connected to Brew.

Export a Template

1

Open the email

Open the email you want to export in Brew.
2

Send → Export template

Click Send in the top right and select Export template.
3

Choose Klaviyo

Pick Klaviyo as the destination, name the template, review the subject and preview text, then click Export.

Where It Lands

The template lands in Content → Templates as a CODE template, on the Email: saved tab. Use it in a campaign or flow.

What the Template Contains

When you export to Klaviyo, Brew:
  1. Renders the email to production-ready HTML
  2. Adds the preview text from the export flow
  3. Swaps Brew unsubscribe placeholders for Klaviyo’s unsubscribe tag format
  4. Creates a reusable CODE template in your Klaviyo account
Brew keeps the shared subject and preview fields in the export flow so you can review them before handoff. Klaviyo stores the HTML template, and you can set the final subject line when you use the template in Klaviyo.

From an Agent or Code

From an agent, export_email over MCP exports a design to Klaviyo. From code, send POST /v1/emails/{emailId}/export with "provider": "klaviyo". Connect Klaviyo 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 Klaviyo 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 Klaviyo account where you are an Owner, Admin or Manager. Klaviyo allows only those roles to authorize an app.

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.