# Invalid api key or secret with OAuth token

**URL:** <https://devforum.zoom.us/t/invalid-api-key-or-secret-with-oauth-token/23473>\
**Category:** API and Webhooks\
**Created:** [July 7, 2020, 9:09pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-with-oauth-token/23473 "2020-07-07T21:09:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkat.sai](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@venkat.sai](https://devforum.zoom.us/u/venkat.sai)\
**Post date:** [July 7, 2020, 9:09pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-with-oauth-token/23473/1 "2020-07-07T21:09:58Z")

</div>

**Description**  
We have created an app in the zoom market place and by using the client ID and client secret we have generated access token in servicenow by placing grant type: client credentials.

Note: if we use the grant type as Authorization code we are getting page not found.

**Error**  
Invalid api key or secret.

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

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

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

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
Add any other context about the problem here.

---

<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:** [July 9, 2020, 10:45pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-with-oauth-token/23473/2 "2020-07-09T22:45:06Z")

</div>

Hey @venkat.sai,

The grant type of client\_credentials will only work with [Zoom Chatbots](https://marketplace.zoom.us/docs/guides/chatbots/installation-and-authentication).

You need to use the [OAuth grant type of authorization\_code](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token).

Can you share a screenshot and steps to reproduce this error: “Note: if we use the grant type as Authorization code we are getting page not found.”.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![venkat.sai](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@venkat.sai](https://devforum.zoom.us/u/venkat.sai)\
**Post date:** [July 9, 2020, 10:57pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-with-oauth-token/23473/3 "2020-07-09T22:57:28Z")

</div>

Hi Tommy,

Thanks for the response and we figured out the issue and changed to [OAuth grant type of authorization\_code] that resolved our issue.

Thanks,  
Venkat

---

<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:** [July 14, 2020, 5:20pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-with-oauth-token/23473/4 "2020-07-14T17:20:10Z")

</div>

Happy to hear you figured out the issue! 🙂

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:41pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-with-oauth-token/23473/5 "2020-08-21T22:41:15Z")

</div>

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


