# Rest API to get authorization key

**URL:** <https://devforum.zoom.us/t/rest-api-to-get-authorization-key/6028>\
**Category:** API and Webhooks\
**Created:** [September 26, 2019, 1:22pm UTC](https://devforum.zoom.us/t/rest-api-to-get-authorization-key/6028 "2019-09-26T13:22:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prem.srivastava](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@prem.srivastava](https://devforum.zoom.us/u/prem.srivastava)\
**Post date:** [September 26, 2019, 1:22pm UTC](https://devforum.zoom.us/t/rest-api-to-get-authorization-key/6028/1 "2019-09-26T13:22:36Z")

</div>

Hi Everyone,

i am searching for an API, to get authorization token and i found one API like [https://zoom.us/oauth/token](https://zoom.us/oauth/token) and this API is asking for authorization key and there is one another API to get authorization key like [https://zoom.us/oauth/token?response\_type=code&client\_id=&redirect\_uri=](https://zoom.us/oauth/token?response_type=code&client_id=&redirect_uri=) is there any another **API to get authorization token.**

Thanks  
Prem

---

<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:** [September 26, 2019, 4:22pm UTC](https://devforum.zoom.us/t/rest-api-to-get-authorization-key/6028/2 "2019-09-26T16:22:10Z")

</div>

Hey @prem.srivastava,

The [OAuth flow](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom) is as follows:

GET `https://zoom.us/oauth/authorize?response_type=code&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT_URI}`

After going to that url, signing in with Zoom, and authorizing your app, you will be taken to {YOUR\_REDIRECT\_URI}, with a query param of `code=abc123` in the url.

Then, grab the code in the url, in this example case `abc123` and make the following request to get an `access_token` (used to call the Zoom APIs):

POST `https://zoom.us/oauth/token?grant_type=authorization_code&code=abc123&redirect_uri={YOUR_REDIRECT_URI}`

Headers: `{"Authorization": "Basic base64Encode(client_id:client_secret)"}`

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![prem.srivastava](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@prem.srivastava](https://devforum.zoom.us/u/prem.srivastava)\
**Post date:** [September 27, 2019, 12:18pm UTC](https://devforum.zoom.us/t/rest-api-to-get-authorization-key/6028/3 "2019-09-27T12:18:37Z")

</div>

Hey @tommy

i selected all the given scope on marketplace but i am not able to create meeting using that access token. It is saying like.  
**{**  
\*\* “code”: 4700,\*\*  
\*\* “message”: “Invalid access token, does not contain scopes: [meeting:write:admin]”\*\*  
**}**

Thanks  
Prem

---

<div class="post-metadata">

**Author:** ![prem.srivastava](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@prem.srivastava](https://devforum.zoom.us/u/prem.srivastava)\
**Post date:** [September 27, 2019, 12:25pm UTC](https://devforum.zoom.us/t/rest-api-to-get-authorization-key/6028/6 "2019-09-27T12:25:20Z")

</div>

yeah it works for me  
Thanks a lot @tommy .

---

<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:** [September 27, 2019, 4:18pm UTC](https://devforum.zoom.us/t/rest-api-to-get-authorization-key/6028/7 "2019-09-27T16:18:39Z")

</div>

Happy to hear! Let us know if you have any other questions! 🙂

Thanks,  
Tommy
