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
Community Members
Community Events
Community Groups

Opsgenie and Postman - Maintenance with API

Hello all! I'm trying to be able to use Postman to create maintenance windows for our instances. I'm does not very familiar with Postman and am not having any luck. I have tried to follow this but I still get 401 error when trying to run it, any help would be appreciated. I think I just have the wrong genie key or API?


2 answers

1 accepted

0 votes
Answer accepted

Hi @Derek Stevenson ,

Listing global maintenance policies should require no more than this request:



The API key being used in my example is from a global API integration - meaning it's not assigned to any team. You should also be able to use an API key from the API key management tab.

If your Opsgenie is an EU instance, then you'll want to use the URL:

If that's the case, then using the US URL would probably show a 401 error.

Wow thanks that worked! like I said I'm not that savvy with postman yet, didn't realize we type the key as "Authorization" and add the geniekey xxx in value. Thanks so much!

Like Nick H likes this
0 votes
Eugenio Onofre Community Leader Aug 08, 2022

Hello @Derek Stevenson

You should use Authorization header.
The value would be GenieKey XXXXXXX, where XXXXXXX is your API Key from Opsgenie.


Wait sorry I'm a little confused like this? It doesn't work either i still get the 401 error. I'm using the default Opsgenie API that comes with account, should i make a separate new one for this?


Eugenio Onofre Community Leader Aug 09, 2022

You should use something like the cURL below:


curl --location --request GET '' \
--header 'Authorization: GenieKey XXXXX'
Where XXXXX will be your key. 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events