Forums

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

Do we have any API Endpoint to create repository access token?

Milanjeet Singh
December 5, 2025

I am working on a POC where I need to create an Access Token for the Repository via the Bitbucket API endpoint. If there is any API endpoint, can you please share it?

1 answer

0 votes
Alexander Nilsson
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 Champions.
December 5, 2025

Hello Milanjeet,

thanks for your question and welcome to the Atlassian Community. 

Unfortunately there is currently no public Bitbucket Cloud REST API to create or manage repository access tokens. They can only be created in the UI under Repository settings → Access tokens.

Furthermore depending on what your POC needs, there are a few token options you could also consider:

  • Repository access tokens – Scoped to a single repository, good for tightly isolated integrations (one CI job or service per repo). Must be created manually in the repo settings. Create a repository access token
  • Workspace / project access tokens – Same concept, but scoped to all repositories in a project or workspace (Bitbucket Premium). Useful if your automation should cover many repositories without managing a token per repo. Access tokens
  • User API tokens – Tokens tied to a user, used with Basic auth for REST and Git, and can be scoped with permissions. Best when your POC acts “as a user” across multiple repositories or workspaces and you want to automate everything from one place. Create an API token 

For your POC, if the hard requirement is “create a repo token via API”, that is not possible today, so the closest alternative is to use a user API token or a workspace/project token (if available on your plan) and scope it as narrowly as your use case allows.

Hope that helps. 

Greetings, 

Alex

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events