Question:
I tried to curl /user using Repository Access Token, but failed.
$ curl --request GET --url 'https://api.bitbucket.org/2.0/user' --header 'Authorization: Bearer {REPOSITORY_TOKEN}' --header 'Accept: application/json'
{"type": "error", "error": {"message": "Token is invalid or not supported for this endpoint."}}Any plan to support this API?
What I want to do:
I want to create pull request using this Repository Access Token, NOT App password .
App password is directory related my Bitbucket account. This is not suitable for my usage.
What I checked
When I created pull request with Repository Access Token, something like bot account created pull request.
Therefore, seems possible to me to get the info on the account, which account type is "App User".