I am trying to access the REST APIs that fetch the "Users" information. For Eg: https://api.bitbucket.org/2.0/user . This GET request always gives me an error - "
Hi Ritesh and welcome to the community!
The endpoint https://api.bitbucket.org/2.0/user will return the currently logged-in user based on the authentication method you are using. This will work if you use a username and app password, for example, but it will not work with a repository access token.
Can you please let me know which authentication method you are using for this API call from the ones listed on this page?
In case you use OAuth, which grant flow are you using to obtain an access token?
The same issue when I try to fetch UUID of any user using the "Nickname" as parameter.
The nickname is not unique and it can't be used with the following API endpoint:
You will need to use the UUID of the Bitbucket user enclosed in curly brackets. Please keep in mind you may need to escape the curly brackets, so use %7B instead of { and %7D instead of }.
For example, for a user with UUID 280g0f52-6832-9a31-f7er-488219b3e826 you would need to use
https://api.bitbucket.org/2.0/users/%7B280g0f52-6832-9a31-f7er-488219b3e826%7D
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.