# How can I use Hubspot Integration

**URL:** <https://forum.ideta.io/t/how-can-i-use-hubspot-integration/96>\
**Category:** Integrations\
**Created:** [February 16, 2022, 5:33pm UTC](https://forum.ideta.io/t/how-can-i-use-hubspot-integration/96 "2022-02-16T17:33:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badr](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Badr](https://forum.ideta.io/u/Badr)\
**Post date:** [February 16, 2022, 5:33pm UTC](https://forum.ideta.io/t/how-can-i-use-hubspot-integration/96/1 "2022-02-16T17:33:24Z")

</div>

Hello, this topic will explain you how to use your Hubspot Integration.

We are developing dedicated bubbles for the Hubspot Integration, but for now here is the process you have to follow to create a contact with the Hubspot API:

We will use HTTP requests provided in the Ideta platform API bubble.

 ![Capture d’écran 2022-02-16 à 18.00.51](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/b5444ae36a0b20c2ae5b2aaafbde8125483346fb.png)

First part, we will show you how to refresh your access to the API, using the refresh\_token made after your integration.

 ![Capture d’écran 2022-02-16 à 18.16.58](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/ab226262ffe4a2cd1a7d8f872d9ff569819eda05.png)

Here’s the request you have to create to get a new access\_token during a conversation.

 ![Capture d’écran 2022-02-16 à 18.20.26](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/a632bc05d57443a54756759e3c87b71be03cc7dc.png)

To save this token, create a conversation object data in data manager, with a property “access\_token”.

 ![Capture d’écran 2022-02-16 à 18.25.28](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/32d93ab0c0d09a70737368fd59c45ea3e3620e87.png)

Activate “Store response” and write “access\_token” as the access\_token property path.

 ![Capture d’écran 2022-02-16 à 18.26.25](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/1d2a114bb0f2c9533b3d9ce8ed27d4f6adff5f18.png)

Now you have an access\_token, you can use it in a new API bubble to create a contact. Using this request:

 ![Capture d’écran 2022-02-16 à 18.27.46](https://europe1.discourse-cdn.com/flex017/uploads/ideta/original/1X/6f5ac0f47afdf551266ba2579b6779817e7afcd3.png)

About the body, the values can be data you got from the user conversation with your bot. There is more properties you can add in the body during your contact creation.

To know all the properties provided by the Hubspot API, you can have a look on the following documentation: [Create a new contact | Contacts API](https://legacydocs.hubspot.com/docs/methods/contacts/create_contact), there is a JSON body request example with all the properties.
