Forums

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

API Token not working with Sourcetree

Johan Thureson
April 13, 2026

This is for Sorucetree on Mac.

I'm on version 4.2.17 (311)

I'm following the instructions "Add an API token to Sourcetree or another application" here: https://support.atlassian.com/bitbucket-cloud/docs/add-an-api-token-to-sourcetree-or-another-application/

I am using HTTPS as protocol. (The instructions doesn't say anything there).

When I follow the instructions, i get

"Invalid username"

"Please enter your Bitbucket/GitHub username and not an email address."

 

Are the instructions wrong?

Did anyone get this to work?

2 answers

1 accepted

1 vote
Answer accepted
Johan Thureson
April 14, 2026

You have to have restarted your mac right before doing it. Trying a second time it won't work.

Using:

Auth Type: API Token

Johan Thureson
April 13, 2026

Then I get "Login error". 

"We couldn't connect to Bitbucket with your (...@...) credentials. Check your User Email and try the API Token again."

Tomislav Tobijas
Community Champion
April 13, 2026

@Johan Thureson are you using Bitbucket cloud or server? Those instructions I've put there were for the cloud app.

Also, I did test this on Windows and not sure if it will work on Mac 🤔

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events