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

# HubSpot CRM API

> HubSpot CRM contacts, deals, and companies

The **HubSpot CRM API** integration lets your agents access and manage contacts, deals, companies, and activities in HubSpot CRM.

## Prerequisites

* A **HubSpot account** - [Sign up](https://www.hubspot.com)
* A **Vatel AI organization** and at least **one agent**

## Configuration

### Step 1: Get a Service Key from HubSpot

1. In HubSpot, click the **gear icon** in the top-right to open Settings.
2. In the left sidebar, click **Integrations** > **Service Keys**.
3. Click **Create service key**, give it a name, and select the appropriate scopes for your use case.
4. Once created, click **Copy** to copy the key.

<img src="https://mintcdn.com/devpro-38b0cd42/VsvYFqPK3_23fK9D/images/integrations/hubspot-vatel-1.png?fit=max&auto=format&n=VsvYFqPK3_23fK9D&q=85&s=4ca2e9b35f8862102eb1ff5a8aee9af4" alt="HubSpot Settings" width="1898" height="899" data-path="images/integrations/hubspot-vatel-1.png" />

### Step 2: Connect the integration in Vatel

1. In the Vatel sidebar, click **Integrations**.
2. Click **Add Integration** in the top-right.
3. Select **HubSpot CRM API**.
4. Set **Credential scope** to **Organization-wide (all agents)** or restrict it as needed.
5. Paste your copied key into the **Bearer Token** field.
6. Click **Connect Integration**.

<img src="https://mintcdn.com/devpro-38b0cd42/VsvYFqPK3_23fK9D/images/integrations/hubspot-vatel-2.png?fit=max&auto=format&n=VsvYFqPK3_23fK9D&q=85&s=885da276de3c9e185a01b04d659e40ae" alt="Connect HubSpot CRM API" width="2922" height="1451" data-path="images/integrations/hubspot-vatel-2.png" />

### Step 3: Use the integration in your agent graph

1. Open an agent and go to its graph editor.
2. In the left sidebar under **Integrations**, you will see **HubSpot CRM API** listed. Click it to add it as a node.
3. In the node panel that opens on the right, give the node a **Title**, then select an **Operation** from the dropdown (e.g. create contact, get deal, update company).
4. Fill in any relevant field values or map them from graph variables.
5. Click **Save Changes**.
6. Start a call to test the node in your agent flow.

<img src="https://mintcdn.com/devpro-38b0cd42/VsvYFqPK3_23fK9D/images/integrations/hubspot-vatel-3.png?fit=max&auto=format&n=VsvYFqPK3_23fK9D&q=85&s=ef9d1917c1ac3bb609283e379adf9bec" alt="HubSpot CRM API node in graph" width="2920" height="1470" data-path="images/integrations/hubspot-vatel-3.png" />
