# Does oauth key expire immediately?

**URL:** <https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, professional, contacts\
**Created:** [October 11, 2021, 5:41am UTC](https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123 "2021-10-11T05:41:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JZhao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jzhao/32/98997_2.png) [@JZhao](https://community.hubspot.com/u/JZhao)\
**Post date:** [October 11, 2021, 5:41am UTC](https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123/1 "2021-10-11T05:41:24Z")

</div>

I have setup oauth authentication based on this doc:

> **[Working with OAuth - HubSpot docs](https://developers.hubspot.com/docs/apps/legacy-apps/authentication/working-with-oauth)**
>
> OAuth is a secure means of authentication for your app. It uses authorization tokens rather than a password to connect your app to a user account.

HubSpot OAuth access tokens now expire after 30 minutes (1,800 seconds), rather than 6 hours. If I rotate a new key before that, will the old key becomes invalid immediately? Or is the old key still valid until 6 hours. Does this mean there will be multiple valid key in a certain time?

_Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 22, 2026. Thank you for your contributions to the HubSpot Community!_

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 11, 2021, 5:55am UTC](https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123/2 "2021-10-11T05:55:44Z")

</div>

Hi @JZhao ,

Refreshing an OAuth access token does not automatically invalidate the previous token. Multiple access tokens may remain valid until their respective expiration times, unless revoked.

_Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 22, 2026. Thank you for your contributions to the HubSpot Community!_

---

<div class="post-metadata">

**Author:** ![JZhao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jzhao/32/98997_2.png) [@JZhao](https://community.hubspot.com/u/JZhao)\
**Post date:** [October 11, 2021, 7:17am UTC](https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123/3 "2021-10-11T07:17:18Z")

</div>

Thanks for your reply. If there are multiple valid token, how does API limit apply? Does each token have separate API limit?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 11, 2021, 8:05am UTC](https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123/4 "2021-10-11T08:05:00Z")

</div>

Hi @JZhao ,

Like I commented in your other post, the API limits for OAuth apply per app per portal. So one install of your app has the 100/10 burst limit. A second install in a different portal will have a new burst limit of 100/10.

---

<div class="post-metadata">

**Author:** ![JZhao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jzhao/32/98997_2.png) [@JZhao](https://community.hubspot.com/u/JZhao)\
**Post date:** [October 11, 2021, 8:56am UTC](https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123/5 "2021-10-11T08:56:04Z")

</div>

Hi @Teun ,

Thanks for your reply. What I mean is the same install. Like you said, there could be multiple valid oauth tokens if I refresh before the old one expires. Is each oauth token using its own limit? or are all these tokens sharing the same api limit?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 11, 2021, 9:25am UTC](https://community.hubspot.com/t/does-oauth-key-expire-immediately/45123/6 "2021-10-11T09:25:33Z")

</div>

**Update (October 2026):**

For anyone coming across this thread, HubSpot OAuth access tokens now expire after **30 minutes** , rather than the six hours mentioned in the original discussion.

You can use a refresh token to generate a new access token before the existing one expires. Refreshing a token doesn’t automatically invalidate the previous access token.

Also, API rate limits are shared across tokens belonging to the same app installation, so generating additional tokens doesn’t increase your available API requests.

For new integrations, HubSpot recommends using the latest OAuth API endpoints (`/oauth/2026-03/token`).

You can find more details in the [OAuth token management guide](https://developers.hubspot.com/blog/oauth-token-management-hubspot-integrations).

* * *

Hi @JZhao ,

The API limits apply to all tokens per install, so no, not each OAuth token has its own limits but each app install. All tokens together share the same API limits.

_Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 22, 2026. Thank you for your contributions to the HubSpot Community!_
