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

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

OpsGenie - API - Unauthorized

Hey All,

I am trying to use OpsGenie API - specifically the "who is on call" one ( however no matter what I try I always get the 'unauthorized' response. I used the curl examples from the above mentioned article, both with the name of the team and ID (taken from the address bar - not sure that's correct), tried to set up different api keys (I assume the right key would be when going "Teams" -> "Integrations" -> "Add integration" -> "Rest API HTTPS over JSON." ?? if not, which one??) but always ever and the same "unauthorized".

My account is verified, sam as all other accounts in my company. I am an "admin" from what I can see. What else might be wrong? The calls I was trying to make (amongst others):

curl --insecure -X GET '' --header 'Authorization: GenieKey xxxx-xxx-xx-xxxxxx"

curl --insecure -X GET '' --header 'Authorization: GenieKey xxxx-xxx-xx-xxxxxx"

the api key was copy / pasted from opsgenie directly. 

the --insecure is needed because I am behind a proxy in my organization. Perhaps proxy is the key here? Any help is appreciated as this is my first time trying to access data in OpsGenie via the API. We do have a working API for our monitoring integration and it works fine however, so ... really don't know what is wrong.


Many Thanks,



1 answer

1 accepted

8 votes
Answer accepted

And the answer is - use EU API URI - - missed that. Many thanks to support guys!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Opsgenie

Leveraging Atlassian’s Opsgenie and AWS Cloudformation Registry to stay ahead of incidents

In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...

887 views 0 7
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