Define oAuth Server-to-Server Bearer Token Expiration Time

Looking to know if the expiration time of the oAuth Server-to-Server app bearer token can be changed from 1 hour to shorter period when making the call to generate a token?

I have read through a lot of articles and docs on Zoom website, but can’t find anything that denotes how to define this value. Also most articles are based around either trying to make the correct call to the correct end-point OR with the correct parameters.

I can generate a token successfully and can make the needed API calls without any incident, but don’t require a 60 min window for token to be valid.

Use case:
Generating secure bearer token with short lifecycle. Each time a call to be made to Zoom endpoint, should be new and unique secure token. This also avoids having to capture a secure token…

Thank you
Tiaan Schulz

Hi @tiaan.schulz
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!
Unfortunately, for now, there is no way to customize the expiration time of a Server-to-Server OAuth token, it is set to 60 min.

Note that every time you generate a new access token, the previous one gets invalidated; so you can generate tokens every time you need them and you don’t have to worry about the previous one because it’s going to get invalidated.

Hope this helps,

Thx Elisa. Good to know and this will work perfectly for what we want to achieve!

1 Like