Hi i’m getting 500 Internal error response when trying to use Add existing contacts to a list endpoint (https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list) with Private Apps (access token in Authorization header with Bearer prefix).
My Curl request:
curl --location 'https://api.hubapi.com/contacts/v1/lists/290/add' \
--header 'Authorization: Bearer xxx' \
--header 'Content-Type: application/json' \
--data '{
"vids": [
470151
]
}'
Failes with response:
{"status":"error","message":"internal error","correlationId":"42a9c2e5-adb3-446e-8867-b6eb80cbc04e"}
I have checked both list id and contact id (VID).
And by request:
curl --location --request GET 'https://api.hubapi.com/contacts/v1/lists/290' \
--header 'Authorization: Bearer xxx' \
--header 'Content-Type: application/json'
Responsds with 200 code and date:
{
"listId": 290,
"listType": "DYNAMIC",
...
}
I also double-checked contact id:
curl --location 'https://api.hubapi.com/contacts/v1/contact/' \
--header 'Authorization: Bearer xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"properties": [
{
"property": "email",
"value": "nezort11@gmail.com"
}
]
}'
Responds with all data about the contact:
{
"message": "Contact already exists",
"identityProfile": {
"vid": 470151,
"identity": [
{
"value": "6d0ce99e-af7b-4bb4-9800-72d804f85116",
"type": "LEAD_GUID",
"timestamp": 1679291550881
},
{
"value": "zorinegor325@gmail.com",
"type": "EMAIL",
"timestamp": 1679317994583,
"isSecondary": true
},
{
"value": "nezort11@gmail.com",
"type": "EMAIL",
"timestamp": 1679401144147,
"isPrimary": true
},
]
}
}
I also checked it with other emails, and i still get this error:
I can only guess this might be because you migrated from API keys to Private Apps, because i see a lot of working code with api keys on Github.

