Get resolved incidents for a specific service

Hi, How do I get the list of all resolved incidents for a specific service using the pagerduty API. I have tried the method suggested on but still not getting the results. Please help

Hi Anurag. Are you getting an error, or just not seeing any results? If the results are empty you might have an invalid query or some other problem.

This is a bit of bash I have that works for me, it retrieves resolved incidents over the last 30 days for one service:


NOW=`date +%FT%T%z`
SINCE=`date -v-30d +%FT%T%z`



curl -X GET --header 'Content-Type: application/json' \
--url "$ENDPOINT" \
--header 'Accept: application/vnd.pagerduty+json;version=2' \
--header "Authorization: Token token=$TOKEN" 

I’m on a mac, so the options to the date command might be different on your system.


Thanks, @mandi.walls for your help. It works for me !!