Forums

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

Failed to authenticate Sourcetree using an API token

AKATSUKA Koichi _赤塚 公一_
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 14, 2025

I want to create an API token in Sourcetree that only allows read and write access to the repository.

When I try to create an API token with the following scopes and attempt authentication, it fails.
“Your credentials lack one or more required priviledge scopes.”

write:repository:bitbucket
read:repository:bitbucket

When I select all available scopes and create an API token, authentication fails with the following message:
“Invalid URI: Could not resolve hostname.”

What scope settings should I select to authenticate successfully?

0 answers

Suggest an answer

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

Atlassian Community Events