Is there a way to get a list of Repository Access Tokens using the Bitbucket API?

Nagaraja (MicroGenesis TechSoft)
Atlassian Partner
February 12, 2025

I am working on Bitbucket repository access management and would like to know if there is any way to retrieve a list of all repository Access Tokens using the REST API.

- I understand that we can create and revoke access tokens manually, but is there an API to list all tokens?

- If not, is there any workaround or alternative way to manage tokens programmatically? Any guidance would be greatly appreciated.

1 answer

0 votes
Phil C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2025

Hello,

We're glad to have you in the community!

The Bitbucket Cloud API does not display access tokens for repositories or accounts after they are created, and we currently do not provide these tokens for security purposes.

We have an open feature request to create specific endpoints for managing access tokens - Create API endpoints to manage WAT, RAT, and PAT.

I encourage you to vote on the feature request to help boost its visibility and add yourself as a watcher to stay updated on its progress. For further information on Atlassian’s process of handling and prioritizing new feature requests, please check out the Implementation of New Features Policy.

Cheers,

Phil C.

Suggest an answer

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

Atlassian Community Events