AI
post
Rewrite selected report text using OpenAI.
Path parameters
siteIdstringRequired
Body
actionstringRequired
textstringRequired
Responses
200
Default Response
application/json
result_textstringOptional
post/ai/{siteId}/rewrite
POST /ai/{siteId}/rewrite HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"action": "text",
"text": "text"
}200
Default Response
{
"result_text": "text"
}post
Generate generic incident description suggestions from same-category examples.
Path parameters
siteIdstringRequired
Body
incident_idstringRequired
category_idstringRequired
descriptionstringOptional
short_descriptionstringOptional
Responses
200
Default Response
application/json
post/ai/{siteId}/incident-suggestions
POST /ai/{siteId}/incident-suggestions HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"incident_id": "text",
"category_id": "text",
"description": "text",
"short_description": "text"
}200
Default Response
{
"suggestions": [
{
"text": "text",
"reason": "text"
}
]
}post
Generate (or force-regenerate) an AI summary for an incident covering what happened, who was involved, and key timings. The result is persisted on the incident.
Path parameters
siteIdstringRequired
Body
incident_idstringRequired
Responses
200
Default Response
application/json
summarystringRequired
generated_atstringRequired
post/ai/{siteId}/incident-summary
POST /ai/{siteId}/incident-summary HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"incident_id": "text"
}200
Default Response
{
"summary": "text",
"generated_at": "text"
}Last updated
Was this helpful?

