Incident management
Count Open Incidents
Returns the number of open, unacknowledged Incident Management incidents in your organization.
GET /api/im/incidents/count
Returns how many incidents are open and not yet acknowledged: status neither resolved nor merged, and no acknowledgedAt. This includes incidents that moved from triggered straight to investigating, identified or monitoring without an acknowledgement. Test incidents (isTest: true) are never counted. A single cheap count, meant for polling a badge or a wallboard; use List Incidents for anything filtered.
Authentication
Any IM-eligible role (admin, editor, responder) or an organization-wide API token, see Authentication. Incident Management must be enabled for the organization.
Example (cURL)
curl -X GET "$BASE_URL/api/im/incidents/count" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Response
{
"count": 4
}Common errors
401 Unauthorizedwhen not authenticated403 Forbidden(customerScopedTokenForbidden) when using a customer-scoped token403 Forbidden(imAccessDenied) when the session user has no IM-eligible role403 Forbidden(imNotEnabled) when Incident Management is not enabled for the organization