Forums

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

I have created the API token for bitcuket

A Rakshitha
May 15, 2026

I have created the API token from bitbucket, and trying to push the changes but still i am getting this issue 

rca4ban@KOR-C-017L9:~/rca4ban-unit-testing/rbcode$ git push origin RBSM-4930-som-unit-testing-diagnostics-module
Username for 'https://bitbucket.org': rca4ban
Password for 'https://rca4ban@bitbucket.org':
remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.
fatal: Authentication failed for 'https://bitbucket.org/ridebuddy-bosch/rbcode.git/'

2 answers

2 votes
Vipul Reddy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2026

Hello @A Rakshitha

Could you please clarify whether you created an Access Token from your Bitbucket Cloud workspace, or a user API Token?

If you're using an API Token, could you please ensure that it has the write:repository:bitbucket scope?

If it's an Access Token, please ensure that it has Read and Write permission under 'Repositories'.

A Rakshitha
May 18, 2026

Created from bitbucket cloud workspace, 

how do i check wether it has write:repository:bitbucket scope?

Vipul Reddy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 18, 2026

If you've created the token from your Bitbucket cloud workspace, that would be an Access Token.

Navigate to your workspace or repository settings > Security > Access tokens. Click on the token you created and you'll be shown Scopes. Can you please list what is shown?

Ideally you should have repository and repository:write. If not, please configure a new access token with the suggested scope.

Like Steffen Opel _Utoolity_ likes this
2 votes
Arkadiusz Wroblewski
Community Champion
May 16, 2026

Hello @A Rakshitha 

Is `rca4ban` the Bitbucket username of the same account that created the API token?
Does that account have write access to `ridebuddy-bosch/rbcode`?
Did you create a user API token, or a repository/project/workspace access token?

A Rakshitha
May 17, 2026

Yeah, its an same account.
I am not sure wether write access is provided.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events