# How to generate Zoom Access Token valid for more than 24 hours

**URL:** <https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561>\
**Category:** API and Webhooks\
**Created:** [November 10, 2020, 7:15am UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561 "2020-11-10T07:15:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![namrata](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namrata/32/9533_2.png) [@namrata](https://devforum.zoom.us/u/namrata)\
**Post date:** [November 10, 2020, 7:15am UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561/1 "2020-11-10T07:15:06Z")

</div>

Hello There,

We need to generate the Zoom Access Token that can be valid for more than 24 hours. We are using this api to get the zak.

**[https://api.zoom.us/v2/users/{userId}/token?type=zak](https://api.zoom.us/v2/users/%7BuserId%7D/token?type=zak)**

According to below article, the token is valid for 2 hours only.

> **[Access Credentials - Client SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/credentials#:~:text=Apps%20in%20which%20end-users,the%20meeting%20as%20a%20participant)**
>
> Access Credentials
> 
> Zoom SDKs are authenticated using account-level access credentials (SDK Key & Secret) and user-level tokens (User Tokens and Zoom Ac...

" **ZAKs have an expiration time of 2 hours, from the time of the response.** Accounts with “API User” members have expiration times of 90 days."

This 90 days case is not clear to me, please explain.

Thanks.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 10, 2020, 6:42pm UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561/2 "2020-11-10T18:42:01Z")

</div>

Hi @namrata, thanks for the post.

Since the ZAK is retrieved from the API, I would recommend posting this in #api-and-webhooks so that one of my extremely knowledgeable colleagues can assist you with your usage of our REST API. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![namrata](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namrata/32/9533_2.png) [@namrata](https://devforum.zoom.us/u/namrata)\
**Post date:** [November 11, 2020, 4:11am UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561/3 "2020-11-11T04:11:12Z")

</div>

Updated. Hope to get a helpful reply soon.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 11, 2020, 8:20pm UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561/4 "2020-11-11T20:20:16Z")

</div>

Hi @namrata,

ZAK tokens will need to be refreshed by making a new request, if it’s over 2 hours since it was generated. To clarify, the 90 day expiration is specific to our custCreate user types, which is functionality that is exclusive to our [ISV/API Partners](https://zoom.us/docs/en-us/platform/isv.html).

Let me know if this helps to clarify,  
Will

---

<div class="post-metadata">

**Author:** ![namrata](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namrata/32/9533_2.png) [@namrata](https://devforum.zoom.us/u/namrata)\
**Post date:** [November 24, 2020, 7:58am UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561/5 "2020-11-24T07:58:53Z")

</div>

Sorry for late reply @will.zoom. Your reply is clear to me.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 24, 2020, 8:19pm UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561/6 "2020-11-24T20:19:50Z")

</div>

Glad I could help, @namrata!

Best,  
Will

---

<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:** [December 25, 2020, 6:19am UTC](https://devforum.zoom.us/t/how-to-generate-zoom-access-token-valid-for-more-than-24-hours/35561/7 "2020-12-25T06:19:58Z")

</div>

Closed on December 25, 2020, 6:19am UTC

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