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?

1 answer

0 votes
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 15, 2025

A hostname resolution error occurred when selecting the scope to read user information.

read:user:bitbucket

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