You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.