> ## 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.

<Steps>
  <Step title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Hubspot*.
  </Step>

  <Step title="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.
  </Step>

  <Step title="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 [secret key](https://app.nango.dev/dev/environment-settings), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

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

      <Tab title="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({ secretKey: '<NANGO-SECRET-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);
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/reference/sdks/node#get-a-connection-with-credentials) or [API](/reference/api/connection/get).

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

  <Step title="Implement Nango in your app">
    Follow our [Auth implementation guide](/guides/primitives/auth) to integrate Nango in your app.

    To obtain your own production credentials, follow the setup guide linked below.
  </Step>
</Steps>

<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](/guides/primitives/auth)). If your HubSpot app is listed on the HubSpot Marketplace, users must connect through your Nango-powered flow, not via the Marketplace install button.
</Warning>

## 📚 Hubspot Integration Guides

Nango maintained guides for common use cases.

* [How to register your own Hubspot OAuth app](/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 & actions for Hubspot

Enable them in your dashboard. Extend and customize to fit your needs.

### Companies

| Function name | Description                     | Type                                           | Source code                                                                                                     |
| ------------- | ------------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `companies`   | Sync companies from HubSpot CRM | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/companies.ts) |

### Contacts

| Function name | Description   | Type                                           | Source code                                                                                                    |
| ------------- | ------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `contacts`    | Sync contacts | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/contacts.ts) |

### Deals

| Function name | Description                                                                                          | Type                                           | Source code                                                                                                 |
| ------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `deals`       | Sync deals with amount, close date, stage, owner, description, and associated companies and contacts | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/deals.ts) |

### Marketing Emails

| Function name      | Description                        | Type                                           | Source code                                                                                                            |
| ------------------ | ---------------------------------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `marketing-emails` | Sync marketing emails from HubSpot | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/marketing-emails.ts) |

### Owners

| Function name | Description                                                         | Type                                           | Source code                                                                                                  |
| ------------- | ------------------------------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| `owners`      | Sync HubSpot owners with names, email, user IDs, and archive status | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/owners.ts) |

### Products

| Function name | Description                                                           | Type                                           | Source code                                                                                                    |
| ------------- | --------------------------------------------------------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `products`    | Sync product records with pricing, SKU, quantity, and billing details | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/products.ts) |

### Tasks

| Function name | Description                                                                                                  | Type                                           | Source code                                                                                                 |
| ------------- | ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `tasks`       | Sync tasks with type, title, priority, assignee, due date, notes, and related contacts, companies, and deals | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/tasks.ts) |

### Tickets

| Function name     | Description                                                                                | Type                                           | Source code                                                                                                           |
| ----------------- | ------------------------------------------------------------------------------------------ | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `service-tickets` | Sync service tickets with subject, content, owner, pipeline, stage, category, and priority | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/service-tickets.ts) |

### Users

| Function name | Description                                                          | Type                                           | Source code                                                                                                 |
| ------------- | -------------------------------------------------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `users`       | Sync provisioned users with role IDs, primary team, and admin status | [Sync](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/hubspot/syncs/users.ts) |

***
