APIs & Integrations

connerludlow
メンバー

Get contacts in list - ListId?

解決

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 いいね!
1件の承認済みベストアンサー
WendyGoh
解決策
HubSpot Employee
HubSpot Employee

Get contacts in list - ListId?

解決

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!

元の投稿で解決策を見る

1件の返信
WendyGoh
解決策
HubSpot Employee
HubSpot Employee

Get contacts in list - ListId?

解決

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!