DurianStatus

API docs

A REST API for your status pages, their incidents and your monitors. A key with write access can also open, update and resolve incidents, schedule, move and cancel maintenance windows, and set a component’s status (below). A read-only key can’t create, edit or delete anything. Included in the Solo and Pro plans. Base URL: https://durianstatus.app/api/v1

Authentication

Create a key in Dashboard → Account → API keys. The key is shown once: we only keep a hash of it, so copy it somewhere safe. Send it in the X-API-KEY header (Authorization: Bearer <key> works too). A key reads only the pages, incidents and monitors of the account that created it. Revoke a key on the same page: requests with it stop working right away.

curl https://durianstatus.app/api/v1/pages -H "X-API-KEY: ds_your_key"
  • 401 missing, unknown or revoked key.
  • 402 the account has no Solo or Pro plan.
  • 403 a read-only key on a write endpoint.
  • 429 more than 60 requests in a minute with one key (retry after the Retry-After seconds).
  • 400 a bad query parameter (the error field says which), 404 an unknown path, or a page you don’t own.

GET/api/v1/pages

Your status pages, newest first, with their components. Query parameters, all optional:

  • slug: one page by its address (e.g. acme).
  • since: an ISO 8601 date, only pages created after it.
  • limit: 1 to 100 (default 25). When a page of results is full, pass its next_before value as before to get the next one.
{
  "data": [
    {
      "id": "6f1c…",
      "slug": "acme",
      "name": "Acme",
      "description": "Live status of Acme services.",
      "website_url": "https://acme.example",
      "status_url": "https://durianstatus.app/s/acme",
      "published": true,
      "private": false,
      "status": "partial_outage",
      "components": [
        { "id": "c1a2…", "name": "API", "status": "operational", "monitored": true },
        { "id": "c3b4…", "name": "Dashboard", "status": "partial_outage", "monitored": true }
      ],
      "created_at": "2026-10-05T09:30:00.000Z"
    }
  ],
  "next_before": null
}

status is the worst component status: operational, maintenance, degraded, partial_outage or major_outage. private is true when the page is behind a password.

GET/api/v1/incidents

Your incidents and maintenance windows, newest first, each with its timeline (updates, oldest first). Query parameters, all optional:

  • page: only one page, by slug or id (404 if it isn’t yours).
  • status: open (not resolved or completed), or one of investigating, identified, monitoring, resolved, scheduled, in_progress, completed.
  • kind: incident or maintenance.
  • since, limit, before: as above.
{
  "data": [
    {
      "id": "9d2e…",
      "page_id": "6f1c…",
      "page_slug": "acme",
      "kind": "incident",
      "title": "Dashboard is slow",
      "impact": "minor",
      "status": "monitoring",
      "automatic": false,
      "scheduled_start": null,
      "scheduled_end": null,
      "component_ids": ["c3b4…"],
      "timeline": [
        { "id": "u1…", "status": "investigating", "body": "We are looking into slow page loads.", "api_key_id": null, "created_at": "2026-10-12T09:30:00.000Z" },
        { "id": "u2…", "status": "monitoring", "body": "A fix is out, we are watching.", "api_key_id": "k5e1…", "created_at": "2026-10-12T10:02:11.000Z" }
      ],
      "created_at": "2026-10-12T09:30:00.000Z",
      "resolved_at": null
    }
  ],
  "next_before": null
}

automatic is true for an incident opened by a monitor. Maintenance windows carry scheduled_start and scheduled_end, and repeat(null, or { every, unit, until } for a recurring one).

GET/api/v1/monitors

Your monitors, oldest first, with their current state and uptime. Optional page (slug or id) keeps one page’s monitors.

{
  "data": [
    {
      "id": "m7f3…",
      "page_id": "6f1c…",
      "page_slug": "acme",
      "component_id": "c1a2…",
      "component_name": "API",
      "kind": "http",
      "target": "https://api.acme.example/health",
      "enabled": true,
      "state": "up",
      "last_checked_at": "2026-10-12T10:05:00.000Z",
      "last_status_code": 200,
      "last_latency_ms": 143,
      "open_incident_id": null,
      "ssl_expires_at": "2027-01-04T00:00:00.000Z",
      "uptime": { "last_30_days": 99.98, "last_90_days": 99.95 },
      "created_at": "2026-10-05T09:40:00.000Z"
    }
  ]
}

state is up, down, paused (disabled) or unknown (not checked yet). uptime is the share of counted checks that passed over the last 30 and 90 days (UTC), rounded down to 0.01; checks paused by a maintenance window aren’t counted, and it is null when nothing was checked. target is the URL, or host:port for a TCP monitor.

Writing

The endpoints below need a key created with Read and write access (a read-only key gets 403; a key’s access can’t be changed, create a new one). They do exactly what the dashboard does: subscribers get the same emails and your Slack, Discord, Teams and webhook destinations the same events. Every update posted with a key records that key’s id (api_key_id in the timeline). Send JSON with Content-Type: application/json; a bad field answers 400 with an error that names it. Writes count toward the same 60 requests a minute per key.

Retries. Send an Idempotency-Key header (any string up to 255 characters, e.g. your deploy id) and retry with the same key and body as often as you need: for 24 hours the first response is returned again, with an Idempotent-Replayed: true header, and nothing is posted twice. Error answers are replayed too (a 404 stays a 404: use a new key once you fixed the request), except a 5xx, which is not stored, so retrying it runs the request again. The same key with a different body answers 422; while the first request is still running, 409.

