Incident endpoints
Read incidents publicly and manage their timelines with an admin token.
Read the incident timeline with /incidents; create and update incidents
through /admin/incidents with a bearer token. Public reads need no token.
If incidents are disabled,
all these routes return 404 { "error": "This feature is disabled." }.
GET /incidents
| Query | Type | Notes |
|---|---|---|
status | investigating, identified, monitoring, resolved | Comma-separated. |
severity | minor, major, critical | Comma-separated. |
from, to | ISO-8601 | Filter by incident creation time: from inclusive, to exclusive. |
limit, offset | non-negative integer | Pagination. |
GET /incidents/:id
One incident with its timeline, or 404 { "error": "Incident not found." }.
POST /admin/incidents
Non-empty; trimmed.
Trimmed and de-duplicated. An empty array means global.
The first timeline entry.
Defaults to investigating. Creating one as resolved is rejected.
Returns 201 with the created incident and dispatches incident.created.
POST /admin/incidents/:id/updates
Add a timeline entry when there's news to share. Use this route to move an incident to monitoring or resolved while explaining what changed.
| Field | Required | Notes |
|---|---|---|
status | yes | Any incident status, including resolved. |
message | yes | Timeline text. |
severity | no | Changes severity with this entry. |
Dispatches incident.resolved for resolved, otherwise incident.updated.
PATCH /admin/incidents/:id
Change the status or severity and append a timeline entry in one request.
Omitted status and severity keep their current values; message defaults to
"Incident details updated.". This also dispatches incident.updated, or
incident.resolved when the resulting status is resolved. It does not edit
the incident's title or affected monitors.
DELETE /admin/incidents/:id
Returns 204 on success or 404 for an unknown incident. Deletion soft-deletes
the incident: it and its timeline disappear from public results and feeds, but
the database rows remain. No event is sent. Resolve an incident instead if
you want it to remain in public history and feeds.