For the complete documentation index, see llms.txt. This page is also available as Markdown.

Incidents

post

Generate a presigned URL for an attachment to an incident.

Path parameters
siteIdstringRequired
incidentIdstringRequired
Body
content_typestringRequired
file_namestringRequired
Responses
200

Default Response

application/json
urlstringRequired
object_idstringRequired
post/incidents/{siteId}/{incidentId}/attachments
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"
}
200

Default Response

{
  "url": "text",
  "object_id": "text"
}
put

Add an attachment to an incident.

Path parameters
siteIdstringRequired
incidentIdstringRequired
Body
object_idstringRequired
content_typestringRequired
file_namestringRequired
descriptionstringOptional
evidence_typestringOptional
retention_labelstringOptional
Responses
200

Default Response

application/json
namestringRequired
raw_urlstringRequired
source_uristringRequired
file_typestringRequired
uploadedbooleanRequired
object_idstringRequired
put/incidents/{siteId}/{incidentId}/attachments
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"
}
200

Default Response

{
  "name": "text",
  "raw_url": "text",
  "source_uri": "text",
  "file_type": "text",
  "uploaded": true,
  "object_id": "text"
}
delete

Delete an attachment from an incident.

Path parameters
siteIdstringRequired
incidentIdstringRequired
Query parameters
objectIdstringRequired
Responses
200

Default Response

application/json
successbooleanRequired
delete/incidents/{siteId}/{incidentId}/attachments
DELETE /incidents/{siteId}/{incidentId}/attachments?objectId=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

{
  "success": true
}
get

Get a download URL for an attachment (audit-logged).

Path parameters
siteIdstringRequired
incidentIdstringRequired
Query parameters
objectIdstringRequired
Responses
200

Default Response

No content

get/incidents/{siteId}/{incidentId}/attachments/download
GET /incidents/{siteId}/{incidentId}/attachments/download?objectId=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

get

Download all attachments for an incident as a single ZIP archive (audit-logged).

Path parameters
siteIdstringRequired
incidentIdstringRequired
Responses
200

Default Response

No content

get/incidents/{siteId}/{incidentId}/attachments/download-all
GET /incidents/{siteId}/{incidentId}/attachments/download-all HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

post

Create a new comment on an incident.

Path parameters
siteIdstringRequired
incidentIdstringRequired
Body
messagestringRequired
Responses
200

Default Response

application/json
_idstringRequired
incidentstringRequired
messagestringRequired
created_atstringRequired
updated_atstringRequired
post/incidents/{siteId}/{incidentId}/comments
POST /incidents/{siteId}/{incidentId}/comments HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "message": "text"
}
200

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

Delete a comment on an incident.

Path parameters
siteIdstringRequired
incidentIdstringRequired
commentIdstringRequired
Responses
200

Default Response

application/json
successbooleanRequired
delete/incidents/{siteId}/{incidentId}/comments/{commentId}
DELETE /incidents/{siteId}/{incidentId}/comments/{commentId} HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

{
  "success": true
}
post

Create a new incident.

Body
sitestringRequired
categorystringRequired
sourcestringRequired
people_involvedstring[]Optional
short_descriptionstringOptional
retrospective_raised_atstringOptional
parent_incidentstringOptional
Responses
200

Default Response

application/json
_idstringRequired
urnnumberRequired
sitestringRequired
categorystringRequired
sourcestringRequired
people_involvedstring[]Optional
prioritystringRequired
raised_bystringRequired
statusstringRequired
staffstring[]Required
attachmentsstring[]Required
short_descriptionstringRequired
parent_incidentstringOptional
post/incidents
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"
}
200

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"
}
post

Create a new from a report from UNN.

Path parameters
siteIdstringRequired
Responses
200

Default Response

application/json
_idstringRequired
urnnumberRequired
sitestringRequired
categorystringRequired
sourcestringRequired
people_involvedstring[]Optional
prioritystringRequired
raised_bystringRequired
statusstringRequired
staffstring[]Required
attachmentsstring[]Required
short_descriptionstringRequired
post/incidents/{siteId}/upload
POST /incidents/{siteId}/upload HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

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

Get analytics data for the dashboard.

Path parameters
siteIdstringRequired
Query parameters
startDatestringRequired
endDatestringOptional
categoryIdstringOptional
Responses
200

Default Response

application/json
totalCountnumberOptional
get/incidents/{siteId}/dashboard
GET /incidents/{siteId}/dashboard?startDate=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

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
}
get

Export incidents matching the current search/filters as a CSV file.

Path parameters
siteIdstringRequired
Query parameters
searchstringOptional
studentstringOptional
startDatestringOptional
endDatestringOptional
sortBystringOptional
assignedTostringOptional
statusstringOptional
Responses
200

Default Response

No content

get/incidents/{siteId}/export-csv
GET /incidents/{siteId}/export-csv HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

get

Stream a handover email via SSE, with AI bucketing (last N hours, default 12).

Path parameters
siteIdstringRequired
Query parameters
hoursnumberOptional
Responses
200

Default Response

No content

get/incidents/{siteId}/handover
GET /incidents/{siteId}/handover HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

post

Prepare inventory for an incident

Path parameters
siteIdstringRequired
incidentIdstringRequired
Responses
200

Default Response

No content

post/incidents/{siteId}/{incidentId}/inventory
POST /incidents/{siteId}/{incidentId}/inventory HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

get

Retrieve a list of incidents for a site.

Path parameters
siteIdstringRequired
Query parameters
pagenumberOptional
limitnumberOptional
sortBystringOptional
assignedTostringOptional
Header parameters
X-Socket-IdstringOptional
Responses
200

Def