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

# Hubspot

> Integrate your application with the Hubspot API

## 🚀 Quickstart

Connect to Hubspot with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Hubspot*.

> [!NOTE]
>
> Nango has a [Nango-managed OAuth app](https://nango.dev/docs/guides/auth/auth-guide.md#nango-managed-oauth-apps) you can use in development and production. Select it when you create the integration.

**2. Authorize Hubspot**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then log in to Hubspot. Later, you'll let your users do the same directly from your app.

**3. Call the Hubspot API**

Let's make your first request to the Hubspot API (fetch a list of contacts). Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/crm/v3/objects/contacts?properties=email,phone" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/crm/v3/objects/contacts',
>     params: { properties: "email,phone" },
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

To use your own OAuth app instead of the Nango-managed one, follow the setup guide linked below.

> [!WARNING]
>
> **HubSpot Marketplace installation flow is not supported.** Nango only supports the standard OAuth flow — all connections must be initiated through Nango (e.g. via the Connect UI or the [Nango Auth API](https://nango.dev/docs/guides/primitives/auth.md)). If your HubSpot app is listed on the HubSpot Marketplace, users must connect through your Nango-powered flow, not via the Marketplace install button.

> [!NOTE]
>
> **Deleting a connection revokes its HubSpot refresh token by default.** If multiple Nango connections share the same HubSpot refresh token, deleting one of them would revoke that token for all connections using it. To opt out of this for a given connection, set `skipTokenRevocation: true` in that connection's metadata using the [update connection metadata endpoint](https://nango.dev/docs/reference/backend/http-api/connections/update-metadata.md) before deleting it.

## 📚 Hubspot Integration Guides

Nango maintained guides for common use cases.

* [How to register your own Hubspot OAuth app](https://nango.dev/docs/api-integrations/hubspot/how-to-register-your-own-hubspot-api-oauth-app)\
  Register an OAuth app with Hubspot and obtain credentials to connect it to Nango

Official docs: [Hubspot API docs](https://developers.hubspot.com/docs/reference/api/overview)

## 🧩 Pre-built syncs & tools for Hubspot

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Companies

| Function name | Description | Type |
| - | - | - |
| `companies` | Sync companies from HubSpot CRM | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Contacts

| Function name | Description | Type |
| - | - | - |
| `contacts` | Sync contacts | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Deals

| Function name | Description | Type |
| - | - | - |
| `deals` | Sync deals with amount, close date, stage, owner, description, and associated companies and contacts | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Marketing Emails

| Function name | Description | Type |
| - | - | - |
| `marketing-emails` | Sync marketing emails from HubSpot | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Owners

| Function name | Description | Type |
| - | - | - |
| `owners` | Sync HubSpot owners with names, email, user IDs, and archive status | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Products

| Function name | Description | Type |
| - | - | - |
| `products` | Sync product records with pricing, SKU, quantity, and billing details | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Tasks

| Function name | Description | Type |
| - | - | - |
| `tasks` | Sync tasks with type, title, priority, assignee, due date, notes, and related contacts, companies, and deals | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Tickets

| Function name | Description | Type |
| - | - | - |
| `service-tickets` | Sync service tickets with subject, content, owner, pipeline, stage, category, and priority | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Users

| Function name | Description | Type |
| - | - | - |
| `users` | Sync provisioned users with role IDs, primary team, and admin status | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Others

| Function name | Description | Type |
| - | - | - |
| `batch-create-companies` | Create multiple companies at once | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `batch-update-companies` | Update multiple companies at once | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `change-user-role` | Update a HubSpot user's role and team assignments | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `clone-marketing-email` | Clone an existing marketing email | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-association` | Associate two records together | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-company` | Create a company record | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-contact` | Create a contact record | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-deal` | Create a deal record in HubSpot | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-marketing-email` | Create a marketing email in HubSpot | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-note` | Create a HubSpot note with body, timestamp, owner, optional attachments, and an explicit association to a contact, company, deal, or ticket. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-property` | Create a custom CRM property for a specified HubSpot object type | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-task` | Create a HubSpot task with type, title, priority, assignee, due date, notes, and optional associations to contacts, companies, or deals | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-ticket` | Create a support ticket in HubSpot CRM | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-user` | Provision a HubSpot user with email, role, and team assignments | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-a-workflow` | Delete an automation workflow | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-company` | Delete a company record | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-contact` | Delete a contact record | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-deal` | Delete a deal record | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-marketing-email` | Delete a marketing email | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-task` | Delete a HubSpot task by record ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-ticket` | Delete a support ticket | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-user` | Delete a HubSpot provisioned user by ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `fetch-account-information` | Retrieve portal account details, currency settings, timezone, and hosting region | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `fetch-custom-objects` | Retrieve HubSpot custom object schemas for enterprise accounts | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `fetch-pipelines` | List pipelines and stages for an object type, defaulting to deals | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `fetch-properties` | List CRM property metadata for a specified HubSpot object type | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `fetch-roles` | List available user roles for a HubSpot enterprise account | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-company` | Get a company by ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-contact` | Get a contact by ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-deal` | Get a deal by ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-marketing-email` | Get a marketing email by ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-owner` | Get an owner by ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-ticket` | Get a ticket by ID | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-companies` | List company records | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-contacts` | List contact records | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-deals` | List deal records from HubSpot CRM | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-forms` | List forms | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-marketing-emails` | List marketing emails | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-tickets` | List support tickets | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search-companies` | Search companies by criteria | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search-deals` | Search deals by criteria | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search-tickets` | Search tickets by criteria | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-company` | Update a company record | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-contact` | Update a contact record | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-deal` | Update a deal record in HubSpot CRM | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-marketing-email` | Update a marketing email | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-task` | Update a HubSpot task's fields, owner, due date, and associations | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-ticket` | Update a support ticket | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `whoami` | Retrieve the current authenticated HubSpot user's ID and email | [Tool](https://nango.dev/docs/guides/functions/tools.md) |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.