Developer docs menu
Reference · Incidents
Get an incident
/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 · stringrequiredThe 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 trueincidentobjectidstringtitlestringdescriptionstringseveritystring, one of low, medium, high, criticalcategorystringThe incident type.
statusstringlifecycleStagestring, one of REPORTED, TRIAGE, INVESTIGATING, REMEDIATING, READY_TO_CLOSE, CLOSEDprioritystringcreatedAtstringISO 8601 date and time, UTC.
updatedAtstringISO 8601 date and time, UTC.
reportedAtstringISO 8601 date and time, UTC.
occurredAtstring, or nullISO 8601 date and time, UTC.
detectedAtstring, or nullISO 8601 date and time, UTC.
businessImpactSummarystring, or nullimpactAreasarray of stringaffectedSystemsarray of stringdataExposureStatusstringrecordsAffectedEstimateanypeopleAffectedEstimateanyexternalNotificationRequiredboolean, or nullincidentOwnerIdstring, or nullrelatedPolicyIdstring, or null_countobjectattachmentsintegeractionsintegerinvestigationsintegernotificationsintegersuggestionsintegerImprovement suggestions still waiting for a decision.
playbookanyThe latest response playbook, summarised.
actionsarray of objectidstringactionTypestringdescriptionstringprioritystringstatusstringdueDatestring, or nullISO 8601 date and time, UTC.
completedAtstring, or nullISO 8601 date and time, UTC.
assignedTostring, or nullA user id, never a name or email address.
timelinearray of objectOldest first.
idstringeventTypestringtitlestringcreatedAtstringISO 8601 date and time, UTC.
{
"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
401The 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."}}403Your 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."}}429The 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."}}403The key does not have read:incidents or admin.{"error":{"code":"INSUFFICIENT_SCOPE","message":"This key needs the read:incidents scope (or admin)."}}403Your plan does not include incident management.{"error":{"code":"FEATURE_NOT_IN_PLAN","message":"Incident operations are available on Professional and custom packages."}}404There is no incident with this id in your organisation.{"error":{"code":"NOT_FOUND","message":"Incident not found."}}500Something went wrong on our side.{"error":{"code":"INTERNAL_ERROR","message":"Failed to process incident."}}