API Post into an existing source in Hubspot

Is it possible to have the same API key as Hartford Gold Group?

@tbailey,

Please don’t post API keys here. I didn’t even realize you did it before. This is a public forum and API keys allow complete access to whatever portal they belong to.

No, it is not possible to have the same API key as the Hartford Gold Group. To get the integration working, you’ll have to use the API key which is displayed on this page.

I just tested this Contacts API endpoint with portal 4517614’s API key and successfully created this contact. No contact was created in portal 2611654, proving the accounts have different API keys.

Hi Isaac,

We can see your test leads and successfully submitted one on our side as well. The issue we see now is the lead says it was created from “Offline Sources”. How do we identify these leads with the source “Affiliate”.

Thanks,

Tammy

Hi @tbailey,

All contacts created through the Contacts API are treated as having come from an offline integration, so they all have the Original Source value “Offline Sources.”

While it’s not possible to programmatically set or change an Original Source, Original source drill-down 1, or Original source drill-down 2 value, you can push “Affiliate” into a different default or custom contact property, as you did successfully (but in the wrong account) with the leadsource property. There’s no property with the internal name leadsource in your portal at this time, but you can certainly create one.

Can you send me the instructions on how to do that?

Thanks!

@tbailey,

Is your developer copied on these messages? Their code was able to create contacts in the Hartford Gold Group before, so all you need is to create a custom property with the internal name leadsource (I hyperlinked the instructions in the last post), an option for “Affiliate,” and for the API key to be switched to the one on this page. Your developer should be able to take it from here.

Thanks Isaac! I will forward to him.

Thanks,

Tammy