API: status pages and maintenance
Make status pages, post public updates from a script, and plan maintenance windows from a deploy pipeline.
Making and changing a status page needs an admin token; posting updates to it and planning maintenance a write token.
A status page
curl -sS -X POST "$HEIMDALL/status-pages" \
-H "Authorization: Bearer $HEIMDALL_API_TOKEN" -H "Content-Type: application/json" \
-d '{
"slug": "acme",
"title": "Acme status",
"languages": ["en", "tr"],
"components": [
{ "name": "API", "monitor_ids": ["01JC4Q8Z2M7V3K9X5T1R6B0WAP"] },
{ "name": "Checkout", "group": "Shop", "description": "shop.example.com",
"monitor_ids": ["01JC4Q8ZB1C4F7J0M3P6S9V2YD"] }
]
}'{
"id": "01JC4QB7D2F6H9K3M5P8R1T4VW",
"slug": "acme",
"title": "Acme status",
"languages": ["en", "tr"],
"components": [
{ "id": "01JC4QB7D9G2J5L8N1Q4S7U0XZ", "name": "API", "monitor_ids": ["01JC4Q8Z2M7V3K9X5T1R6B0WAP"], "status": "operational" },
{ "id": "01JC4QB7DB1E4H7K0N3Q6T9W2Z", "name": "Checkout", "group": "Shop", "description": "shop.example.com",
"monitor_ids": ["01JC4Q8ZB1C4F7J0M3P6S9V2YD"], "status": "operational" }
],
"overall": "operational",
"hide_branding": false,
"subscribers": 0,
"read_only": false,
"created_at": "2026-10-27T20:13:43Z"
}- The page is at
https://status.heimdall.warewave.tech/<slug>/, or at your own name withcustom_domain(a subdomain; the answer’sdomainsays which DNS records to add — Status pages). - Also:
brand_color(#rrggbb),logo_url(https),hide_branding(Team and Business). PUT /status-pages/{id}replaces the page and its components. Send each component’s `id` back to keep it: public incidents and maintenance windows refer to components, and a component sent without its id is a new one.- The page rebuilds itself when something on it changes;
POST /status-pages/{id}/rebuilddoes it now.
Public updates
An update without incident_id starts a public incident (it needs a title); with one, it continues it. The states are investigating, identified, monitoring and resolved; confirmed subscribers are mailed unless notify is false.
curl -sS -X POST "$HEIMDALL/status-pages/01JC4QB7D2F6H9K3M5P8R1T4VW/updates" \
-H "Authorization: Bearer $HEIMDALL_API_TOKEN" -H "Content-Type: application/json" \
-d '{
"title": "Slow API responses",
"state": "investigating",
"text": "We are looking into slow responses from the API.",
"component_ids": ["01JC4QB7D9G2J5L8N1Q4S7U0XZ"]
}'{
"id": "01JC5A3M8P1S4V7Y0B3E6H9K2N",
"title": "Slow API responses",
"state": "investigating",
"component_ids": ["01JC4QB7D9G2J5L8N1Q4S7U0XZ"],
"created_at": "2026-10-27T20:15:10Z",
"updates": [
{ "id": 69, "state": "investigating", "text": "We are looking into slow responses from the API.",
"components": [{ "id": "01JC4QB7D9G2J5L8N1Q4S7U0XZ", "name": "API", "status": "degraded" }],
"created_at": "2026-10-27T20:15:10Z" }
]
}curl -sS -X POST "$HEIMDALL/status-pages/01JC4QB7D2F6H9K3M5P8R1T4VW/updates" \
-H "Authorization: Bearer $HEIMDALL_API_TOKEN" -H "Content-Type: application/json" \
-d '{"incident_id": "01JC5A3M8P1S4V7Y0B3E6H9K2N", "state": "monitoring",
"text": "A fix is out; we are watching response times."}'
curl -sS -X POST "$HEIMDALL/status-pages/01JC4QB7D2F6H9K3M5P8R1T4VW/updates" \
-H "Authorization: Bearer $HEIMDALL_API_TOKEN" -H "Content-Type: application/json" \
-d '{"incident_id": "01JC5A3M8P1S4V7Y0B3E6H9K2N", "state": "resolved",
"text": "Response times are back to normal."}'Published from a Heimdall incident (source_incident_id), a public incident closes itself with a “Resolved” update when that incident is resolved — set auto_resolve to false to close it yourself, resolve_text for your own words. GET /status-pages/{id}/incidents?active=true lists the public incidents still open.
Maintenance windows
A window covers monitors — named, through a status page’s components, or a team’s. While it runs they are still checked and keep their real state, but an incident that opens alerts nobody until the window ends (mute_monitors, on by default); if the monitor is still down then, the alerts start. The window’s time is left out of uptime figures. Planned maintenance never stops a check and never loses an alert.
curl -sS -X POST "$HEIMDALL/maintenances" \
-H "Authorization: Bearer $HEIMDALL_API_TOKEN" -H "Content-Type: application/json" \
-d '{
"title": "Deploy v1.5.0",
"starts_at": "2026-11-03T22:00:00Z",
"ends_at": "2026-11-03T22:30:00Z",
"monitor_ids": ["01JC4Q8Z2M7V3K9X5T1R6B0WAP"]
}'{
"id": "01JC4QC5E8H1K4N7Q0T3W6Z9AB",
"title": "Deploy v1.5.0",
"description": "",
"starts_at": "2026-11-03T22:00:00Z",
"ends_at": "2026-11-03T22:30:00Z",
"monitor_ids": ["01JC4Q8Z2M7V3K9X5T1R6B0WAP"],
"component_ids": [],
"team_ids": [],
"mute_monitors": true,
"repeat": "none",
"weekdays": [],
"timezone": "UTC",
"next_starts_at": "2026-11-03T22:00:00Z",
"next_ends_at": "2026-11-03T22:30:00Z",
"status": "scheduled",
"created_by": { "kind": "token", "name": "Deploy pipeline" },
"created_at": "2026-10-27T20:13:43Z"
}{
"title": "Database upgrade",
"description": "The API may answer slowly for a few minutes.",
"starts_at": "2026-11-08T01:00:00Z",
"ends_at": "2026-11-08T03:00:00Z",
"status_page_id": "01JC4QB7D2F6H9K3M5P8R1T4VW",
"component_ids": ["01JC4QB7D9G2J5L8N1Q4S7U0XZ"]
}{
"title": "Weekly patching",
"starts_at": "2026-11-02T03:00:00+03:00",
"ends_at": "2026-11-02T04:00:00+03:00",
"repeat": "weekly",
"weekdays": [1, 4],
"timezone": "Europe/Istanbul",
"team_ids": ["01JC4QE2G5J8M1P4S7V0Y3B6DF"]
}repeat:none,daily,weekly,monthly;starts_atandends_atare then the first occurrence, andnext_starts_at/next_ends_atthe running or next one.weekdays(0 Sunday … 6 Saturday) must include the first occurrence’s day;repeat_untilends the series.- A repeating window keeps its wall-clock time in
timezoneacross daylight saving changes. - A window lasts at most 30 days, and a repeating one less than the gap to its next occurrence.
PUT /maintenances/{id}changes a scheduled or running window;DELETE /maintenances/{id}deletes it — a running window that is deleted ends now, which is how a deploy that finished early closes its window. What ran stays on record (GET /maintenance-runs).- A window that has ended can neither be changed nor deleted (
409with codecompleted): it is the record of what was done. Plan new work as a new window. GET /maintenances?monitor_id=…lists the windows that cover a monitor.
