# Unauthorized in associations api

**URL:** <https://community.hubspot.com/t/unauthorized-in-associations-api/79286>\
**Category:** APIs & Integrations\
**Tags:** oauth, contacts\
**Created:** [April 13, 2023, 2:48pm UTC](https://community.hubspot.com/t/unauthorized-in-associations-api/79286 "2023-04-13T14:48:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DFord1](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DFord1](https://community.hubspot.com/u/DFord1)\
**Post date:** [April 13, 2023, 2:48pm UTC](https://community.hubspot.com/t/unauthorized-in-associations-api/79286/1 "2023-04-13T14:48:44Z")

</div>

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

[https://api.hubapi.com/crm/v4/objects/contact/1/associations/call](https://api.hubapi.com/crm/v4/objects/contact/1/associations/call%60)

[https://api.hubapi.com/crm/v4/objects/contacts/1/associations/calls](https://api.hubapi.com/crm/v4/objects/contacts/1/associations/calls)

[https://api.hubapi.com/crm/v3/associations/contacts/calls/batch/read](https://api.hubapi.com/crm/v3/associations/contacts/calls/batch/read)

With all the calls, I am getting an Unauthorized response and when I make calls to Company, Contacts, and Deals APIs, those are working.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 14, 2023, 6:54pm UTC](https://community.hubspot.com/t/unauthorized-in-associations-api/79286/2 "2023-04-14T18:54:19Z")

</div>

Hey, @DFord1 👋 Thanks for reaching out.

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.

Thanks! — Jaycee

---

<div class="post-metadata">

**Author:** ![DFord1](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DFord1](https://community.hubspot.com/u/DFord1)\
**Post date:** [April 17, 2023, 7:27pm UTC](https://community.hubspot.com/t/unauthorized-in-associations-api/79286/3 "2023-04-17T19:27:27Z")

</div>

Here is an example of a call I tried

```lia-code-sample
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.

Thank you!
