Simple curl to test only works using demo - why?

contacts

#1

I’m testing the HubSpot API and the demo example works like a charm:

curl https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=2
RESPONDS OK!

but with my newly created developer portal with imported data i get a different response.

curl https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=[my_hapikey_here]&count=2
{“contacts”:[],“has-more”:false,“vid-offset”:0}

What am I missing here?


#2

I had two different portal ID’s confused. It woks like a charm!
:slight_smile:


#3

@refine.marketing I’m glad you figured it out! Let us know if you run into any other setbacks.