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

# HubSpot

> HubSpot CRM records (contacts, companies, deals, tickets), CRM search, deal pipelines and stages, and owners through the CRM v3 API.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/hubspot.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=1122c6087309bd5ad5136aec7262e263)

[Web Catalog · Analytics](https://docs.webrouter.net/data-apis.md?category=analytics)

Needs&#x20;

`HUBSPOT_ACCESS_TOKEN`

Endpoints

6

Auth

Key in header

[Vendor docs](https://developers.hubspot.com/docs/api-reference/legacy/crm/understanding-the-crm)

&#x20;·&#x20;

[Pricing](https://www.hubspot.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `HUBSPOT_ACCESS_TOKEN` | required | a HubSpot private app or service key access token with the crm.objects.\*.read scopes needed |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Records return only default properties unless 'properties' names the ones wanted; list the available ones with hubspot.properties.list.
* Paging is a cursor: send paging.next.after from the previous answer as 'after'. No paging.next means the last page.
* Deal stages and pipelines come back as internal ids (e.g. dealstage 'appointmentscheduled'); map them to labels with hubspot.pipelines.list.
* Search is limited to 5 requests per second per account and 10,000 results per query; newly changed records take a few moments to appear in search.

## Endpoints

GET

List CRM records

A page of records of one object type (contacts, companies, deals, tickets...).

[Open](#hubspot-objects-list)

GET

Get a CRM record

One record by its record id, or by a unique property such as email with idProperty.

[Open](#hubspot-objects-get)

POST

Search CRM records

Filter, sort and full-text search records of one object type, e.g. open deals over an amount or contacts at a company domain.

[Open](#hubspot-objects-search)

GET

List an object's properties

Every property defined on an object type, with its internal name, label, type and options.

[Open](#hubspot-properties-list)

GET

List pipelines and stages

Every pipeline for an object type (deals, tickets) with its stages' ids, labels and order.

[Open](#hubspot-pipelines-list)

GET

List owners

Users who can own records, with owner id, user id, name, email and teams.

[Open](#hubspot-owners-list)

### List CRM records

GET

`/crm/v3/objects/{objectType}`

`hubspot.objects.list`

A page of records of one object type (contacts, companies, deals, tickets...).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`objectType` required</td><td>string</td><td>path</td><td>CRM object type: contacts, companies, deals, tickets, or another object's name or type id. Example `deals`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records per page, at most 100.
      </td>
    </tr>

    <tr>
      <td>
        `after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        paging.next.after from the previous page.
      </td>
    </tr>

    <tr><td>`properties`</td><td>string</td><td>query</td><td>Comma-separated properties to return; only defaults come back otherwise. Example `dealname,amount,dealstage,closedate`</td></tr>

    <tr>
      <td>
        `propertiesWithHistory`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties to return with their history.
      </td>
    </tr>

    <tr><td>`associations`</td><td>string</td><td>query</td><td>Comma-separated object types to return associated record ids for. Example `contacts,companies`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.hubspot.com/docs/api-reference/legacy/crm/objects/deals/guide) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-lists-entries), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-entries-query), [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-items-list), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-rows-list)

```python Python theme={null}
router.call_data_api("hubspot.objects.list", {'objectType': 'deals', 'properties': 'dealname,amount,dealstage,closedate', 'associations': 'contacts,companies'})
```

```text MCP theme={null}
call_data_api(endpoint="hubspot.objects.list", params={"objectType": "deals", "properties": "dealname,amount,dealstage,closedate", "associations": "contacts,companies"})
```

### Get a CRM record

GET

`/crm/v3/objects/{objectType}/{recordId}`

`hubspot.objects.get`

One record by its record id, or by a unique property such as email with idProperty.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`objectType` required</td><td>string</td><td>path</td><td>CRM object type: contacts, companies, deals, tickets, or another object's name or type id. Example `deals`</td></tr>
    <tr><td>`recordId` required</td><td>string</td><td>path</td><td>Record id, or the unique property value when idProperty is set. Example `12345`</td></tr>
    <tr><td>`idProperty`</td><td>string</td><td>query</td><td>Look up by this unique property instead of the record id, e.g. email for contacts. Example `email`</td></tr>
    <tr><td>`properties`</td><td>string</td><td>query</td><td>Comma-separated properties to return; only defaults come back otherwise. Example `dealname,amount,dealstage,closedate`</td></tr>

    <tr>
      <td>
        `propertiesWithHistory`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties to return with their history.
      </td>
    </tr>

    <tr><td>`associations`</td><td>string</td><td>query</td><td>Comma-separated object types to return associated record ids for. Example `contacts,companies`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.hubspot.com/docs/api-reference/legacy/crm/objects/deals/guide)

```python Python theme={null}
router.call_data_api("hubspot.objects.get", {'objectType': 'deals', 'recordId': '12345', 'idProperty': 'email', 'properties': 'dealname,amount,dealstage,closedate', 'associations': 'contacts,companies'})
```

```text MCP theme={null}
call_data_api(endpoint="hubspot.objects.get", params={"objectType": "deals", "recordId": "12345", "idProperty": "email", "properties": "dealname,amount,dealstage,closedate", "associations": "contacts,companies"})
```

### Search CRM records

POST

`/crm/v3/objects/{objectType}/search`

`hubspot.objects.search`

Filter, sort and full-text search records of one object type, e.g. open deals over an amount or contacts at a company domain.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`objectType` required</td><td>string</td><td>path</td><td>CRM object type: contacts, companies, deals, tickets, or another object's name or type id. Example `deals`</td></tr>
    <tr><td>`filterGroups`</td><td>array</td><td>body</td><td>Up to 5 groups (OR'd) of up to 6 filters (AND'd), 18 filters total. A filter is \{propertyName, operator, value} with operator EQ, NEQ, LT, LTE, GT, GTE, BETWEEN (value + highValue), IN / NOT\_IN (values), HAS\_PROPERTY, NOT\_HAS\_PROPERTY, CONTAINS\_TOKEN, NOT\_CONTAINS\_TOKEN. associations.\{objectType} filters by associated record. Example `[{"filters": [{"propertyName": "amount", "operator": "GT", "value": "10000"}]}]`</td></tr>

    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Text searched across the object's default text properties.
      </td>
    </tr>

    <tr><td>`sorts`</td><td>array</td><td>body</td><td>One sort rule: \[\{propertyName, direction: ASCENDING|DESCENDING}]. Example `[{"propertyName": "createdate", "direction": "DESCENDING"}]`</td></tr>
    <tr><td>`properties`</td><td>array</td><td>body</td><td>Properties to return. Example `["dealname", "amount", "dealstage"]`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per page, default 10, at most 200.
      </td>
    </tr>

    <tr>
      <td>
        `after`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        paging.next.after from the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.hubspot.com/docs/api-reference/legacy/crm/search-the-crm)

```python Python theme={null}
router.call_data_api("hubspot.objects.search", {'objectType': 'deals', 'filterGroups': [{'filters': [{'propertyName': 'amount', 'operator': 'GT', 'value': '10000'}]}], 'sorts': [{'propertyName': 'createdate', 'direction': 'DESCENDING'}], 'properties': ['dealname', 'amount', 'dealstage']})
```

```text MCP theme={null}
call_data_api(endpoint="hubspot.objects.search", params={"objectType": "deals", "filterGroups": [{"filters": [{"propertyName": "amount", "operator": "GT", "value": "10000"}]}], "sorts": [{"propertyName": "createdate", "direction": "DESCENDING"}], "properties": ["dealname", "amount", "dealstage"]})
```

> [!NOTE]
>
> * A read over POST.
> * Archived records never appear. IN/NOT\_IN values on string properties must be lowercase; enumeration properties match case-sensitively.
> * The request body may be at most 3,000 characters; paging past 10,000 results answers 400.

### List an object's properties

GET

`/crm/v3/properties/{objectType}`

`hubspot.properties.list`

Every property defined on an object type, with its internal name, label, type and options.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`objectType` required</td><td>string</td><td>path</td><td>CRM object type: contacts, companies, deals, tickets, or another object's name or type id. Example `deals`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.hubspot.com/docs/api-reference/legacy/crm/objects/deals/guide) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata)

```python Python theme={null}
router.call_data_api("hubspot.properties.list", {'objectType': 'deals'})
```

```text MCP theme={null}
call_data_api(endpoint="hubspot.properties.list", params={"objectType": "deals"})
```

### List pipelines and stages

GET

`/crm/v3/pipelines/{objectType}`

`hubspot.pipelines.list`

Every pipeline for an object type (deals, tickets) with its stages' ids, labels and order.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`objectType` required</td><td>string</td><td>path</td><td>deals or tickets (or another object with pipelines). Example `deals`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.hubspot.com/docs/api-reference/legacy/crm/pipelines/guide)

```python Python theme={null}
router.call_data_api("hubspot.pipelines.list", {'objectType': 'deals'})
```

```text MCP theme={null}
call_data_api(endpoint="hubspot.pipelines.list", params={"objectType": "deals"})
```

### List owners

GET

`/crm/v3/owners`

`hubspot.owners.list`

Users who can own records, with owner id, user id, name, email and teams.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `archived`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        True lists deactivated owners instead.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.hubspot.com/docs/api-reference/legacy/crm/owners/guide)

```python Python theme={null}
router.call_data_api("hubspot.owners.list")
```

```text MCP theme={null}
call_data_api(endpoint="hubspot.owners.list")
```

> [!NOTE]
>
> * Use the owner id (id) to look up or assign owners; userId is only for the settings API and fails as an owner.


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