Hello,
I am using the Hubspot API and I managed to create a contact but when I try to add it to a list it returns this:
{
“status”: “error”,
“message”: “internal error”,
“correlationId”: “f331b738-b77b-4eae-a2ed-5cea1ea37c31”
}
I am using this request body:
{
“vids”: [
1608451
],
“emails”: []
}
Any idea what it could be?
(if anyone want to know, I am using postman to test the API and the hubspot list is active.)
Hey, @DanielHuelin
Did you get this resolved? If not, can you make a request to this endpoint using your List ID, please? https://legacydocs.hubspot.com/docs/methods/lists/get_list
And share the full response body here?
Thanks! — Jaycee
Thanks for the response, unfortunately i did not get it resolved, here you have a GET request to “https://api.hubspot.com/contacts/v1/lists/**”:
{
“portalId”: 6819142,
“listId”: 74,
“internalListId”: 0,
“createdAt”: 1642522889158,
“updatedAt”: 1667907918621,
“name”: “Mentores Web (IN)”,
“listType”: “DYNAMIC”,
“authorId”: 27717176,
“filters”: [],
“metaData”: {
“size”: 11,
“lastSizeChangeAt”: 1680000121672,
“processing”: “DONE”,
“lastProcessingStateChangeAt”: 1667907898092,
“error”: “”,
“listReferencesCount”: null,
“parentFolderId”: null
},
“archived”: false,
“teamIds”: [],
“ilsFilterBranch”: “{\“filterBranchOperator\”:\“OR\”,\“filters\”:[],\“filterBranches\”:[{\“filterBranchOperator\”:\“AND\”,\“filters\”:[{\“pruningRefineBy\”:null,\“coalescingRefineBy\”:null,\“formId\”:\“939a9e9e-2143-4de2-baeb-3015606e81ab\”,\“filterId\”:735238203,\“frameworkFilterId\”:null,\“filterType\”:\“FORM_SUBMISSION\”}],\“filterBranches\”:[],\“filterBranchType\”:\“AND\”}],\“filterBranchType\”:\“OR\”}”,
“readOnly”: false,
“limitExempt”: false,
“deleted”: false,
“internal”: false,
“dynamic”: true
}
Hey, @DanielHuelin
Thanks for doing that.
I see the issue. You are trying to use an Active List (note the “dynamic”: true that is part of the response body) It is not possible to manually add contacts to an active (dynamic) list.
You’ll need to create a static list if you want to manually add contacts to lists — in-app or via the List endpoints.
Source — “Please note that you cannot manually add contacts to dynamic lists. To determine whether a list is dynamic or static, when you get a list, you will see a flag called dynamic that equates to true or false.”
Have fun building! — Jaycee
Thanks for the response, all working fine now.