I followed the API documentation to access my user profile via the API as well as eventually finding the (bizarre) way to find my account ID.
On requesting https://api.atlassian.com/users/712...dce/manage/profile it returns a 401 however by looking at the profile UI I see it requests https://id.atlassian.com/gateway/api/users/712...dce/manage/profile successfully.
Does anyone know why is the documented API gives a 401 unauthorised when the undocumented API is working without problem?
Hello @AJP
The reason you can't access that endpoint is because it's part of the Atlassian Cloud Admin APIs that are restricted to only being accessible by your organisation's admins.
For your personal account ID, just use the various Myself endpoints, such as:
GET
https://<your_domain>.atlassian.net/rest/api/3/myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.