API Setup - URL to send requests

Jean-Eric Paulin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2022

Hi,

I am trying to set our organisation up to send HTTP Requests to our OpsGenie. I have created API Keys and did set things up in Porstman to test this out.

Where can I find the base URL to call our organization's OpsGenie API?

Thanks!

2 answers

2 accepted

1 vote
Answer accepted
Jean-Eric Paulin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2022

Thank you @Mikael Sandberg :)

I have setup an API Key in API Key Management and provided Read, Create and Update, Delete and Configuration access.

In Postman, I used the API name and Key using API Key authentication type. The URl is https://api.opsgenie.com/V2/alerts (a GET to list alerts) but when I send the request, I am getting this response (404 not found):

{
    "message""no Route matched with those values"
}

Any suggestions?

Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2022

Hi @Jean-Eric Paulin ,

A 404 typically means, "Resource or handler not found" - which realistically means the URL cannot be found or is incorrect. You need to be using: https://api.opsgenie.com/v2/alerts

The URL is case sensitive, and the one you shared above has a capital "V."

Like Mikael Sandberg likes this
1 vote
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2022

Hi @Jean-Eric Paulin,

Welcome to Atlassian Community!

The base URL for Opsgenie is not org specific, that information is part of the API key. The base URL is https://api.opsgenie.com, if you are using the EU instance it is https://api.eu.opsgenie.com

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events