What happens to inactive API tokens?
Who can do this? Role: Atlassian account user Atlassian Cloud: All plans Atlassian Government Cloud: Available |
|---|
If an API token isn't used for 90 days, we revoke it automatically. This stops unused tokens from staying active after the scripts and integrations that needed them have stopped running.
Which tokens this applies to
This applies to the API tokens you create for your Atlassian account, with or without scopes. That includes tokens you use with Jira, Confluence, Bitbucket Cloud, and Jira Align.
It doesn't apply to API tokens for service accounts, or to OAuth 2.0 tokens.
When a token counts as inactive
A token is inactive when it hasn't made a successful API call for 90 days. A token you create but never use becomes inactive 90 days after you create it.
Every successful API call starts the 90 days again, so tokens your scripts and integrations use regularly aren't affected.
How this is different from token expiry
Expiry and inactivity work separately. A token expires on the date set when it was created, however often you use it. Inactivity depends on when the token was last accessed.
A token you use regularly keeps working until it expires. A token that isn't used for 90 days is revoked, even if it has a later expiry date or no expiry date.
Before a token is revoked
We email the token owner 30 days before we revoke an inactive token. The email names the token and the date it will be revoked. To keep the token, use it before that date.
Keep the tokens you need
Check when each token was last accessed.
Revoke any tokens you don't need.
If a script or integration runs less often than every 90 days, make sure it runs successfully at least once in each 90-day period.
Learn how to manage API tokens for your Atlassian account
After a token is revoked
A revoked token stops working. To keep a script or integration running, create a new API token and update the script or integration to use it.
Why we revoke inactive tokens
An unused token is still a valid way to access your account until it's revoked or expires. Revoking tokens that haven't been used for 90 days reduces the number of unused credentials that could be misused. This follows NIST SP 800-53 Rev 5, control AC-2(3), which recommends disabling inactive accounts.
Was this helpful?