Forums

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

Using APi Tokens for repo cloning

Daniel Jurkowski
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!
October 11, 2025

Hello. I’m unable to clone a repository using an API token. I’ve gone through the documentation and checked related threads on this forum.

I’ve tried cloning both via WebStorm and directly from the command line using git clone.
I tested different formats, including cloning with just the username and also with the username and token separated by a colon.

In the best case, I end up with this error: 

Your credentials lack one or more required privilege scopes. fatal: unable to access 'https://bitbucket.org/***/***.git/': The requested URL returned error: 403

I’m wondering if I granted the correct permissions when creating the token.
Is the admin:repository:bitbucket scope sufficient for cloning a repository, or do I need to include other scopes as well?

0 answers

Suggest an answer

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

Atlassian Community Events