# Hubspot

Churned seamlessly integrates with HubSpot as a destination connection, capturing both data and events at user and account levels. If you already use HubSpot, we highly recommend connecting to it, as it is the fastest way to experience the full value Churned has to offer. This integration ensures real-time data synchronization and enhances your ability to engage with customers effectively.

## How to connect HubSpot to Churned.io

Login to Churned platform and go to integration part. Click on "New Integration" and add HubSpot.

<figure><img src="/files/6ELPYtokwEegJWTWkCCD" alt=""><figcaption></figcaption></figure>

After adding HubSpot, you will need the apiKey.

<figure><img src="/files/QL6nPJoWGWn5bqREDKWM" alt=""><figcaption></figcaption></figure>

In order to fill out apiKey you need to login to your HubSpot account. In HubSpot, click the settings icon in the main navigation bar.

* In the left sidebar menu, navigate to Integrations > Private Apps.
* Click Create private app.
* On the Basic Info tab, configure the details of your app: Enter your app's name (e.g. Churned).
* Click the Scopes tab.

Select the following scopes:

* crm.objects.companies
* crm.objects.contacts
* crm.objects.marketing\_events
* content
* crm.objects.owners.read
* crm.objects.deals
* sales-email-read
* tickets
* automation
* crm.objects.contacts.write
* crm.schemas.contacts.write
* crm.objects.companies.write

After you're done configuring your app, click Create a private app on top.

<figure><img src="/files/M5CY7GhPHEOjf6j03BDM" alt=""><figcaption></figcaption></figure>

Then copy the token which is your APIKey.

<figure><img src="/files/nADjwqaWzlisRaW0vg7k" alt=""><figcaption></figcaption></figure>

Go back to Churned account and paste the APIKey in the box.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.churned.io/churned-docs/integrations/hubspot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
