APIs & Integrations

K_Coding
Membro

CRM v3 Lists Endpoint Error

Hello,

I am trying to make an API requst to get our contact lists. I am using the /crm/v3/lists/search endpoint referenced in the URL below but I get a "500 Internal Server Error" response.

 

https://developers.hubspot.com/docs/api/crm/lists

I made sure to use a post command as noted on this page. "You can also make a POST request to /crm/v3/lists/search and omit the query parameter in the body of your request. The response will include all of your lists, each of which will include its associated ILS List ID."

What am I missing?

 

Thanks,

0 Avaliação positiva
1 Resposta 1
Jaycee_Lewis
Gerente da Comunidade
Gerente da Comunidade

CRM v3 Lists Endpoint Error

Hi, @K_Coding 👋 Did you get this resolved? I was able to amke the same request using the on-page example and in Postman. Here's the request I sent in Postman:

POST https://api.hubapi.com/crm/v3/lists/search
{
    "offset": 0,
    "count": 100,
    "additionalProperties": [
        "hs_list_size_week_delta"
    ]
}

and received the expected response:

{
    "offset": 26,
    "hasMore": false,
    "lists": [
        {
            "listId": 20,
            "listVersion": 1,
            "createdAt": "2022-11-09T21:58:34.032Z",
            "updatedAt": "2022-11-09T21:58:59.274Z"...

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Avaliação positiva