How do I construct the url to call the GetAll Contacts api?

contacts

#1

Theres seems to a piece missing from the docs. How does it know which portal Im referencing? Heres an example Im trying to use.

https://api.hubapi.com/contacts/v1/lists?count=2&hapikey=111111&userId=300000

Thanks


#2

Can someone point me in the right direction, this is very frustrating, it should be very simple, looking through the forums I see url’s constructed very different then what the api docs suggest.


#3

Hey @mhoward

HubSpot knows the portal you are referencing because hapikeys (and OAuth tokens for that matter) are unique to a portal so there would be no need to reference it in your request.

Thanks,
Zack


#4

I finally figured it out. I had to click on the Integration link and generate a key from there, The docs do not mention anything in that regard. The key I was using was from the dev portal, this was to simple to be so confusing, Docs are not correct!