Skip to main content
Developer docs menu

Reference · Incidents

List incidents

get/api/incidents

Returns your organisation's incidents, most recently reported first, with counts by stage. Paged with limit and offset: 100 by default, at most 200.

Parameters

  • severityquery · string, one of low, medium, high, criticaloptional

    Only incidents of this severity, in lower case.

  • lifecycleStagequery · string, one of REPORTED, TRIAGE, INVESTIGATING, REMEDIATING, READY_TO_CLOSE, CLOSEDoptional

    Only incidents at this stage, in upper case.

  • limitquery · integer, 1 to 200optional

    How many to return, 1 to 200. Defaults to 100.

  • offsetquery · integer, 0 to …optional

    How many to skip. Defaults to 0.

Example request

curl -s "https://www.quickpolicy.co.uk/api/incidents?severity=high&limit=20" \
  -H "Authorization: Bearer $QP_API_KEY"

Response

200 OK with a JSON body. Responses can carry more fields than are listed here; ignore any you do not recognise.

  • successalways true
  • viewstring
  • statsobject

    Counts across the whole organisation, whatever filters you pass.

    • totalinteger
    • criticalinteger
    • reportedinteger
    • triageinteger
    • investigatinginteger
    • remediatinginteger
    • readyToCloseinteger
    • closedinteger
  • incidentsarray of object
    • idstring
    • titlestring
    • descriptionstring
    • severitystring, one of low, medium, high, critical
    • categorystring

      The incident type.

    • statusstring
    • lifecycleStagestring, one of REPORTED, TRIAGE, INVESTIGATING, REMEDIATING, READY_TO_CLOSE, CLOSED
    • prioritystring
    • createdAtstring

      ISO 8601 date and time, UTC.

    • updatedAtstring

      ISO 8601 date and time, UTC.

    • reportedAtstring

      ISO 8601 date and time, UTC.

    • occurredAtstring, or null

      ISO 8601 date and time, UTC.

    • detectedAtstring, or null

      ISO 8601 date and time, UTC.

    • businessImpactSummarystring, or null
    • impactAreasarray of string
    • affectedSystemsarray of string
    • dataExposureStatusstring
    • recordsAffectedEstimateany
    • peopleAffectedEstimateany
    • externalNotificationRequiredboolean, or null
    • incidentOwnerIdstring, or null
    • relatedPolicyIdstring, or null
    • _countobject
      • attachmentsinteger
      • actionsinteger
      • investigationsinteger
      • notificationsinteger
      • suggestionsinteger

        Improvement suggestions still waiting for a decision.

  • paginationobject
    • limitinteger
    • offsetinteger
    • totalinteger

      How many incidents match your filters.

    • hasMoreboolean

      True when there are more matching incidents after this page.

Example response
{
  "success": true,
  "view": "list",
  "stats": {
    "total": 4,
    "critical": 1,
    "reported": 1,
    "triage": 1,
    "investigating": 1,
    "remediating": 0,
    "readyToClose": 0,
    "closed": 1
  },
  "incidents": [
    {
      "id": "cm3inc0001",
      "title": "Laptop left on a train",
      "description": "A company laptop was left on the 08:12 to London Bridge.",
      "severity": "high",
      "category": "DATA_BREACH",
      "status": "OPEN",
      "lifecycleStage": "TRIAGE",
      "priority": "HIGH",
      "reportedAt": "2026-11-01T09:30:00.000Z",
      "_count": {
        "attachments": 0,
        "actions": 2,
        "investigations": 0,
        "notifications": 1,
        "suggestions": 0
      }
    }
  ],
  "pagination": {
    "limit": 100,
    "offset": 0,
    "total": 4,
    "hasMore": false
  }
}

Errors

Every error has a JSON body with an error message. About errors

  • 401 The key is missing, wrong, deleted, switched off or past its expiry date.

    {"error":{"code":"UNAUTHORIZED","message":"The API key is missing, wrong, deleted or past its expiry date."}}
  • 403 Your organisation's plan no longer includes API access. Checked on every request.

    {"error":{"code":"API_ACCESS_NOT_IN_PLAN","message":"Your organisation's plan no longer includes API access, so its API keys have stopped working."}}
  • 429 The key has made more than 120 requests in a minute. Wait for the seconds in Retry-After.

    {"error":{"code":"RATE_LIMITED","message":"This key has made more than 120 requests in a minute. Wait 42 seconds and try again."}}
  • 403 The key does not have read:incidents or admin.

    {"error":{"code":"INSUFFICIENT_SCOPE","message":"This key needs the read:incidents scope (or admin)."}}
  • 403 Your plan does not include incident management.

    {"error":{"code":"FEATURE_NOT_IN_PLAN","message":"Incident operations are available on Professional and custom packages."}}
  • 400 A severity, lifecycleStage, limit or offset value is not one we accept.

    {"error":{"code":"INVALID_FILTER","message":"Invalid lifecycleStage filter. Allowed values: REPORTED, TRIAGE, INVESTIGATING, REMEDIATING, READY_TO_CLOSE, CLOSED"}}
  • 500 Something went wrong on our side.

    {"error":{"code":"INTERNAL_ERROR","message":"Failed to process incident request."}}