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,463,742
Community Members
 
Community Events
176
Community Groups

Unauthorised response in Get Organizations API?

 

Hi Atlassian team,

In the following documentation,

https://developer.atlassian.com/cloud/admin/organization/rest/#api-orgs-get

If I use curl to GET Organizations, I'm getting Unauthorised 401 Response.

Is it missing something,

curl --request GET --url 'https://api.atlassian.com/admin/v1/orgs' --header 'Authorization: Bearer MY-API-TOKEN' --header 'Accept: application/json'

 

Thanks and regards,

Rohan 

2 answers

1 vote

Hello Rohan,

Thanks for reaching out to Community!

The token for the Organization's API is a little different from APIs that we use for other Cloud products.

When it comes to Organization API we need to generate the token directly in the Org. Please, go to admin.atlassian.com > Select the desired organization > Settings > API keys and create a new key.

curl --request GET \

  --url 'https://api.atlassian.com/admin/v1/orgs' \

  --header 'Authorization: Bearer aBCD0eFGhijKl1mnopQr' \

  --header 'Accept: application/json'

Please, give it a try and let us know how it goes.

Regards,
Angélica

1 vote
Dave Meyer Atlassian Team Oct 31, 2019

Hi @Rohan Bardekar

Did you follow the instructions here to create your API key? It's important to note that the API key for the admin API is not the same as the ones you create under your Atlassian account.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events