Forums

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

Cannot connect with API token

kernoweb
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!
June 12, 2026

Created an API token "with scopes" here https://id.atlassian.com/manage-profile/security/api-tokens including all 42 Bitbucket permissions.

Set the token like this:

git remote set-url origin https://{bitbucket_username}:{api_token}@bitbucket.org/{workspace}/{repository}.git

Now when I push I get:

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

Please advise.  I have tried repeating the steps and looking through the docs, and looking at responses to other people who have had issues with this and cannot find a solution.  

1 answer

0 votes
Arkadiusz Wroblewski
Community Champion
June 12, 2026

Hello @kernoweb 

Can you list what you already tried?

Best,

Arkadiusz 🤠 

Suggest an answer

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

Atlassian Community Events