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

Getting 401 unauthorized while getting cloud id

sikka_tanu 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

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