Regarding ContactList V3 API endpoint with out asking for ILS list ID (2024)

  • HubSpot Community
  • HubSpot Developers
  • Regarding ContactList V3 API endpoint with out asking for ILS list ID

APIs & Integrations

Search APIs & Integrations for solutions or ask a question

Options

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page

Regarding ContactList V3 API endpoint with out asking for ILS list ID (6)

RKOSURI

Monday

Participant

Regarding ContactList V3 API endpoint with out asking for ILS list ID

SOLVE

Hi Everyone,

I am using contactList V1 in my app and now upgrading to V3. One of the major requirement of my app is to fetch all contactlists in the hubspot account and show them to the users. To do so, I am looking for a contactlist endpoint where it wont ask forILS list ID in request. But most of the V3 contactlists endpoints has"ILS list ID" as mandatory fields. In my requirement, i dont know anything about how many lists exists and what are their ILS list ID's. Could you please let me know is there any endpoint in contactList V3 where i can fetch all contactlists in the account?
This is the endpoint I am looking at the moment
https://developers.hubspot.com/docs/api/crm/lists

Solved!Go to Solution.

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Professional

0Upvotes

1 Accepted solution

Regarding ContactList V3 API endpoint with out asking for ILS list ID (7)

Solution

Jaycee_LewisRegarding ContactList V3 API endpoint with out asking for ILS list ID (8)

Monday

Community Manager

Regarding ContactList V3 API endpoint with out asking for ILS list ID

SOLVE

Hey,@RKOSURI 👋 It looks like there are some required fields for the Search API — Lists, that shouldn't be marked that way. I'll make a request to get that updated. I have a list from 2022 (pre-dating list ILS) and it was returned with the expected ILS in the response. Here's what I did:

  • I used Postman, as the dev doc page has ListID set as required for the search endpoint (incorrectly)
  • This is the endpoint —POST /crm/v3/lists/search
  • If you wantall lists returned, you can send the request with only the `processingTypes` set in the body
  • If you want to filter by list type, list name, or both, you can include this in the request body:
    Example (query is for the list title, if you intend to filter that way)
    { "query": "HubSpot", "processingTypes": ["MANUAL"]}​
  • In my case, I wanted to return only lists that are Active lists:
    Request
    POST https://api.hubapi.com/crm/v3/lists/search​

    Body
    { "processingTypes": [ "DYNAMIC" ]}​

    Response
    { "offset": 20, "hasMore": true, "lists": [ { "listId": "9", "listVersion": 1, "createdAt": "2022-08-17T16:47:35.714Z", "updatedAt": "2024-05-22T05:40:01.885Z", "filtersUpdatedAt": "2022-08-17T16:47:35.714Z", "processingStatus": "COMPLETE", "createdById": "10233975", "processingType": "DYNAMIC", "objectTypeId": "0-1", "name": "Testerr-1", "additionalProperties": { "hs_list_reference_count": "0", "hs_list_size": "1", "hs_last_record_added_at": "1660754866212" } }...​

    Screenshot showing the ID returned in the response is the ILS
    Regarding ContactList V3 API endpoint with out asking for ILS list ID (9)

I hope this helps get you moving forward! — Jaycee

Regarding ContactList V3 API endpoint with out asking for ILS list ID (10)

JayceeLewis

Developer Community Manager

Community|HubSpot

View solution in original post

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

1Upvote

  • View all posts
  • Previous post
  • Next post

3 Replies 3

Regarding ContactList V3 API endpoint with out asking for ILS list ID (11)

RKOSURI

Tuesday

Participant

Regarding ContactList V3 API endpoint with out asking for ILS list ID

SOLVE

@Jaycee_Lewis Thank you very much. yeah, it worked out. Quick suggestion if you dont mind. Not only for this search endpoint in lists API, there are places where the * (mandatory) sign in parameters section misleading the developers who are consuming this API. So far i have assumed like, * are mandatory fields and spend good amount of time on how to get the listIds. I realised, it is not a mandatory field after your post. Could you send this feedback to devs , so that the swagger will gets updated.

Regarding ContactList V3 API endpoint with out asking for ILS list ID (12)

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

0Upvotes

Regarding ContactList V3 API endpoint with out asking for ILS list ID (13)

Jaycee_LewisRegarding ContactList V3 API endpoint with out asking for ILS list ID (14)

Tuesday

Community Manager

Regarding ContactList V3 API endpoint with out asking for ILS list ID

SOLVE

Hey, @RKOSURI 👋 I'm happy to do that. I also noticed it has `additional properties` set as required too. I'll make that request to the dev docs team. Have a fantastic day! — Jaycee

Regarding ContactList V3 API endpoint with out asking for ILS list ID (15)

JayceeLewis

Developer Community Manager

Community|HubSpot

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

0Upvotes

Regarding ContactList V3 API endpoint with out asking for ILS list ID (16)

Solution

Jaycee_LewisRegarding ContactList V3 API endpoint with out asking for ILS list ID (17)

Monday

Community Manager

Regarding ContactList V3 API endpoint with out asking for ILS list ID

SOLVE

Hey,@RKOSURI 👋 It looks like there are some required fields for the Search API — Lists, that shouldn't be marked that way. I'll make a request to get that updated. I have a list from 2022 (pre-dating list ILS) and it was returned with the expected ILS in the response. Here's what I did:

  • I used Postman, as the dev doc page has ListID set as required for the search endpoint (incorrectly)
  • This is the endpoint —POST /crm/v3/lists/search
  • If you wantall lists returned, you can send the request with only the `processingTypes` set in the body
  • If you want to filter by list type, list name, or both, you can include this in the request body:
    Example (query is for the list title, if you intend to filter that way)
    { "query": "HubSpot", "processingTypes": ["MANUAL"]}​
  • In my case, I wanted to return only lists that are Active lists:
    Request
    POST https://api.hubapi.com/crm/v3/lists/search​

    Body
    { "processingTypes": [ "DYNAMIC" ]}​

    Response
    { "offset": 20, "hasMore": true, "lists": [ { "listId": "9", "listVersion": 1, "createdAt": "2022-08-17T16:47:35.714Z", "updatedAt": "2024-05-22T05:40:01.885Z", "filtersUpdatedAt": "2022-08-17T16:47:35.714Z", "processingStatus": "COMPLETE", "createdById": "10233975", "processingType": "DYNAMIC", "objectTypeId": "0-1", "name": "Testerr-1", "additionalProperties": { "hs_list_reference_count": "0", "hs_list_size": "1", "hs_last_record_added_at": "1660754866212" } }...​

    Screenshot showing the ID returned in the response is the ILS
    Regarding ContactList V3 API endpoint with out asking for ILS list ID (18)

I hope this helps get you moving forward! — Jaycee

Regarding ContactList V3 API endpoint with out asking for ILS list ID (19)

JayceeLewis

Developer Community Manager

Community|HubSpot

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

1Upvote

Regarding ContactList V3 API endpoint with out asking for ILS list ID (20)

Regarding ContactList V3 API endpoint with out asking for ILS list ID (2024)

References

Top Articles
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 5960

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.