cancel
Showing results for 
Search instead for 
Did you mean: 
Andrew Evans
New Member

How can I make a call to the API for incidents that have been closed?

Currently I'm able to use the API to gather open incidents. I would like to be able to do the same thing for closed incidents so that I can view a history of incidents, and be able to tell how long they take to be closed.

I'm using the information found at:

http://www.beetil.com/api/
2 REPLIES 2
Luke Grimstrup
Retired GoTo Contributor

Re: How can I make a call to the API for incidents that have been closed?

Hi Andrew,

Great question! To achieve this, I would first create a custom report that reported on closed incidents (if you're polling the API periodically I would also consider adding a time range). See attachment:


Once you've created the report - take note of the ID in the URL and use that in the API call. For example, the curl command you could then use would be:

curl -u x:your-api-token -H "Content-Type: application/json" https://deskapi.gotoassist.com/v1/inc...

Does that help?

Luke
Andrew Evans
New Member

Re: How can I make a call to the API for incidents that have been closed?

Yes. This is going to do the trick. I'll be using a few different date ranges.

Thanks!