# HubSpot for People  
<br/>
<span '32px'="" marginright:="" style="{{" }}="">People</span>

HubSpot is an inbound marketing and sales platform that helps companies attract visitors, convert leads, and close customers. It allows marketing and sales teams to manage all their activities in one place.
  
The HubSpot for People integration allows you to synchronize your HubSpot customer data with People, our customer data platform, and this lets you use that data with Infobip solutions like Moments, Broadcast, and more.
  
## What you will need
  
- A HubSpot developer account
- An Infobip account (go to [Sign up](https://www.infobip.com/signup) to create an account)
- HubSpot authentication credentials for Infobip People

## Set up authentication 

1. Log into your HubSpot developer account so that you can set up OAuth authentication.
2. Create an app in HubSpot to represent People. For more information about setting up the app, see the [HubSpot documentation](https://developers.hubspot.com/docs/api/creating-an-app).
3. In your new app, find the *Client ID* and *Client secret* for your app in **Settings** > **Auth** tab.
4. Build your authorization URL using:
    - Client ID
    - Client secret
    - [Query parameters](https://developers.hubspot.com/docs/api/working-with-oauth#query-parameters)
    - [Scopes](https://developers.hubspot.com/docs/api/working-with-oauth#scopes)
5. In the **Scopes** section, select the following scopes:
    crm.objects.contacts.read  
    crm.objects.contacts.write  
    crm.schemas.contacts.read  
    crm.schemas.contacts.write  
    crm.objects.owners.read  
    [Scopes](https://developers.hubspot.com/docs/api/working-with-oauth#scopes) determine the permissions needed to perform certain actions with the integration.
6. Click **Save** to save your app settings.

## Add the HubSpot for People app

1. [Log in](https://portal.infobip.com//) to the Infobip web interface and go to Exchange.
2. Search for **HubSpot** and then select **HubSpot for People**.
3. Click **Add**(if you see **Open**, then the app is already added)
    You'll see the list of available integrations and their activation status. From this page, you can select from the following tabs:
    - Integrations
    - Logs
    - Credentials

## Add the credentials to Infobip

1. From **HubSpot for People**, select the **Credentials** tab and then click **Add Credentials**.
2. Enter the **Client ID** and **Client secret** you created in HubSpot.
3. Click **Submit**.
    A **HubSpot OAuth** pop-up appears for you to choose the HubSpot account.
4. Select a **standard account** and not a developer account.

## Map HubSpot Data Fields to People  

1. Logon to Infobip and go to **Exchange > App Apps**.
2. Open the **HubSpot for People** integration and select the **Integrations** tab.
3. From the three vertical dots menu, you see the options to activate or deactivate the app and update the credentials.
4. Select **Update** **Credentials**.
5. Select the credentials that you want to use and click **Submit**.
6. On **Sync Hubspot Contacts to People Customers**, click **Configure**.
7. You then see two columns for source and destination fields. For example, the **Source** column displays your HubSpot data fields and the **Destination** column displays the available People fields. Use the drop-down arrows to select how you want the fields to map across HubSpot to Infobip.
9. Click **Save**.
    The integration status changes from **Inactive** to **Active**.