Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
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.

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Atlassian Access

We're launching improved navigation for admins

Hi Atlassian Community, My name is Avni Barman and I am a Product Manager on the Atlassian Access team! One of my top priorities is to help make the administrator's life easier through improved pro...

1,088 views 2 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you