Permission errors posting to /lists/

contacts

#1

Hello, we’re seeing permission errors when we attempt to post to /lists/ via the API, however, the contacts are getting added successfully to the appropriate list and everything otherwise looks good.

  1. Adding a user to a list (after they’ve been created as a contact)
    Example request:
    curl -i -H “Accept: application/json” -H “Content-Type: application/json” -X POST -d
    "{“vids”:[12345],“list_id”:“12345”}"
    https://api.hubapi.com/contacts/v1/lists/12345/add?hapikey=12345

Response:
{“status”:“error”,“message”:“Can not operate manually on a dynamic list”,“correlationId”:“609f964c-b279-4eda-becd-917ee8aa0886”,“requestId”:“a56cce0f0d00b6a62521a27b64502d4d”}

However, the user is added to the list correctly.

  1. Refreshing a list
    Example request:
    curl -i -H “Accept: application/json” -H “Content-Type: application/json” -X POST -d
    https://api.hubapi.com/contacts/v1/lists/12345/refresh?hapikey=12345

Response:
HTTP/1.1 401 Unauthorized
{“status”:“error”,“message”:“This endpoint does not accept EXTERNAL hapikeys, and has no special allowances for this hapikey (12345). hapikey auth configuration for this endpoint: HapikeyAuthenticator{allows=INTERNAL}”,“correlationId”:“65c4a188-059e-451c-b9f6-31cdb14fa42e”,“requestId”:“d84e479865298c69f74735a7a1b4d342”}


#2

Hi @GabiO

Dynamic lists won’t let you manually add contacts, but any new or updated contacts would automatically get added to the list if they meet the criteria. Does the contact you were trying to add match the list criteria?

Any endpoints not listed on developers.hubspot.com are considered internal endpoints, and they can’t be accessed using hapikeys or OAuth tokens.