Forums

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

How to authorize and download repository with email and API Token?

Chitra Lakshmi
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 21, 2025

A few days ago, I used an App password to call the Bitbucket API to download a repository. Later, I tried to do the same with API Token, with the 'Email' and API token, 

requests.get(repo_url, auth=HTTPBasicAuth(email, appAPIToken))
I'm getting a response code of 401.

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2025

Hi @Chitra Lakshmi 

Can you please share the cURL command you're running (please replace email/APIToken with placeholder values as this is a public forum), or at least share the API endpoint so I may test this on my end?

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

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

Atlassian Community Events