The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Troubling making call to bitbucket via postman using APP Password

Kelly
May 8, 2022

Ive created a APP Password in Bitbucket and am attempting to make the below call using POSTMAN.

https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get

In postman Ive set it to use BASIC AUTH where the username is my regular email username and the password is the generated APP Password.

When it hit SEND, i get the below response:

 

Bitbucket Cloud recently stopped supporting account passwords for API authentication.
See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
App passwords are recommended for most use cases and can be created in your Personal settings:
https://bitbucket.org/account/settings/app-passwords/
For more details on API authentication methods see our documentation:
https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication

 

What am i doing wrong?

 

many thanks! 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 10, 2022

Hello @Kelly ,

Welcome to Atlassian Community!

From your description you are using your account's e-mail address as the username and I think this is the issue here.

To authenticate your calls to Bitbucket API using basic auth you need to provide your bitbucket username, and not e-mail address. You can find the bitbucket username of your account going to your account's personal settings (https://bitbucket.org/account/settings/), and looking for the field Username under Account Settings.

Then, you can use the bibucket username along with an App Password as your credentials for authenticating the request to Bitbucket API.

Hope that helps! Let me know if you have any question.

Thank you @Kelly .

Kind regards,

Patrik S.

TAGS
AUG Leaders

Atlassian Community Events