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,639,044
Community Members
 
Community Events
196
Community Groups

OpsGenie - API - Unauthorized

Deleted user Jun 05, 2019

Hey All,

I am trying to use OpsGenie API - specifically the "who is on call" one (https://docs.opsgenie.com/docs/who-is-on-call-api) 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 'https://api.opsgenie.com/v2/schedules/2107d3dc-1d81-4dac-a4b8-fd372c9879ee/on-calls' --header 'Authorization: GenieKey xxxx-xxx-xx-xxxxxx"

curl --insecure -X GET 'https://api.opsgenie.com/v2/teams/009e0770-055a-4d04-861f-82a4383e5740' --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,

Marcin

 

1 answer

1 accepted

8 votes
Answer accepted
Deleted user Jun 06, 2019

And the answer is - use EU API URI - https://api.eu.opsgenie.com/ - missed that. Many thanks to support guys!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events