# 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="https://246234927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyCQUyE0u7ya9ULaprd%2Fuploads%2FfAFToi3FIc5iILwHxPaG%2Fhubspot.png?alt=media&#x26;token=7de5a0cf-4f1f-4e79-8049-5c66575fe7fc" alt=""><figcaption></figcaption></figure>

After adding HubSpot, you will need the apiKey.

<figure><img src="https://246234927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyCQUyE0u7ya9ULaprd%2Fuploads%2FR6rzikhzDtF3e2QO2OCr%2Fhubspot%202.png?alt=media&#x26;token=2032cd1c-8705-4fae-b6a6-61dcb1e775f1" 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="https://246234927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyCQUyE0u7ya9ULaprd%2Fuploads%2F6QD4mlfdbRkkaYt1t66Z%2FScreenshot%202024-07-17%20at%2018.04.34.png?alt=media&#x26;token=b25cb366-a571-40af-bd56-7b496634fee9" alt=""><figcaption></figcaption></figure>

Then copy the token which is your APIKey.

<figure><img src="https://246234927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyCQUyE0u7ya9ULaprd%2Fuploads%2FkMtI8Es8RFnJeh6lz8ee%2FScreenshot%202024-07-17%20at%2018.05.24.png?alt=media&#x26;token=1c48b1bb-f01b-4040-8fce-69e25b644e95" alt=""><figcaption></figcaption></figure>

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