Skip to content

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

POST /status-pages
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"] }
    ]
  }'
Answer — 201
{
  "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 with custom_domain (a subdomain; the answer’s domain says 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}/rebuild does 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.

POST /status-pages/{id}/updates — a new public incident
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"]
  }'
Answer — 201
{
  "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" }
  ]
}
The next update, and the last
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.

POST /maintenances — a deploy, told to nobody outside
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"]
  }'
Answer — 201
{
  "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"
}
Announced on a status page — its subscribers are mailed once
{
  "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"]
}
Every Monday and Thursday, 03:00–04:00 Istanbul time
{
  "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_at and ends_at are then the first occurrence, and next_starts_at / next_ends_at the running or next one. weekdays (0 Sunday … 6 Saturday) must include the first occurrence’s day; repeat_until ends the series.
  • A repeating window keeps its wall-clock time in timezone across 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 (409 with code completed): 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.