APIs & Integrations

DLijin
Member

Can't get all lists

SOLVE

Hi. I'm developing a system that will receive and send data to hubspot via an API. I have a problem with endpoint:

GET/crm/v3/lists/

I have several lists, when requesting this point I get an empty response. But if I do a search through the ID, then the API gives me the found list. What could be the problem?

2024-05-07_00-32-15.png

2024-05-07_00-42-04.png

1 Accepted solution
DanielPicklo
Solution
Participant | Diamond Partner
Participant | Diamond Partner

Can't get all lists

SOLVE

Hello!

This particular endpoint will need the "listIds" parameter in order to function and does not return all lists on an account if it is not provided. If you are looking to get all lists on an account, there is a legacy endpoint that will do so for contact-based lists:

https://legacydocs.hubspot.com/docs/methods/lists/get_lists

 

Hope this helps!

View solution in original post

0 Upvotes
2 Replies 2
DanielPicklo
Solution
Participant | Diamond Partner
Participant | Diamond Partner

Can't get all lists

SOLVE

Hello!

This particular endpoint will need the "listIds" parameter in order to function and does not return all lists on an account if it is not provided. If you are looking to get all lists on an account, there is a legacy endpoint that will do so for contact-based lists:

https://legacydocs.hubspot.com/docs/methods/lists/get_lists

 

Hope this helps!

0 Upvotes
exitdump
Participant | Elite Partner
Participant | Elite Partner

Can't get all lists

SOLVE

The v1 legacy will be discontinued this August right, are there alternative endpoint to get all the list? problem is our is being used by multiple portal, so we will not be able to supply it a list of id statically