Incidents
Generate a presigned URL for an attachment to an incident.
Default Response
POST /incidents/{siteId}/{incidentId}/attachments HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"content_type": "text",
"file_name": "text"
}Default Response
{
"url": "text",
"object_id": "text"
}Add an attachment to an incident.
Default Response
PUT /incidents/{siteId}/{incidentId}/attachments HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 130
{
"object_id": "text",
"content_type": "text",
"file_name": "text",
"description": "text",
"evidence_type": "text",
"retention_label": "text"
}Default Response
{
"name": "text",
"raw_url": "text",
"source_uri": "text",
"file_type": "text",
"uploaded": true,
"object_id": "text"
}Delete an attachment from an incident.
Default Response
DELETE /incidents/{siteId}/{incidentId}/attachments?objectId=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
{
"success": true
}Get a download URL for an attachment (audit-logged).
Default Response
No content
GET /incidents/{siteId}/{incidentId}/attachments/download?objectId=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Download all attachments for an incident as a single ZIP archive (audit-logged).
Default Response
No content
GET /incidents/{siteId}/{incidentId}/attachments/download-all HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Create a new comment on an incident.
Default Response
POST /incidents/{siteId}/{incidentId}/comments HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"message": "text"
}Default Response
{
"_id": "text",
"incident": "text",
"message": "text",
"author": {
"_id": "text",
"first_name": "text",
"last_name": "text",
"photo_url": "text"
},
"created_at": "text",
"updated_at": "text"
}Delete a comment on an incident.
Default Response
DELETE /incidents/{siteId}/{incidentId}/comments/{commentId} HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
{
"success": true
}Create a new incident.
Default Response
POST /incidents HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 161
{
"site": "text",
"category": "text",
"source": "text",
"people_involved": [
"text"
],
"short_description": "text",
"retrospective_raised_at": "text",
"parent_incident": "text"
}Default Response
{
"_id": "text",
"urn": 1,
"site": "text",
"category": "text",
"source": "text",
"people_involved": [
"text"
],
"priority": "text",
"raised_by": "text",
"status": "text",
"staff": [
"text"
],
"attachments": [
"text"
],
"short_description": "text",
"parent_incident": "text"
}Create a new from a report from UNN.
Default Response
POST /incidents/{siteId}/upload HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
{
"_id": "text",
"urn": 1,
"site": "text",
"category": "text",
"source": "text",
"people_involved": [
"text"
],
"priority": "text",
"raised_by": "text",
"status": "text",
"staff": [
"text"
],
"attachments": [
"text"
],
"short_description": "text"
}Get analytics data for the dashboard.
Default Response
GET /incidents/{siteId}/dashboard?startDate=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
{
"incidents": [
{
"_id": "text",
"created_at": "text",
"category": {
"_id": "text",
"name": "text",
"colour": "text"
},
"priority": {
"_id": "text",
"name": "text",
"colour": "text"
},
"raised_by": {
"first_name": "text",
"last_name": "text"
},
"people_involved": [
{
"first_name": "text",
"last_name": "text"
}
],
"status": "text",
"updated_at": "text"
}
],
"totalCount": 1
}Export incidents matching the current search/filters as a CSV file.
Default Response
No content
GET /incidents/{siteId}/export-csv HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Stream a handover email via SSE, with AI bucketing (last N hours, default 12).
Default Response
No content
GET /incidents/{siteId}/handover HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Prepare inventory for an incident
Default Response
No content
POST /incidents/{siteId}/{incidentId}/inventory HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Retrieve a list of incidents for a site.
Def

