APIs & Integrations

BrianF
Member

Contact List API not returning any lists

I am new to HubSpot and am trying to use the Contact List API to ‘Get Lists’ using:

https://api.hubapi.com/contacts/v1/lists?count=10&hapikey=&offset=0

But all I get returned is: {“lists”:[],“offset”:20,“has-more”:false}, I know have many lists so what am I doing wrong?

Any help would be appreciated.
Thank you

0 Upvotes
6 Replies 6
Not applicable

Contact List API not returning any lists

I’m sorry, it is my mistake.
You have very complicated way to get API key.
So, i has created additional “dev” account accidentally, then searching for the way to get the HAPIkey.
And now i do not know haw i can delete it.

0 Upvotes
Not applicable

Contact List API not returning any lists

Hi, I have the same problem. I am refreshed HAPI, but it didn’t helped.

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Contact List API not returning any lists

@Aeliot-Tm are you getting an error response or an empty list when you try to get your contact lists?

If you’re getting an error, can you post the error you’re seeing?

If you’re getting a response but it’s an empty list, can you send me your Hub ID so I can take a look at this?

0 Upvotes
BrianF
Member

Contact List API not returning any lists

Thanks for helping,

It appears my original key was no longer valid (not sure why) so I generated a new one and I now get data returned.

0 Upvotes
BrianF
Member

Contact List API not returning any lists

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Contact List API not returning any lists

@BrianF Can you send me your Hub ID so I can take a look at this? I’m not seeing any problems pulling lists from a few test portals so I’d need to take a look at your data.

0 Upvotes