I perform the following request:
/bitbucket/rest/api/1.0/users/USER_NAME?avatarSize=64
Then I get an avatarUrl from the response:
"/bitbucket/users/USER_NAME/avatar.png?s=64&v=1755281538949"
I pass "Authorization: Bearer TOKEN" header, but it still returns a default avatar image to me. It works correctly only if I open it in a browser.