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

# Hubspot

> Learn more about how to set up our Hubspot integration.

In order to get started using your own credentials for our Hubspot integration, you will need to first register your Hubspot application. After that, you will need to enter your Client ID and Client Secret on the RootFi dashboard.

These steps are elaborated upon in detail below.

***

### Part 1: Register your Hubspot application

1. Go to [https://app.hubspot.com/developer/](https://app.hubspot.com/developer/)
2. Navigate to Apps in the sidebar and click 'Create app' button.
   <img src="https://mintcdn.com/rootfi-commenda/qu4Xde-IYZdny7Px/images/crm/hubspot/create-app-button.png?fit=max&auto=format&n=qu4Xde-IYZdny7Px&q=85&s=55565012c3a06daf90eaff14763ec9fa" alt="" width="2802" height="238" data-path="images/crm/hubspot/create-app-button.png" />
3. Fill in the basic information in App Info tab.
   <img src="https://mintcdn.com/rootfi-commenda/qu4Xde-IYZdny7Px/images/crm/hubspot/basic_info.png?fit=max&auto=format&n=qu4Xde-IYZdny7Px&q=85&s=b245625396dca68011f45c9579866902" alt="" width="1806" height="1132" data-path="images/crm/hubspot/basic_info.png" />
4. Go to the ‘Auth’ tab and fill in the following fields:
   * **Redirect URL**: This is the URL where the user will be redirected after they have authorized the app. Use [ROOTFI CALLBACK URL](/api-reference/v3/overview/environments#callback-urls) as the redirect URL.
   * **Scopes**: Select the scopes you need for your integration. For RootFi, you will need the following scopes:
     <img src="https://mintcdn.com/rootfi-commenda/qu4Xde-IYZdny7Px/images/crm/hubspot/scopes_list.png?fit=max&auto=format&n=qu4Xde-IYZdny7Px&q=85&s=8435916a5e73b49c449d83a210225478" alt="" width="1350" height="1160" data-path="images/crm/hubspot/scopes_list.png" />
5. Click on the 'Create App' button to save the changes.
6. Visit the 'Auth' tab again and copy the 'Client ID' and 'Client Secret' values.
   <img src="https://mintcdn.com/rootfi-commenda/qu4Xde-IYZdny7Px/images/crm/hubspot/auth_cred.png?fit=max&auto=format&n=qu4Xde-IYZdny7Px&q=85&s=07d7cbdddfbf1d22bf984c835a26a3d7" alt="" width="2880" height="1800" data-path="images/crm/hubspot/auth_cred.png" />

### Part 2: Enter Your Client ID and Client Secret on the RootFi Dashboard

1. Login to the RootFi dashboard
2. Select the 'Integrations' tab on the sidebar - here you will see a list of platforms you can integrate with
3. Click the 'Set Up' button which is present on the Hubspot card.
4. When the form opens up simply enter the 'Client ID' and 'Client Secret' which you generated on the Hubspot Developer App and click 'Save'

***

### Supported data models (V4)

HubSpot is available as a CRM source on the V4 Unified API. The following data models are synced:

| Data model    | Reference                                                         |
| ------------- | ----------------------------------------------------------------- |
| Contacts      | [Contacts](/api-reference/v4/unified/contacts/overview)           |
| Companies     | [Companies](/api-reference/v4/unified/companies/overview)         |
| Owners        | [Owners](/api-reference/v4/unified/owners/overview)               |
| Leads         | [Leads](/api-reference/v4/unified/leads/overview)                 |
| Opportunities | [Opportunities](/api-reference/v4/unified/opportunities/overview) |
| Pipelines     | [Pipelines](/api-reference/v4/unified/pipelines/overview)         |
| Notes         | [Notes](/api-reference/v4/unified/notes/overview)                 |
| Tasks         | [Tasks](/api-reference/v4/unified/tasks/overview)                 |

Contacts expand into `addresses`, `phone_numbers`, and `external_links` child records via the `expand` query parameter.
