Forums

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

Not able to clone using HTTPS

Priyal Jadav
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 1, 2025

I'm trying to clone a repository into my local machine using HTTPS clone. The windows credential manager asked for username and password/token. I have entered my API token but it is giving authentication failed.

My user has access to repository as I'm able to clone when I add SSH key and clone so permission issue is not there.

I saw two options - App Passwords (depreciated) and API token. The setup is not letting me generate App Passwords as it is depreciated and API tokens are not working.

How can you clone using HTTPs in this case? 

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2025

Hey @Priyal Jadav 

Welcome to the community!

To clone using an API token, please check our documentation below:

Using API token 

Essentially, your clone url should look similar to this:

git clone https://{bitbucket_username}:{api_token}@bitbucket.org/{workspace}/{repository}.git

For example:

git clone https://myusername:myapitoken123@bitbucket.org/{workspace}/{repository}.git

 Regards,
Syahrul

Suggest an answer

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

Atlassian Community Events