Can I get a list of alerts with the details field?

Matt Sadauckas February 1, 2023

I'm using the "List Alerts" API endpoint, as documented here: https://docs.opsgenie.com/docs/alert-api#list-alerts, but I'm not able to return the data that's on the `details` property of the alert.  If I request *each* alert individually by their ID, I get that field.  Is there any way to get the details returned in the list?

1 answer

1 vote
Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2023

Hi @Matt Sadauckas ,

The Alerts tab does have the option to query on detailsPair - which might be what you need. For example:

dp1.jpg

 

So if I were to use a List Alert API on that query above, my URL would be something like:

https://api.opsgenie.com/v2/alerts?query=detailsPair%28Priority%3ACritical%29

I typically use a site like URL Encoder to help!

Matt Sadauckas February 1, 2023

Hmm, that make sense, but I'm not trying to query by some content in the details, I'm trying to get the details section to show up with the list of alerts when I query from the API

Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 2023

Hi @Matt Sadauckas ,

That is not possible at this time. The Details field (and some others) only return when you run a GET on a specific alert. 

Like Steffen Opel _Utoolity_ likes this
Matt Sadauckas February 2, 2023

Alas!  Thanks for the reply

Like Nick Haller likes this
Yudi Yuswita Sunarto
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!
April 6, 2024

Hello @Nick Haller , any update here related with get details of alert?

Like Amit Braun likes this

Suggest an answer

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

Atlassian Community Events