Is there any API for fetching alerts similar to GET/services and GET/incidents. I tried GET/alerts endpoint and was able to get a response but I don’t see any documentation for the same in your API reference.
If you have an endpoint for alerts, I would like to know more about query parameters it supports for filtering. My end goal is to list the alerts for a service as shown in the GUI when you select a specific service.
Curl command I used for alerts
curl --location --request GET ‘https://api.pagerduty.com/alerts?total=true&time_zone=UTC&limit=1’
–header ‘Authorization: Token token=’
–header ‘Accept: application/vnd.pagerduty+json;version=2’
–header ‘Content-Type: application/json’
Response I got :