> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brew.new/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot

> Connect HubSpot with one-click OAuth to export Brew templates into HubSpot Marketing Hub.

Connect your HubSpot account to export emails created in Brew directly to your HubSpot Marketing Hub. No manual copy-pasting, design in Brew and export to HubSpot in one click.

<Frame>
  <img src="https://mintcdn.com/brew-796f053a/PUK-uvvrJtpQ2VX2/images/integrations/HubSpot_OG.png?fit=max&auto=format&n=PUK-uvvrJtpQ2VX2&q=85&s=e566bfcd32698319a4cce70e5975d99d" alt="HubSpot Integration" className="w-full rounded-xl" width="1024" height="571" data-path="images/integrations/HubSpot_OG.png" />
</Frame>

## Setup

In Brew, go to **Integrations** and click the **HubSpot** card. You'll be redirected to HubSpot to authorize the connection. Brew never sees your HubSpot password or API keys.

After authorizing, you'll be redirected back to Brew. The HubSpot integration shows as **Connected**.

## Exporting a Template

<Steps>
  <Step title="Export an email from Brew">
    After creating an email in Brew, click **Send** and select **HubSpot** as the destination.
  </Step>

  <Step title="Find your email in HubSpot">
    In HubSpot, go to **Marketing → Email**. Click **Create email**, select **Regular**, then choose **Custom**.
  </Step>

  <Step title="Open the Brew folder">
    Your exported emails are saved in the **Brew** folder. Re-exporting an email with the same name updates the existing email rather than creating a duplicate.
  </Step>
</Steps>

## Requirements

* A HubSpot account with **Marketing Hub** access
* Permission to authorize third-party app connections

<Snippet file="need-help.mdx" />
