Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

App password don't work for all API endpoints

Jos Last September 27, 2021

Hello,

I use the API in combination with the app password. When i call the following url I get a response:

https://api.bitbucket.org/2.0/repositories/{MY-WORKSPACE}/{MY_REPO}/commits/?include=master

But when I call this url, I get a http_status 403. Does anyone know why?

https://api.bitbucket.org/2.0/repositories/{MY-WORKSPACE}/{MY_REPO}/diffstat/87d4d49

 

 

1 answer

1 accepted

2 votes
Answer accepted
seanaty
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2021

Both of these APIs should require the same level of permission. 403 is the response that you'd get if passed in no authorization whatsoever (for a private repository). It is indeed odd that one of them would 200 while the other returns 403. I would check script for any typos.

Jos Last September 28, 2021

Thanks for the confirmation! Seems to have something todo with my code or request in PHP. When I run the request in postman with the same authentication method the request succeed. So will dive in to my code and figure this one out :)

Thanks for the quick response!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events