---
title: "Connect Hubspot Email Inboxes"
method: POST
path: "/email/sources/hubspot/inboxes"
tags: ["email"]
---

# Connect Hubspot Email Inboxes

`POST /email/sources/hubspot/inboxes`

Create one email source per selected inbox. Idempotent.

## Request body

- HubSpotEmailInboxConnectRequest — Connect one or more HubSpot inboxes as email sources.
  - `external_inbox_ids` string[], required
  - `backfill_months` integer

## Response `200`

Successful Response

- EmailAccountRead[]
  - `id` string, uuid, required
  - `tenant_id` string, uuid, required
  - `provider` string, required
  - `email_address` string, nullable
  - `status` string, required
  - `backfill_months` integer, required
  - `composio_auth_config_id` string, nullable
  - `composio_connected_account_id` string, nullable
  - `external_inbox_id` string, nullable
  - `last_synced_at` string, date-time, nullable
  - `last_error` string, nullable
  - `backfill_started_at` string, date-time, nullable
  - `backfill_completed_at` string, date-time, nullable
  - `backfill_imported_count` integer

## Other responses

- `400` — HubSpot is not connected for this workspace
- `422` — No inboxes selected, unknown inbox id, or bad backfill window

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/3ad158624c53/schema)
