APIs & Integrations

Turnbull_Canopy
Member

Connecting Forms API to App instead of Website

SOLVE

We currently push all of our data to Hubspot through a separate direct API after we've collected the data through our app. The problem is we lose the cookie in this process once the user clicks through our site to download the app and are unable to tell where the user came from. We are considering using HubSpot's Forms API on our app. Has anyone tried doing this before? Has this caused any bugs within your app? 

0 Upvotes
1 Accepted solution
Bryantworks
Solution
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

Connecting Forms API to App instead of Website

SOLVE

Hey @Turnbull_Canopy,

 

We currently use the forms API to push contacts from our app into HubSpot as well.  You do need to pass in the UTM information as well as cookie the user in the process or you'll see the following errors even in the forms API:

 

Forms _ HubSpot - Google Chrome 2020-11-17 at 4.47.49 AM.png

 

The documentation for correctly sending this (HubSpot usertoken) is listed here.

Submit data for a form _ Forms API - Google Chrome 2020-11-17 at 4.50.06 AM.png

 

Hope this helps!

Chris Bryant | Your Dedicated HubSpot Expert

View solution in original post

1 Reply 1
Bryantworks
Solution
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

Connecting Forms API to App instead of Website

SOLVE

Hey @Turnbull_Canopy,

 

We currently use the forms API to push contacts from our app into HubSpot as well.  You do need to pass in the UTM information as well as cookie the user in the process or you'll see the following errors even in the forms API:

 

Forms _ HubSpot - Google Chrome 2020-11-17 at 4.47.49 AM.png

 

The documentation for correctly sending this (HubSpot usertoken) is listed here.

Submit data for a form _ Forms API - Google Chrome 2020-11-17 at 4.50.06 AM.png

 

Hope this helps!

Chris Bryant | Your Dedicated HubSpot Expert