Skip to main content

Hi all.

I’m wondering if the REST API has a default filter for the list incidents endpoint.


I created a few test incidents in the website a few months ago and they were showing up before in the API but now they are not there any more. I then proceeded to create a new Incident and that one is present in the API response though.


Is there some sort of filter being applied so that only incidents with a certain age are being sent? What else could be the cause for this behavior?


This is the full URL I’m using:

https://api.pagerduty.com/incidents?include%5B%5D=assignees&limit=200&include%5B%5D=first_trigger_log_entries

Hi @andres goyburu! You’re right, there is a 30-day time limit on the default query.


You can use a couple of different options to see more incidents.

date_range=all is probably what you’re looking for, but if you know the specific timespan for your incidents, you can also use since and until together.


The since and until options allow a maximum of 6 months of range.


More on those options in the docs!


HTH,

–mandi


Reply