Since API tokens will all have an expiration date of a year from now on, will admins be notified ahead of time that we need to renew? Can we do custom notification? Any workaround we can do? I refer below question from last year, maybe it has latest update on thisAre notifications sent when API tokens are about to expire? - Atlassian
Hi there,
Unfortunately, the behavior discussed in that thread from last year hasn't changed yet. Here is the current state of API token notifications:
Workarounds: Since native admin alerts aren't available, the most reliable workaround is to use external scripting. You can use the Atlassian Admin REST API to periodically pull your organization's users and their API token metadata (which includes the expiration dates).
By running a scheduled script (e.g., via Google Scripts), you can parse those expiration dates and push custom alerts to a Slack channel, Microsoft Teams, or an admin email group when tokens are 30, 15, or 7 days out from expiring.
Feature Request: Atlassian is actively tracking the demand for admin notifications. I highly recommend voting for and watching this specific issue to get updates on its progress: ID-8781: API Token Expiry alert notifications for Organization Admins
Hope this helps clarify the current options!
Hi @Nasman Hakimi, welcome to the Community!
Adding to @Gaurav Arora answer , here's the exact endpoint for that workaround, since it's the piece that's easy to miss:
GET https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/api-tokens
It returns the user API tokens in your organization, each with its expiresAt date and the owner (user.name, user.email). It needs an Atlassian Administration API key that includes the read:tokens:admin scope. With that, a scheduled script can pick out the tokens expiring in the next 30 days and email the owners or post to your admins' channel.
Reference: Get all API tokens in an org
If you'd prefer a no-script option in the future, there's also a suggestion to let Automation for Atlassian Administration use token expiry dates: AUTO-2302. Worth voting for it together with ID-8781.
Hi @Nasman HakimiNo, Atlassian does not currently send native alerts (to admins or token owners) before API tokens expire, and there are no native webhook/automation triggers to build custom alerts directly in Jira.
Workarounds to handle this:
Thanks!!
It looks like you're new here. Sign in or register to get started.