Skip to content

API Incidents

Base URL: https://api.okstatus.eu/api/v1/incidents — every request needs an Authorization: Bearer oks_live_... header, see Authentication.

GET /api/v1/incidents?page=1&per_page=50
{
"data": [
{
"id": "...",
"title": "...",
"status": "investigating",
"severity": "major",
"monitorId": "..."
}
],
"meta": { "page": 1, "per_page": 50, "total": 3 }
}
POST /api/v1/incidents
Content-Type: application/json
FieldTypeRequiredDescription
titlestring1–500 chars
monitorIdstringUUID of the affected monitor
severityenumminor, major, critical — defaults to minor

Creating an incident automatically posts an initial investigating update. Returns 201 with { "data": Incident }.

Get an incident (with its update timeline)

Section titled “Get an incident (with its update timeline)”
GET /api/v1/incidents/:id
{
"data": {
"id": "...",
"title": "...",
"status": "investigating",
"severity": "major",
"updates": [{ "id": "...", "status": "investigating", "message": "...", "createdAt": "..." }]
}
}
PATCH /api/v1/incidents/:id
Content-Type: application/json
FieldTypeRequiredDescription
statusenuminvestigating, identified, monitoring, or resolved
messagestringThe update text, shown on the timeline and the public status page

Setting status: "resolved" also stamps resolvedAt.

POST /api/v1/incidents/:id/resolve

Shortcut for PATCH with status: "resolved" and a default “Incident resolved.” message — no body required.

404 NOT_FOUND if the incident doesn’t exist in your org. See Authentication for the shared error format and rate limits.