Skip to content

API: incidents

List incidents, acknowledge, snooze, resolve and annotate them, and follow what happens as it happens.

Monitors open incidents; nothing else does. Reading and acknowledging need a read token (a viewer may acknowledge), snoozing, resolving and notes a write token.

List incidents

GET /incidents
# what is open now (open or acknowledged)
curl -sS "$HEIMDALL/incidents?active=true" -H "Authorization: Bearer $HEIMDALL_API_TOKEN"

# by state, by monitor, by team
curl -sS "$HEIMDALL/incidents?state=resolved&monitor_id=01JC4Q8Z2M7V3K9X5T1R6B0WAP" -H "Authorization: Bearer $HEIMDALL_API_TOKEN"
Answer — 200
[
  {
    "id": "01JC5A2K7N4P8Q3R6S9T1V5WXY",
    "number": 142,
    "ref": "INC-0142",
    "monitor_id": "01JC4Q8Z2M7V3K9X5T1R6B0WAP",
    "monitor_name": "API",
    "state": "open",
    "severity": "critical",
    "title": "API is down",
    "ack_code": "482913",
    "opened_at": "2026-10-27T20:13:43Z"
  }
]

Newest first, 50 to a page (limit up to 200). For the next page send the last incident’s opened_at as before and its id as before_id; an empty list is the end:

Paging
curl -sS "$HEIMDALL/incidents?limit=200&before=2026-10-02T08:14:09Z&before_id=01JB7…" \
  -H "Authorization: Bearer $HEIMDALL_API_TOKEN"

GET /incidents/{id} is one incident with its timeline: when it opened, who was alerted on which channel, who acknowledged, the notes, when it was resolved.

Acknowledge, snooze, note, resolve

POST /incidents/{id}/…
# somebody is on it: escalation stops
curl -sS -X POST "$HEIMDALL/incidents/01JC5A2K7N4P8Q3R6S9T1V5WXY/ack" -H "Authorization: Bearer $HEIMDALL_API_TOKEN"

# no alerts for 30 minutes (1–240); acknowledges as well
curl -sS -X POST "$HEIMDALL/incidents/01JC5A2K7N4P8Q3R6S9T1V5WXY/snooze" \
  -H "Authorization: Bearer $HEIMDALL_API_TOKEN" -H "Content-Type: application/json" -d '{"minutes": 30}'

# a line in the timeline (up to 4000 characters)
curl -sS -X POST "$HEIMDALL/incidents/01JC5A2K7N4P8Q3R6S9T1V5WXY/notes" \
  -H "Authorization: Bearer $HEIMDALL_API_TOKEN" -H "Content-Type: application/json" -d '{"text": "Rolled back to v1.4.2"}'

# resolved by hand: everyone alerted is told it was closed by hand; a monitor still down gets a new incident at its next failed check,
# and its public incidents stay open until it recovers (a token is shown no status pages to untick)
curl -sS -X POST "$HEIMDALL/incidents/01JC5A2K7N4P8Q3R6S9T1V5WXY/resolve" -H "Authorization: Bearer $HEIMDALL_API_TOKEN"
Answer of snooze — 200
{
  "id": "01JC5A2K7N4P8Q3R6S9T1V5WXY",
  "ref": "INC-0142",
  "state": "acknowledged",
  "acked_at": "2026-10-27T20:14:02Z",
  "acked_by_name": "API token Deploy pipeline",
  "snoozed_until": "2026-10-27T20:44:02Z",
  …
}

Acknowledging an acknowledged incident changes nothing and answers 200; snoozing or resolving a resolved one answers 409 with code resolved.

Live events

GET /events/stream is a Server-Sent Events stream of the organisation: it stays open and says what changes as it changes — what the dashboard itself listens to. Use it as a nudge to read again; events missed while you were not connected are not sent later, so read what you show when you (re)connect.

GET /events/stream
curl -sSN "$HEIMDALL/events/stream" -H "Authorization: Bearer $HEIMDALL_API_TOKEN"
What comes
event: hello
data: {}

event: monitor.state
data: {"monitor_id":"01JC4Q8Z2M7V3K9X5T1R6B0WAP","from":"up","to":"down","at":"2026-10-27T20:13:41Z"}

event: incident.opened
data: {"id":"01JC5A2K7N4P8Q3R6S9T1V5WXY","ref":"INC-0142","state":"open","severity":"critical","title":"API is down",…}

event: incident.updated
data: {"id":"01JC5A2K7N4P8Q3R6S9T1V5WXY","ref":"INC-0142","state":"acknowledged",…}

event: maintenance.updated
data: {"id":"01JC4QC5E8H1K4N7Q0T3W6Z9AB"}

: ping

: ping comes every 25 seconds so that proxies keep the connection open; a client reconnects when it closes.