Hi,
I am trying to get cloud id using the below url, but getting 401 unauthorized error-
https://api.atlassian.com/oauth/token/accessible-resources
What all have tried-
1. curl -D- -X GET -H "Authorization: Basic BASE64_ENCODED_EMAIL:API_TOKEN" -H "Content-Type: application/json" "https://api.atlassian.com/oauth/token/accessible-resources"
2. Postman GET call to https://api.atlassian.com/oauth/token/accessible-resources with bearer set as the api token.
The api token is generated here- https://id.atlassian.com/manage-profile/security/api-tokens
Referred method for authentication- https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/
Please note- I am able to call other rest api endpoints using the same api token with basic authentication like-
https://my-domain.atlassian.net/rest/servicedeskapi/request/10011
username- email
password - api token
Please advise.