I have setup oauth authentication based on this doc:
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!
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!
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.
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?
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).
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!