# Access Token provided after client\_credentials is not working

**URL:** <https://devforum.zoom.us/t/access-token-provided-after-client-credentials-is-not-working/21257>\
**Category:** API and Webhooks\
**Created:** [June 13, 2020, 4:22am UTC](https://devforum.zoom.us/t/access-token-provided-after-client-credentials-is-not-working/21257 "2020-06-13T04:22:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohittm](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rohittm/32/10430_2.png) [@rohittm](https://devforum.zoom.us/u/rohittm)\
**Post date:** [June 13, 2020, 4:22am UTC](https://devforum.zoom.us/t/access-token-provided-after-client-credentials-is-not-working/21257/1 "2020-06-13T04:22:56Z")

</div>

**Description**  
Access Token provided after

```
url: 'https://api.zoom.us/oauth/token?grant_type=client_credentials',
headers: {
/**The credential below is a sample base64 encoded credential. Replace it with "Authorization: 'Basic ' + Buffer.from(your_app_client_id + ':' + your_app_client_secret).toString('base64')"
**/
Authorization: 'Basic abcdsdkjfesjfg'
}

```

is not working to fetch the

[api.zoom.us/v2/users/me](http://api.zoom.us/v2/users/me)

response.

Also, it is not working in “Send a test request” here: [https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings)

**Error**

{  
“code”: 200,  
“message”: “Invalid api key or secret.”  
}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**

OAuth

**Which Endpoint/s?**

/v2/users/me  
/v2/users/me/meetings

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Follow the steps here: marketplace.zoom. us/docs/api-reference/using-zoom-apis to request token with client credentials.
2. Use the same token to fetch the /v2/users/me response:

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 17, 2020, 9:52pm UTC](https://devforum.zoom.us/t/access-token-provided-after-client-credentials-is-not-working/21257/2 "2020-06-17T21:52:03Z")

</div>

Hey @rohittm,

The access token returned from the client\_crenetials flow can only call the [Chatbot APIs](https://marketplace.zoom.us/docs/api-reference/zoom-api/chatbot-messages).

Please generate an [OAuth access\_token](https://marketplace.zoom.us/docs/guides/auth/oauth) to call the rest of the [Zoom APIs](https://marketplace.zoom.us/docs/api-reference/zoom-api).

If you would like to generate both a Chatbot access\_token and OAuth access\_token, please follow these steps: [https://marketplace.zoom.us/docs/guides/auth/oauth#oauth-chatbots](https://marketplace.zoom.us/docs/guides/auth/oauth#oauth-chatbots)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:06pm UTC](https://devforum.zoom.us/t/access-token-provided-after-client-credentials-is-not-working/21257/3 "2020-08-21T22:06:47Z")

</div>

Closed on August 21, 2020, 10:06pm UTC


