Skip to main content

API Reference

REST API reference, generated from the canonical OpenAPI spec (server/internal/app/openapi/openapi.yaml).

📄️Embeddable live status widget script

Self-contained JavaScript (IIFE) that renders a live status pill on a third-party site. It is loaded by an async script tag carrying data-page='org/slug', and configured entirely through data-attributes: data-mode (inline|floating), data-position (bottom-right|bottom-left), data-theme (light|dark|auto), data-size (sm|md|lg), per-state label overrides data-label-operational|degraded|down|maintenance|unknown, and data-force-status (operational|degraded|down|maintenance|unknown) to render a status statically without polling. The widget polls the status page summary endpoint every 60 s with an uncredentialed request and renders into a shadow root; a failed request or an unknown page renders nothing. Everything under /embed/v1/ is a frozen public contract — behavior changes ship under /embed/v2/, but additive, backward-compatible data-attributes may land within v1. Response carries Cache-Control: public, max-age=3600. No authentication required.

📄️Get a single result, with chronological neighbor UIDs

Returns one result row by UID. When the raw row has been rolled up into an aggregation (see retention/aggregation), falls back to the smallest-period aggregation covering the requested UID's embedded UUIDv7 timestamp and includes a `fallback` block describing the substitution. previousUid/nextUid identify the next-older/next-newer row in the same check + periodType series (the covering aggregation's series when a fallback applies), omitted at either boundary. Two rows sharing periodStart are ordered by uid, so stepping across them never skips or repeats.

📄️Per-worker check-lane load statistics

Computes, server-side, each worker's offered check load per scheduling lane (fast / slow): eligible job counts, summed cost and delay EWMAs, and the summed duty cycle (100 × cost EWMA / period, i.e. how many runner slots the lane's steady-state demand occupies). 'Offered' means every enabled job the worker is eligible to claim — jobs without a region count for every worker, region-scoped jobs count for workers whose region has the job's region as a prefix — so workers sharing a region report the same load. Super-admin only.