The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 8, 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events