Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,904
Community Members
 
Community Events
184
Community Groups

Getting 401 unauthorized while getting cloud id

sikka_tanu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 08, 2023

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.

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events