I have an API token that is about to expire, but I don't remember how it was created (just 'create' or with scopes). Is there an API call I can make to find the attributes or otherwise get info on the token itself?
Hi Justin,
Yes, there is a way to retrieve information about API tokens, although it depends on whether you have Organization Admin access.
Atlassian now exposes API token information through the API Access REST API.
For user API tokens in an organization, an Organization Admin can call:
GET https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-tokens
The response includes information such as:
For example, the response contains a structure similar to:
{
"data": [
{
"id": "...",
"label": "...",
"status": "ALLOWED",
"createdAt": "...",
"expiresAt": "...",
"lastActiveAt": "...",
"user": {
"id": "...",
"name": "...",
"email": "..."
},
"scopes": [
"read:jira-work",
"write:jira-work"
]
}
]
}So if your token was created with scopes, the scopes property lets you identify exactly which scopes were assigned to it.
If it was created using the legacy/general Create API token option without scopes, you should not expect to see a set of granular Jira/Confluence scopes associated with it in the same way.
This API is an organization administration API. It is not a token introspection endpoint where you submit the token value itself.
You need Organization Admin permissions and an appropriate Atlassian Admin API credential with the required read:tokens:admin scope.
So you cannot do something like:
GET /token-info?token=<my-token>
using the expiring token itself and ask Atlassian what permissions that token has.
Instead, you retrieve the organization’s token inventory and identify the token by its label/user/metadata.
If you are an Organization Admin, Atlassian Administration provides the same type of visibility under:
Atlassian Administration → Insights → API token activity
There you can see token activity for managed accounts, including details such as when a token was created, when it expires, and when it was last used.
For your specific case, I would first check the token in API token activity. If you need the scope information programmatically, use the API Access REST API above.
One additional point: scopes cannot be modified after a token has been created. If you discover that the existing token has the wrong scopes — or if you are unsure about how it was originally configured — the safest approach is usually to create a new scoped token with only the permissions the integration actually requires and replace the old one before it expires.
Thank you for the excellent answer! Unfortunately, I'm sure I'm not an admin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's no REST API that lets you introspect an existing token's attributes (type, scopes, creation date), API tokens aren't "queryable" that way once created.
The only place to check is the management UI: go to https://id.atlassian.com/manage-profile/security/api-tokens while logged into the account that created it. That page lists each token by name with its creation date and expiration date, and tells you whether it's a classic token (unrestricted) or a scoped token but it won't show you the specific scopes you picked for an existing scoped token; that detail isn't retained for display after creation.
Since it's expiring soon anyway, the practical path is usually: check the token's name/date there to identify which one it is, then just create a replacement token (with scopes, if that's what the old one had) and swap it into your script — there's no way to "clone" the original's exact configuration otherwise.
Reference:
https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Karl from Ricksoft I'm not trying to clone (though that is a nice idea).
You say to create a replacement like the old one was, but this is the crux of my query - I don't know how it was created.
Also, the tokens dashboard does not tell me anything about how the token was made, as this is ALL that it shows: DefectVOs_expires20260909 Sep 9, 2025 Sep 8, 2026 58 minutes ago
It doesn't says if it is classic or scoped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.