# Getting OAuth tokens for API with service permissions in Zoom

**URL:** <https://devforum.zoom.us/t/getting-oauth-tokens-for-api-with-service-permissions-in-zoom/19560>\
**Category:** API and Webhooks\
**Created:** [May 29, 2020, 3:39pm UTC](https://devforum.zoom.us/t/getting-oauth-tokens-for-api-with-service-permissions-in-zoom/19560 "2020-05-29T15:39:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gergely.jaczko](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@gergely.jaczko](https://devforum.zoom.us/u/gergely.jaczko)\
**Post date:** [May 29, 2020, 3:39pm UTC](https://devforum.zoom.us/t/getting-oauth-tokens-for-api-with-service-permissions-in-zoom/19560/1 "2020-05-29T15:39:48Z")

</div>

**Description**  
What is the correct way to get OAuth access tokens for an API with service permissions (no need for user permission). We do not want to share JWT tokens between different applications so we stuck with OAuth. Our Zoom adminstrator has generated (tenant and shared secret and) the first token for us. But we do not see a way to get the tokens by only having the tenant ID and shared secret. What we do right now that we store the last token and the refresh token (which is a one-off token) in a database andd we invoke the refresh token when the actual is expired and save the new token to the database again.

Is there a better way to do this?

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

**Which Endpoint/s?**

> **[Create a Meeting - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)**
>
> Create a meeting for a user. This API has a daily rate limit of 100 requests per day. Therefore, only 100 Create a Meeting API requests are permitted wi...

**How To Reproduce (If applicable)**

> **[Create a Meeting - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)**
>
> Create a meeting for a user. This API has a daily rate limit of 100 requests per day. Therefore, only 100 Create a Meeting API requests are permitted wi...

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [June 3, 2020, 4:09pm UTC](https://devforum.zoom.us/t/getting-oauth-tokens-for-api-with-service-permissions-in-zoom/19560/2 "2020-06-03T16:09:19Z")

</div>

Hi @gergely.jaczko all OAuth apps need to be installed onto a user account to retrieve and refresh access tokens.

Your workflow is the suggested use to store and update both of these tokens.

---

<div class="post-metadata">

**Author:** ![gergely.jaczko](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@gergely.jaczko](https://devforum.zoom.us/u/gergely.jaczko)\
**Post date:** [June 4, 2020, 8:09am UTC](https://devforum.zoom.us/t/getting-oauth-tokens-for-api-with-service-permissions-in-zoom/19560/3 "2020-06-04T08:09:39Z")

</div>

Hi Michael,

thanks for your reply. So in other words if we develop a web service to do changes in Zoom and we do not want to store tokens in our database we have to use JWT. Am I right? As far as I know there could be only one JWT app for a workspace. This would mean that we have to share credentials between different apps. Am I right? If this is the case this would impose risks in accessing, auditing and also it would violate the least privilege principal (as some apps do not need as many privileges as others). Is there any way to mitigate this?

Thanks, Gergely

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [June 9, 2020, 4:54pm UTC](https://devforum.zoom.us/t/getting-oauth-tokens-for-api-with-service-permissions-in-zoom/19560/4 "2020-06-09T16:54:03Z")

</div>

Hi @gergely.jaczko,

Yes, an account only has one API Key & Secret, and should be shared between applications. We have some plans to expand capabilities and restrictions on JWT apps (API Keys), but we don’t have a timeline on these improvements.

For user & application scoping, we recommend OAuth. As above, this would mean using an access token to make requests, and storing the current refresh token along with user records.

---

<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, 9:57pm UTC](https://devforum.zoom.us/t/getting-oauth-tokens-for-api-with-service-permissions-in-zoom/19560/5 "2020-08-21T21:57:24Z")

</div>

Closed on August 21, 2020, 9:57pm UTC


