# Account does not enabled REST API or Invalid access token Erros

**URL:** <https://devforum.zoom.us/t/account-does-not-enabled-rest-api-or-invalid-access-token-erros/81752>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [January 19, 2023, 7:26pm UTC](https://devforum.zoom.us/t/account-does-not-enabled-rest-api-or-invalid-access-token-erros/81752 "2023-01-19T19:26:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 20, 2023, 6:15pm UTC](https://devforum.zoom.us/t/account-does-not-enabled-rest-api-or-invalid-access-token-erros/81752/2 "2023-01-20T18:15:19Z")

</div>

Hi @wajeeh.rehman

Thanks for reaching out to the Zoom Developer Forum and welcome to our community!  
By taking a look at the code snippet you shared with us, it looks like you are passing the wrong grant\_type.

To request an access token using [Server to Server OAuth credentials](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/#use-account-credentials-to-get-an-access-token), the grant\_type in the request must be “account\_credentials” , this could be the reason why your request to retrieve meetings is failing.

Also, here is a post on How to user Server to Server Oauth app with Postman, that also walks you through the settings needed to be able to use this app type:

> [@How to user Server-to-Sever OAuth app with Postman](https://devforum.zoom.us/t/how-to-user-server-to-sever-oauth-app-with-postman/70848):
>
> How to use our Server-to-Server OAuth with Postman? As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced [Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app) That being said, here is a quick and simple guide on how to use or new app with Postman As stated in our documentation here: This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…

Let me know if this helps,  
Elisa

---

_[View the full topic](https://devforum.zoom.us/t/account-does-not-enabled-rest-api-or-invalid-access-token-erros/81752)._
