Connecting to the Contacts API and getting a list of contacts


#1

I am trying to connect to the contacts api to print out a list of my contacts to a Json file. I created a developer portal separate from the portal I store my contacts in and I am trying to get the contacts from the marketing and sales portal.

I am not seeing the contacts from the other portal, do I have to link the app somehow?

Thank you,
Alex


#2

Hi @AlexW

HubSpot API keys (hapikeys) are unique to a specific portal. The hapikey you get from your developer account would only be used to set up things like the Timeline API and Webhooks API for any apps that you created, so you’d need to get the separate API key for the separate portal to pull contacts from that portal: