APIs & Integrations

connerludlow
Membre

Get contacts in list - ListId?

Résolue

Hello. I am using this https://developers.hubspot.com/docs/methods/lists/get_list_contacts to pull a list of contacts from a list and had a couple of questions. 

 

I'm assuming the "226468" in the example URL is where I will put my listId? Is that correct? and then when I fetch a list of lists, I see a couple of different Ids. Is it best to use the general "listId" or the "internalListId"? 

0 Votes
1 Solution acceptée
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Get contacts in list - ListId?

Résolue

Hey @connerludlow,

 

Spot on! The value '226488' represent the list id and when looking to fetch the list id from the Get all contact lists | Contact Lists API, you should be looking at the listId. As stated on the documentation:

 

The listId is the account specific ID for the list. This value never changes for a particular list. The internalListId is an internal identifier used to track the list criteria revisions, and is subject to change when the list is modified.

Additionally, you can see the ID of any list in HubSpot by looking at the URL. The format of the URL:

https://app.hubspot.com/contacts/{{this is the portal id}}/lists/{{this is list id}}

 

Let me know if you've any further questions on this!

Voir la solution dans l'envoi d'origine

1 Réponse
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Get contacts in list - ListId?

Résolue

Hey @connerludlow,

 

Spot on! The value '226488' represent the list id and when looking to fetch the list id from the Get all contact lists | Contact Lists API, you should be looking at the listId. As stated on the documentation:

 

The listId is the account specific ID for the list. This value never changes for a particular list. The internalListId is an internal identifier used to track the list criteria revisions, and is subject to change when the list is modified.

Additionally, you can see the ID of any list in HubSpot by looking at the URL. The format of the URL:

https://app.hubspot.com/contacts/{{this is the portal id}}/lists/{{this is list id}}

 

Let me know if you've any further questions on this!