Contacts API and hubspotutk

Hello -

We have been using the Contacts API for years to submit our form data to hubspot contact records. From what I’m reading, there isn’t a way to send the hubspotutk through this API. Is that true? If that’s only possible with the Forms API, are there major differences in how the two APIs update/create contact records? We don’t want to disrupt current functionality for our customers.

Thanks!

Hi, @csnapapp.

I believe you’re working with @zwolfson on this.

Hi,

Could we get an answer on that here?

I want to create contacts as well but I don’t want to use hubspot forms on my website. If I understand properly I still have to create a form on hubspot side to use the api.hsforms.com and be able to send the “HubSpot usertoken”, I find it a bit of a pain though, shouldn’t the classic api be able to parse the “Hutk”?

Hi there,

We’re also running into issues with this.

We submit a form - client side - with no email. We have a hubspotutk cookie.

The user then registers. The contacts API creates/updates a contact with the email.

At this point, we want to pass the hubspotutk (or context.hutk) value to the API.

Did you find a solution for this problem?

Thanks!

Hi, @MathieuH and @advance512.

Happy to clarify.

It is not possible to pass hubspotutk cookie token values through the Contacts API. This API is designed for offline contacts and does not support lead tracking, per this article.

@MathieuH, your understanding is correct. The Forms API is the most popular way to pass a cookie, but you can also use the Tracking Code API’s identify function followed by the trackPageView method.

Thank you for your quick reply @IsaacTakushi.

Is this now possible in the V3 of the api?

Hi! I wanted to know whether its the same case now or can we now pass hubspotutk cookie token values through the contacts API?

It seems as though you can *read* the details of a contact based on its hubspotutk, but creation is only via Forms API or visitor identification.

https://community.hubspot.com/t5/APIs-Integrations/HubspotUTK-and-Contacts-API/td-p/858713