Gets all incidents for a given team and date range.


HTTP

GET https://www.squidalerts.com/api/teams/{teamId}/incidents/search?startDate=mm/dd/yyyy&endDate=mm/dd/yyyy&pageNo=1&status=New


URI Parameters

NameInRequiredTypeDescription
teamIdpathTrueGuidIdentifier of the team.
startDate
path
True
Date (mm/dd/yyyy)Returns incidents created after this date.
endDatepathTrueDate (mm/dd/yyyy)Returns incidents created before this date.
pageNopathFalseNumber
100 incidents are returned at a time. To return more than 100, you must page through the results. Default is 1.
statuspathFalseTextReturns incidents with specific status (New/ Acknowledged/ Active/ Resolved/ Closed). By default, returns all incidents irrespective of the state.


Response

JSON

{
    "meta": {
        "page": 1,
        "perpage": 100,
        "total": 2
    },
    "data": [
        {
            "id": "48f40681-42a3-45f9-9e2c-5aa5e46173f8",
            "friendlyId": "100002",
            "title": "Test Incident 03",
            "assignedUserName": "",
            "received": "2023-08-03T12:53:53.236",
            "status": "New"
        },
        {
            "id": "da3910ad-9846-4973-8a0d-324fe8d1d22b",
            "friendlyId": "100001",
            "title": "Test Incident 02",
            "assignedUserName": "",
            "received": "2023-08-03T09:47:23.721",
            "status": "New"
        }
    ]
}