Skip to main content
Developer docs menu

Reference · Incidents

Get an incident

get/api/incidents/{id}

Returns one incident: the record, a summary of its response playbook, its actions and its timeline. People appear only as user ids; no names or email addresses are returned.

Parameters

  • idin the path · stringrequired

    The incident id.

Example request

curl -s "https://www.quickpolicy.co.uk/api/incidents/INCIDENT_ID" \
  -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
  • incidentobject
    • 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.

  • playbookany

    The latest response playbook, summarised.

  • actionsarray of object
    • idstring
    • actionTypestring
    • descriptionstring
    • prioritystring
    • statusstring
    • dueDatestring, or null

      ISO 8601 date and time, UTC.

    • completedAtstring, or null

      ISO 8601 date and time, UTC.

    • assignedTostring, or null

      A user id, never a name or email address.

  • timelinearray of object

    Oldest first.

    • idstring
    • eventTypestring
    • titlestring
    • createdAtstring

      ISO 8601 date and time, UTC.

Example response
{
  "success": true,
  "incident": {
    "id": "cm3inc0001",
    "title": "Laptop left on a train",
    "severity": "high",
    "lifecycleStage": "TRIAGE",
    "incidentOwnerId": "cm3usr0001"
  },
  "playbook": {
    "status": "READY",
    "version": 1,
    "executiveSummary": "A device holding personal data was lost and needs containment.",
    "generatedByAi": true,
    "reviewedAt": null
  },
  "actions": [
    {
      "id": "cm3act0001",
      "actionType": "CONTAINMENT",
      "description": "Wipe the laptop remotely.",
      "priority": "HIGH",
      "status": "OPEN",
      "dueDate": "2026-11-01T17:00:00.000Z",
      "completedAt": null,
      "assignedTo": "cm3usr0002"
    }
  ],
  "timeline": [
    {
      "id": "cm3evt0001",
      "eventType": "REPORTED",
      "title": "Incident reported",
      "createdAt": "2026-11-01T09:30:00.000Z"
    }
  ]
}

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."}}
  • 404 There is no incident with this id in your organisation.

    {"error":{"code":"NOT_FOUND","message":"Incident not found."}}
  • 500 Something went wrong on our side.

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