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

# HubSpot

> Find out which customers an incident affects, and what they have already told you.

Connect HubSpot's API as an HTTP API [connector](https://docs.incident.io/nexus/extensions/connectors.md) to let incident.io's agents look up companies, contacts and support tickets, so an investigation can see which customers are affected and what they've reported.

**What you'll need:**

* A HubSpot super admin, or a user with the **Developer tools access** permission, to create a service key.
* An OpenAPI document that describes the HubSpot endpoints agents should call. HubSpot doesn't publish one for customers to use, so write one covering just those endpoints, such as reading companies, contacts and tickets.
* The **Manage Nexus sources** permission in incident.io.

## Create a service key

1. In HubSpot, go to **Development**, then **Keys → Service keys**.
2. Click **Create service key** and give it a name.
3. Click **Add new scope**, select the read scopes agents need, such as `crm.objects.companies.read`, `crm.objects.contacts.read` and `crm.objects.tickets.read`, and click **Update**.
4. Click **Create**, confirm, and copy the key.

If you already have a legacy private app, its access token works too.

## Connect it in incident.io

1. From [Extensions](https://app.incident.io/~/nexus/extensions), add a connector and choose **HTTP API**.
2. Paste your OpenAPI document.
3. Enter `https://api.hubapi.com` as the base URL.
4. Under authentication, choose **Bearer token** and enter your service key.
5. Test the connection, review which operations are enabled and the connector's [default policy](https://docs.incident.io/nexus/extensions/connectors.md#default-policy), then save.

See [Connectors](https://docs.incident.io/nexus/extensions/connectors.md#permissions) for how to control which tools agents can call, and from where.

## Pair it with a skill

Agents work best with a connector when it's paired with a [skill](https://docs.incident.io/nexus/extensions/plugins.md). For HubSpot, say how a HubSpot company maps to a customer in your other systems, such as the property that holds their account ID, and which ticket pipelines hold support issues.
