I am trying to make an API call to the associations API and get Unauthorized response. I have tried with the V3 API and V4 API. I am using OAuth and the urls I have tried are
It will be easier if we work from a specific example. Can you share an example request, response, and error body, please? Without a specific example, it’s challenging for the community to troubleshoot along with you.
GET https://api.hubapi.com/crm/v4/objects/contact/1/associations/call HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: [redacted]
and the response I get is
{"status":"error","message":"Authentication credentials not found. This API supports both API Key and OAuth 2.0 authentication and you can find more details at https://developers.hubspot.com/docs/methods/auth/oauth-overview","correlationId":"[redacted]","category":"INVALID_AUTHENTICATION"}
I am using OAuth which is working for the other API calls I am making to get the objects.