# Define oAuth Server-to-Server Bearer Token Expiration Time

**URL:** <https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559>\
**Category:** API and Webhooks\
**Created:** [February 3, 2023, 11:00am UTC](https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559 "2023-02-03T11:00:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiaan.schulz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tiaan.schulz/32/44686_2.png) [@tiaan.schulz](https://devforum.zoom.us/u/tiaan.schulz)\
**Post date:** [February 3, 2023, 11:00am UTC](https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559/1 "2023-02-03T11:00:41Z")

</div>

**Description**  
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

---

<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:** [February 3, 2023, 4:50pm UTC](https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559/2 "2023-02-03T16:50:07Z")

</div>

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,  
Elisa

---

<div class="post-metadata">

**Author:** ![tiaan.schulz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tiaan.schulz/32/44686_2.png) [@tiaan.schulz](https://devforum.zoom.us/u/tiaan.schulz)\
**Post date:** [February 6, 2023, 4:23pm UTC](https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559/3 "2023-02-06T16:23:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![clstrife](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clstrife/32/49388_2.png) [@clstrife](https://devforum.zoom.us/u/clstrife)\
**Post date:** [August 25, 2023, 7:14am UTC](https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559/4 "2023-08-25T07:14:31Z")

</div>

Hi @elisa.zoom

I’m sorry, but when I generate three 1 hour access tokens in a row, I can still use all three.

According to my tests, Zoom does not invalidate previously generated tokens.

---

<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:** [August 25, 2023, 1:20pm UTC](https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559/5 "2023-08-25T13:20:29Z")

</div>

Hi @clstrife  
This is the expected behavior.  
When we first launched the Server to Server Oauth app, the generation of a new token, invalidated the previous one but we changed this a couple of months ago so now a new token wont invalidate the previously generated one.  
hope this helps,  
Elisa

---

<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:** [August 26, 2023, 1:21pm UTC](https://devforum.zoom.us/t/define-oauth-server-to-server-bearer-token-expiration-time/82559/6 "2023-08-26T13:21:15Z")

</div>

Closed on August 26, 2023, 1:21pm UTC

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