APIs & Integrations

Not applicable

Static lists data using API differs from Admin console

I use this API endpoint https://developers.hubspot.com/docs/methods/lists/get_static_lists in order to get the list, but what I am getting differs against the data I see on Admin console (Contacts/Lists/Static lists).

Are there any other request parameters that allow to filter the lists or what do I do wrong?
Please, help.

0 Upvotes
3 Replies 3
miccarlson4
Member

Static lists data using API differs from Admin console

Posting to say I am experiencing the same issue. When I send a GET request to /contacts/v1/lists I see all dynamic and static lists that I can see in my test portal. When I send a GET to /contacts/v1/lists/static I see 4 extra “lists”. The extra lists all have a name starting with “Workflow”. Only “Test List 1” and “Static List 2” should be returned in the response below.

HTTP/1.1 200 OK
X-n: S
Content-location: https://api.hubapi.com/contacts/v1/lists/static
Vary: Accept-Encoding, Accept-Encoding
Content-length: 2189
Connection: keep-alive
-content-encoding: gzip
Access-control-allow-credentials: false
Date: Mon, 26 Jun 2017 15:00:57 GMT
Content-type: application/json; charset=UTF-8
{
  "lists": [
    {
      "archived": false, 
      "name": "Test List 1", 
      "internalListId": 5, 
      "listId": 5, 
      "dynamic": false, 
      "portalId": 3419459, 
      "authorId": 4396765, 
      "filters": [], 
      "updatedAt": 1498079455351, 
      "listType": "STATIC", 
      "createdAt": 1498079455351, 
      "metaData": {
        "lastProcessingStateChangeAt": 1498079455351, 
        "processing": "DONE", 
        "lastSizeChangeAt": 1498487817402, 
        "size": 1, 
        "error": ""
      }
    }, 
    {
      "archived": false, 
      "name": "Workflow: 1988659, Enrolled List (Automation)", 
      "internalListId": 6, 
      "listId": 6, 
      "dynamic": false, 
      "portalId": 3419459, 
      "authorId": 4396765, 
      "internal": true, 
      "filters": [], 
      "updatedAt": 1498079842936, 
      "listType": "STATIC", 
      "createdAt": 1498079842936, 
      "metaData": {
        "lastProcessingStateChangeAt": 1498079842936, 
        "processing": "DONE", 
        "lastSizeChangeAt": 0, 
        "size": 0, 
        "error": ""
      }
    }, 
    {
      "archived": false, 
      "name": "Workflow: 1988659, Active List (Automation)", 
      "internalListId": 7, 
      "listId": 7, 
      "dynamic": false, 
      "portalId": 3419459, 
      "authorId": 4396765, 
      "internal": true, 
      "filters": [], 
      "updatedAt": 1498079842984, 
      "listType": "STATIC", 
      "createdAt": 1498079842984, 
      "metaData": {
        "lastProcessingStateChangeAt": 1498079842984, 
        "processing": "DONE", 
        "lastSizeChangeAt": 0, 
        "size": 0, 
        "error": ""
      }
    }, 
    {
      "archived": false, 
      "name": "Workflow: 1988659, Completed List (Automation)", 
      "internalListId": 8, 
      "listId": 8, 
      "dynamic": false, 
      "portalId": 3419459, 
      "authorId": 4396765, 
      "internal": true, 
      "filters": [], 
      "updatedAt": 1498079843039, 
      "listType": "STATIC", 
      "createdAt": 1498079843039, 
      "metaData": {
        "lastProcessingStateChangeAt": 1498079843039, 
        "processing": "DONE", 
        "lastSizeChangeAt": 0, 
        "size": 0, 
        "error": ""
      }
    }, 
    {
      "archived": false, 
      "name": "Workflow: 1988659, Succeeded List (Automation)", 
      "internalListId": 9, 
      "listId": 9, 
      "dynamic": false, 
      "portalId": 3419459, 
      "authorId": 4396765, 
      "internal": true, 
      "filters": [], 
      "updatedAt": 1498079843081, 
      "listType": "STATIC", 
      "createdAt": 1498079843081, 
      "metaData": {
        "lastProcessingStateChangeAt": 1498079843081, 
        "processing": "DONE", 
        "lastSizeChangeAt": 0, 
        "size": 0, 
        "error": ""
      }
    }, 
    {
      "archived": false, 
      "name": "Static List 2", 
      "internalListId": 10, 
      "listId": 10, 
      "dynamic": false, 
      "portalId": 3419459, 
      "authorId": 4396765, 
      "filters": [], 
      "updatedAt": 1498488262675, 
      "listType": "STATIC", 
      "createdAt": 1498488262675, 
      "metaData": {
        "lastProcessingStateChangeAt": 1498488262675, 
        "processing": "DONE", 
        "lastSizeChangeAt": 0, 
        "size": 0, 
        "error": ""
      }
    }
  ]
}
0 Upvotes
Not applicable

Static lists data using API differs from Admin console

BTW, the duplicates above are absent on Admin Console by following link https://app.hubspot.com/lists/496564/.

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Static lists data using API differs from Admin console

Hi @Serge_Nikolaew, I’m seeing the same thing with a test portal. Our engineering team is taking a look at this and I’ll let you know when I have any updates.

0 Upvotes