# "Invalid api key or secret" error in Server-to-Server OAuth app

**URL:** <https://devforum.zoom.us/t/invalid-api-key-or-secret-error-in-server-to-server-oauth-app/72579>\
**Category:** Authentication\
**Created:** [July 20, 2022, 7:43pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-error-in-server-to-server-oauth-app/72579 "2022-07-20T19:43:15Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 22, 2022, 5:14pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-error-in-server-to-server-oauth-app/72579/15 "2022-07-22T17:14:52Z")

</div>

After some debugging together, we figured it out @beirne !!!

Here are some steps to debug and fix this issue if you are getting the same error

1. Make sure that you have the right permissions enabled in your account to be able to user the Server-to-Server OAuth app, you can do so in the Web Portal, by going to User Management \> Roles \> Role Settings \> Advanced features (this can only be done by an Administrator or the Owner of the account)

 ![Screen Shot 2022-07-22 at 1.13.27 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/6/56a9f2e2ff96f2081bad01355417d9504bb5ded1.jpeg)

1. Make sure that your application is a Server-to-Server OAuth app in the Marketplace (here is a link to our Docs: [Create a Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/#create-a-server-to-server-oauth-app))

 ![Screen Shot 2022-07-22 at 9.29.10 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/9/b9aca6da18dd605e38267d7d1425605b6c4edf65.png)

1. Last but not least, every time you make any changes to your app (like adding scopes or features) make sure to activate the app in your account.

Hope this helps!  
Elisa

---

_[View the full topic](https://devforum.zoom.us/t/invalid-api-key-or-secret-error-in-server-to-server-oauth-app/72579)._