POST/api/v1/incidents

Opens an incident (or schedules a maintenance) on one of your pages and posts its first update.

  • page (required): the page’s slug or id.
  • title (required, up to 140 characters) and body (required, the first update, up to 5000).
  • kind: incident (default) or maintenance, which needs scheduled_start and scheduled_end (ISO 8601).
  • status: for an incident investigating (default), identified, monitoring or resolved; for a maintenance scheduled (default), in_progress or completed.
  • impact: none, minor (default for an incident), major or critical.
  • component_ids: the affected components (ids from /api/v1/pages), and component_status to set them all to one status at once.
  • notify: false to skip the subscriber emails (webhooks still fire).
curl -X POST https://durianstatus.app/api/v1/incidents \
  -H "X-API-KEY: ds_your_write_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-4711-open" \
  -d '{
    "page": "acme",
    "title": "Dashboard is slow",
    "body": "We are looking into slow page loads.",
    "status": "investigating",
    "impact": "minor",
    "component_ids": ["c3b4…"],
    "component_status": "degraded"
  }'

201 with the new incident’s id. notified says how many subscribers were emailed.

{
  "id": "9d2e…",
  "update_id": "u1…",
  "notified": { "sent": 12 }
}

POST/api/v1/incidents/{id}/updates

Posts an update: status (required, as above for the incident’s kind) and body (required). Optional component_status sets every affected component to that status, and notify as above.

curl -X POST https://durianstatus.app/api/v1/incidents/9d2e…/updates \
  -H "X-API-KEY: ds_your_write_key" \
  -H "Content-Type: application/json" \
  -d '{ "status": "monitoring", "body": "A fix is out, we are watching." }'

POST/api/v1/incidents/{id}/resolve

Resolves an incident (or completes a maintenance). Everything is optional: body defaults to “This incident has been resolved.” (“The maintenance is complete.” for a maintenance), the affected components go back to operational unless you pass another component_status (null leaves them as they are), and notify as above.

curl -X POST https://durianstatus.app/api/v1/incidents/9d2e…/resolve \
  -H "X-API-KEY: ds_your_write_key" \
  -H "Content-Type: application/json" \
  -d '{ "body": "Page loads are back to normal." }'

POST/api/v1/maintenance

Schedules a maintenance window on one of your pages and posts its first update, as the dashboard does. It starts and completes by itself at scheduled_start and scheduled_end (monitors of the affected components are paused meanwhile).

  • page, title, body (required): as for POST /api/v1/incidents.
  • scheduled_start and scheduled_end (required, ISO 8601, the end after the start).
  • impact (default none), component_ids, component_status, notify: as above.
  • notify_transitions: false not to email subscribers when the window starts and ends (default true).
  • repeat (optional): { "every": 2, "unit": "week", "until": "2027-06-30T00:00:00Z" } for a recurring window. unit is day, week or month, every 1 to 365 (default 1), until optional. When an occurrence completes, the next one is created and announced like a newly scheduled maintenance (email under notify_transitions, maintenance.scheduled webhook). The window must be shorter than the interval (a month counts as 28 days).
curl -X POST https://durianstatus.app/api/v1/maintenance \
  -H "X-API-KEY: ds_your_write_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: db-upgrade-2026-11" \
  -d '{
    "page": "acme",
    "title": "Database upgrade",
    "body": "We are upgrading the database. The dashboard may be read-only.",
    "scheduled_start": "2026-11-02T22:00:00Z",
    "scheduled_end": "2026-11-02T23:00:00Z",
    "component_ids": ["c3b4…"]
  }'

201 with the window’s id, as above. It appears in /api/v1/incidents with kind maintenance.

PATCH/api/v1/maintenance/{id}

Moves or edits a window that isn’t completed: any of scheduled_start, scheduled_end, title, impact, notify_transitions, repeat (null stops the series after this window). Like in the dashboard, nobody is emailed about the change: post an update (/api/v1/incidents/{id}/updates) to tell subscribers. A completed window answers 409.

curl -X PATCH https://durianstatus.app/api/v1/maintenance/7f1a… \
  -H "X-API-KEY: ds_your_write_key" \
  -H "Content-Type: application/json" \
  -d '{ "scheduled_start": "2026-11-03T22:00:00Z", "scheduled_end": "2026-11-03T23:30:00Z" }'

DELETE/api/v1/maintenance/{id}

Cancels a window that hasn’t started: it is removed from the page, as the dashboard’s Delete does (no email, no webhook; the affected components keep their status). Once it has started, 409: end it early with /api/v1/incidents/{id}/resolve.

curl -X DELETE https://durianstatus.app/api/v1/maintenance/7f1a… \
  -H "X-API-KEY: ds_your_write_key"

200 with { "id": "7f1a…", "cancelled": true }.

PATCH/api/v1/components/{id}

Sets a component’s status: operational, degraded, partial_outage, major_outage or maintenance. Nothing else can be changed with the API.

curl -X PATCH https://durianstatus.app/api/v1/components/c3b4… \
  -H "X-API-KEY: ds_your_write_key" \
  -H "Content-Type: application/json" \
  -d '{ "status": "major_outage" }'