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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.