Getting incidents for business services via REST api?

Good afternoon,

I’m working on a custom integration that allows test jobs to automatically page and resolve. I recently noticed that some teams are using the business service feature for better visibility. When I went to the page, I saw that the console/network tab was calling:
api/v1/business_services/<ServiceId>?show_supporting=true&show_dependents=true&get_all_incidents=true&enrich_priorities=false

Is there a way to get that info through the rest API? When playing around with the business_services endpoint, I was only able to get basic CRUD info.

thanks!

Hi Brian,

I’d recommend taking a look at our services_dependencies endpoint.

With a GET request to: https://api.pagerduty.com/service_dependencies/business_services/{id}, you can get the technical services that are linked, and from there, run a request to each service’s incidents.

Josef