Connecting to HubSpot

Follow

To add contacts to HubSpot you will need the following:

  • Your API key
  • The names of the field labels set in your HubSpot account. eg "First_name", "email" etc

Your first step is creating your delivery, connecting your campaign and enabling the remote system section by selecting "Another system" as the "Deliver to" option. When the remote system pops you need to select "Hubspot JSON" as shown below.

Image_2020-08-13_at_10.44.05_am.png

 

You will notice the URL pop with a prefilled posting string. This is a generic path used by HubSpot to direct leads to their system. Your unique is your API KEY which you add to the end of the URL seen in the below example.

https://api.hubapi.com/contacts/v1/contact/?hapikey=653739a5-918c-4e17-9eab-1714xxxxxxxx

NOTE: At the time this article was created the above URL is correct. That being said, we would always advise you to check your HubSpot posting instructions.

The next step is setting your JSON. Here is an example layout requested by HubSpot:

Image_2020-08-13_at_11.02.52_am.png

"Property" is the name of the label set in HubSpot and "Value" is where you add your LeadByte tags using the "Show tag help" button. 

When your JSON is set you will see a section called "Sample Values" where you can see example data and customise your data output options like DOB format or data translations. 

Image_2020-08-13_at_11.11.18_am.png

Once done, set the required success response under "Remote System Response" as HTTP Status 200 OK and you are ready to test. 

When testing you may get an error back from HubSpot. The most common error we see is field names incorrectly named in the LeadByte post or the field you are trying to post to has not yet been created in HubSpot. If that is the case please correct the error and re-test.

The below example error is stating the field "Emaillssss" does not exist which is correct as the label should be "Email".


Image_2020-08-13_at_11.23.24_am.png

 

Was this article helpful?
1 out of 1 found this helpful

Comments