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

# HubSpot Integration

> Export reviewed Migma emails to HubSpot as draft campaign work.

Use HubSpot when your team wants Migma to prepare the email, then finish review, list selection, automation, or send inside HubSpot.

## What you can do

<CardGroup cols={2}>
  <Card title="Connect with OAuth" icon="key">
    Authorize HubSpot from brand integrations. No API key copy-paste is required.
  </Card>

  <Card title="Export reviewed email" icon="arrow-up-tray">
    Send HubSpot-ready HTML from Publish after reviewing the email in Migma.
  </Card>

  <Card title="Preserve HubL" icon="code-bracket">
    Keep HubSpot personalization syntax in the exported email.
  </Card>

  <Card title="Keep a Migma record" icon="clipboard-document-list">
    External campaign handoff is recorded in Migma when campaigns are exported or scheduled.
  </Card>
</CardGroup>

## Connect HubSpot

<Steps>
  <Step title="Open brand integrations">
    Open the brand, then go to **Integrations** and find **HubSpot** under export destinations.
  </Step>

  <Step title="Click Connect">
    Sign in to HubSpot and approve access for the account you want this brand to use.
  </Step>

  <Step title="Confirm the account">
    Migma shows the connected HubSpot account so you can verify the destination before export.
  </Step>
</Steps>

## Export to HubSpot

<Steps>
  <Step title="Review the email in Migma">
    Check content, links, mobile rendering, and preflight before export.
  </Step>

  <Step title="Open Publish">
    Choose **HubSpot** from the export destinations.
  </Step>

  <Step title="Create the draft">
    Migma prepares HubSpot-compatible HTML and opens the HubSpot handoff when export succeeds.
  </Step>

  <Step title="Finish in HubSpot">
    Review the draft, choose final audience or automation settings, then send from HubSpot.
  </Step>
</Steps>

## Personalization

Migma preserves HubSpot syntax that you include in the email. Use HubL or contact tokens intentionally, and preview them with HubSpot data before sending.

```text theme={null}
Create a lifecycle email that greets {{ contact.firstname }} and mentions {{ company.name }}.
Use HubSpot HubL syntax.
```

## Related docs

<CardGroup cols={2}>
  <Card title="Export Options" icon="download" href="/email-editor/export-options">
    Compare platform export and file export.
  </Card>

  <Card title="Platform Integrations" icon="puzzle-piece" href="/integrations/platform-integrations">
    See how HubSpot differs from sending providers.
  </Card>
</CardGroup>
