Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to get the repository access token expiry date

Rexhaj Liridon_ BKW
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 25, 2025

I would like to make an alarm when one of our repository access tokens is about to expire so we can rotate it in time. Some of the tokens are stored in Azure key vault and others not. so getting the expiry date directly from bitbucket would be better because its central. Is there a way to get the tokens or is there a better way or best practice for this issue?

2 answers

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2025

Hey @Rexhaj Liridon_ BKW 

Welcome to the community!

Currently, there is no API endpoint to retrieve access token expiry; this information is only accessible through the UI. We recommend voting for the existing feature request and monitoring it at:
https://jira.atlassian.com/browse/BCLOUD-23192

Regards,
Syahrul

0 votes
Aron Gombas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 26, 2025

@Rexhaj Liridon_ BKW I do not think that you can get the expiration date of a token programatically. And, I have never seen anyone doing it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events