<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Okta API Token Expiration and Deactivation
Okta Classic Engine
Okta Identity Engine
Administration
Overview
This article explains when an API Token expires and how it gets deactivated.
Applies To
  • API Token
  • Token Expiration and Deactivation
Solution

Tokens expire automatically after a certain period and can be deactivated anytime.

Token expiration:

  • Tokens are valid for 30 days from creation or last use, and the expiration date automatically refreshes with each API call.
  • Tokens that are not used for 30 days expire.
  • The 30-day period is currently fixed, and it applies to all orgs.
  • NOTE: Once an API token expires, it is revoked and cannot be used again.

Token deactivation:

  • If a user account is deactivated in Okta, any API token created by that user account is deprovisioned simultaneously.

The following color codes are used to show the token status.

  • Green – The token has been used within the last three days.
  • Gray – The token has not been used in the last three days, and today is at least seven days before its expiration date.
  • Red – The token is within seven days of expiring.
  • Yellow – The token is suspicious.

Related References

Loading
Okta API Token Expiration and Deactivation