# Can we use an API secret without needing to request OAuth tokens?

**URL:** <https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [July 3, 2025, 4:22pm UTC](https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820 "2025-07-03T16:22:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamDev](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AdamDev](https://devforum.zoom.us/u/AdamDev)\
**Post date:** [July 3, 2025, 4:22pm UTC](https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820/1 "2025-07-03T16:22:01Z")

</div>

I am building a little server-to-server tool that needs to make API calls to check the meetings in an account.

From what I can see in the docs, I need to make a Server-to-Server OAuth app and then I can:

1. Make an API call with my id:secret with `grant_type=account_credentials` which gives me an access token
2. Then I can make API calls with `Bearer token`

The access token is only valid for an hour. So in my case, every time I want to make the API call, I have to first make the extra call to get the OAuth token. This means an extra call to the API every time I want to query something.

**Is there a way to call the meetings API directly with an API secret of some kind?** I am only trying to call the API from a server. Do I have to go through the extra step of requesting an OAuth access token all the time?

If not, please help me understand: If I can use a secret to get an access token anytime I want, why can’t I just use that secret to access the API?

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [July 4, 2025, 12:46pm UTC](https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820/2 "2025-07-04T12:46:33Z")

</div>

Hi Adam, welcome!

You’re on the right track - **Zoom has deprecated JWT tokens** , so the Server-to-Server OAuth flow is now the only supported way for backend integrations.

You’re correct that you need to use your `client_id` and `client_secret` to get an access token with `grant_type=account_credentials`. However, **you don’t need to request a new token on every API call**.

Here’s how you can improve your implementation:

- **Cache the token in memory** (e.g., in `process.zoomauth` or a similar object).
- Only request a new one if no token exists or if the previous one has expired or hit a `429` or `401`.
- Example logic in Node.js:

```auto
if (!process.zoomauth?.access_token) {
  process.zoomauth = await getZoomToken();
}

try {
  await callZoomAPI(process.zoomauth.access_token);
} catch (err) {
  if (err.response?.status === 429 || err.response?.status === 401) {
    process.zoomauth = await getZoomToken();
    await callZoomAPI(process.zoomauth.access_token);
  }
}

```

This approach avoids hitting the token endpoint every time, while still ensuring you have a valid token when needed.

Let me know if you need help with a token handler or wrapper!

Best,  
Naeem Ahmed

---

<div class="post-metadata">

**Author:** ![AdamDev](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AdamDev](https://devforum.zoom.us/u/AdamDev)\
**Post date:** [July 4, 2025, 8:15pm UTC](https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820/3 "2025-07-04T20:15:41Z")

</div>

> [@freelancer.nak](#):
>
> o the Server-to-Server OAuth flow is now the only supported way for backend integrations.

Thanks for the detailed reply. I am building a microservice function being run on CloudFlare Workers, so it doesn’t make as much sense to store the access token in memory. There are options for caching/persistence but it is a bit of a pain.

I’m just wondering what the security rationale behind this extra step is. If I can use the `client_secret` to get a token whenever I want, and my requests are encoded, why shouldn’t I be able to access the API with this `client_secret` ? I don’t see how the extra step (requesting the access token) is helpful or necessary.

---

<div class="post-metadata">

**Author:** ![expertswho](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/expertswho/32/60945_2.png) [@expertswho](https://devforum.zoom.us/u/expertswho)\
**Post date:** [July 4, 2025, 10:13pm UTC](https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820/4 "2025-07-04T22:13:54Z")

</div>

hi @AdamDev ,

The method is that you start with your id and secret  
you use oauth to get your secure token and your refresh token  
You use the secure token when using api calls  
When that secure token expires, you use the refresh token to get a new one.

So, to use most API calls, you must have the token.  
However, there are a set of inmeeting apis, and they dont need the token.

Hope that covers it all  
all the best

John

---

<div class="post-metadata">

**Author:** ![MultiplayerSession](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/multiplayersession/32/66446_2.png) [@MultiplayerSession](https://devforum.zoom.us/u/MultiplayerSession)\
**Post date:** [July 10, 2025, 7:46pm UTC](https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820/5 "2025-07-10T19:46:16Z")

</div>

Having a long-lived secret be separate from a short-lived access token lets you isolate the secret into a separate component that is closely guarded / designed. This component can retrieve a fresh access token and distribute it to less trusted components (say, that might be maintained by another / outsourced development team). If the access token is leaked, it will only remain valid for a short period of time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 14, 2026, 11:22am UTC](https://devforum.zoom.us/t/can-we-use-an-api-secret-without-needing-to-request-oauth-tokens/134820/6 "2026-07-14T11:22:53Z")

</div>

Closed on July 14, 2026, 11:22am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
