Authentication
Base URL: https://status.direct/api/v1. Send Authorization: Bearer YOUR_TOKEN over HTTPS. Tokens are shown once when created or rotated. Keep them private and out of URLs, source control and logs. Browser sessions do not authenticate API calls; cross-origin browser access is not enabled.
Create a read or read_write token in API access, with a 30, 90 or 365 day expiry. Each token belongs to its creator and a fixed workspace. Read-only tokens allow GET. Read/write tokens also require the creator's current owner or editor role for mutations. Viewers can only read, regardless of token scope.
Owners can revoke any workspace token; teammates manage their own. Rotation immediately replaces the secret and renews its original expiry period. Password changes invalidate that person's existing tokens. Removed teammates cannot recover their old tokens by rejoining.
API access requires current paid coverage. Access ends at paid-period expiry without a grace period; a token cannot bypass a downgrade, changed role or revoked membership. Each workspace supports ten active tokens and shares 120 authenticated requests per UTC minute. Authenticated replays and requests rejected by resource validation count. A 429 response includes Retry-After in seconds.
Quickstart
With your token in a private environment variable, list your first five monitors:
curl 'https://status.direct/api/v1/monitors?limit=5' \
-H "Authorization: Bearer $STATUSDIRECT_API_TOKEN"
Requests and safe retries
Paths are case-sensitive, have no trailing slash and accept only the documented methods and fields. GET has no request body. Every POST, PUT and DELETE requires Content-Type: application/json, a JSON object up to 65,536 bytes and 32 levels deep, and an Idempotency-Key of 8–128 letters, digits, dots, underscores, colons or hyphens. Mutation query parameters are not accepted.
Generate a new key for each intended operation. After a timeout or uncertain response, retry the same method, path, body and key with the same token. JSON object key order and insignificant whitespace do not change request identity; array order and value types do. Keep the original generation or revision on a retry.
Successful writes store a receipt atomically with the change and any new audit event. For 24 hours, the same request returns its original receipt with Idempotency-Replayed: true; reusing the key with different content returns 409. Only successful writes create receipts. Receipts belong to that token generation and still require current authorization. Rotated, revoked or expired credentials cannot retrieve them. After 24 hours, inspect the resource before starting another operation.
PUT replaces the supported writable settings; it is not a partial patch. Supply every required field below. Monitor PUT, pause, resume and deletion require the latest configuration_generation. Page PUT and deletion require the latest revision. On 409, read the resource again and decide whether to submit a new operation.
Endpoints and pagination
| Method | Path | Operation |
|---|---|---|
| GET / POST | /monitors | List / create |
| GET / PUT / DELETE | /monitors/{id} | Read / update / delete |
| POST | /monitors/{id}/pause/monitors/{id}/resume | Pause / resume |
| GET / POST | /status-pages | List / create |
| GET / PUT / DELETE | /status-pages/{id} | Read / update / delete |
| GET | /incidents/incidents/{id} | List / read |
| GET | /incidents/{id}/routing | Preview redacted alert routing |
| POST | /incidents/{id}/acknowledge | Acknowledge |
| GET | /reports/monitors/{id} | Read monitoring report |
The three list endpoints accept limit (decimal 1–100, default 50) and optional after_id (a positive canonical ID). Results are ordered by ascending ID. Follow next_after_id until it is null. Other endpoints accept no query parameters. Do not repeat parameters or add account/workspace selectors: the token fixes the workspace.
{
"data": [
{"id": "123", "type": "monitor", "name": "API health"}
],
"next_after_id": "123"
}
This abbreviated list illustrates the envelope; real monitor objects contain the fields described below. Detail responses contain one object in data. IDs and configuration generations are returned as decimal strings. ID inputs must be strings; option values such as timeouts must be JSON integers. Dates without an explicit offset are UTC.
Monitor request fields
These fields apply to POST and full PUT. Required means required on both, except the generation needed only on PUT. An existing server monitor cannot be converted to an endpoint monitor, or vice versa.
| Field | Type / requirement | Values |
|---|---|---|
name | String; required | 2–160 UTF-8 bytes after trimming. |
monitor_type | String; required | uptime, log or blacklist. See matching checks below. |
check_type | String; required | The matching check from the target table below. |
target | String; check-specific | Required for outbound checks; at most 2,048 bytes. Omit for heartbeat, log and server checks. |
check_interval_seconds | Integer; required | Uptime: 1, 30, 60, 120, 300, 600, 900, 1,800 or 3,600, subject to plan minimum (Professional: 30s; Business/Enterprise: 1s; server metrics: 60s+). Blacklist: 86400 (once per day). |
timeout_ms | Integer; required | 1,000–30,000. |
retry_threshold | Integer; required | Uptime: 1–5 consecutive checks, subject to geographic confirmation. Blacklist: 1. |
contact_list_id | ID string or null; required | An alert group in this workspace; null uses its default group, if configured. |
location_mode | String; required | automatic or manual. Automatic chooses three available origins for outbound uptime checks and one available origin for blacklist checks. |
location_ids | Array of ID strings; required | Use [] with automatic selection. Manual: distinct available origin IDs — exactly 1 for blacklist, or up to 5 on Professional / 10 on Business/Enterprise for uptime. Copy IDs from saved locations in the panel or an existing monitor. |
expected_status_codes | String; HTTP only, required | Up to 120 bytes: comma-separated codes/ranges between 100 and 599, such as 200,204,300-399. An empty string uses 200-399. Omit for other checks. |
ssl_warning_days | Array; SSL only, required | A nonempty selection of distinct integers 30, 14, 7 and/or 1. Use [30,14,7,1] for all boundaries. Omit for other checks. |
configuration_generation | Decimal string; PUT only, required | Copy the latest monitor GET value. Do not increment it yourself. |
There are no omitted-field defaults for required settings. Log checks normalize to 60 seconds, 10,000 ms and one retry. Server checks normalize timeout to 10,000 ms, retries to one and locations to automatic/empty. The service creates their internal target. Heartbeat/log submission URLs and server credentials are managed in the account panel; the API does not return or rotate them.
GET returns id, type, name, monitor_type, check_type, target, target_redacted, status, configuration_generation, the saved interval/timeout/retry/contact/location settings, expected_status_codes, ssl_warning_days, last_checked_at, created_at and updated_at. Heartbeat/log targets are always null with target_redacted: true. Non-HTTP expected codes are null; non-SSL warning days are empty. No contact secrets are included.
Monitor DELETE, pause and resume take only {"configuration_generation":"7"}. Deletion preserves retained history. Resume rechecks current quotas, allowed origins and plan cadence; it does not restore revoked credentials.
Checks and targets
| Monitor / check type | Target and current behavior |
|---|---|
uptime / http | A public HTTP/HTTPS URL without embedded credentials. Validate the first response; no redirect following. HTTPS verifies TLS. |
uptime / ping | Public hostname or IP; ICMP reachability. |
uptime / tcp | Public host:port; connect only, no payload. |
uptime / dns | Domain name; public A/AAAA answers. |
uptime / smtp | Public host or host:port; default 25. Read a 220 greeting; no email, authentication or STARTTLS. |
uptime / ssl | Public host or host:port, default 443; implicit verified TLS and leaf expiry warnings. No URL scheme or path. |
uptime / heartbeat | Omit target; the service generates its submission credential. |
uptime / server | Omit target; register metrics collection and issue agent credentials through the panel. Stale metrics do not create host outages. |
log / log | Omit target; the service generates its submission credential. |
blacklist / ip, blacklist / domain | Public IPv4 address / domain. New targets require configured, qualified provider access. Existing disabled-provider monitors can retain their target and receive supported management changes. |
Targets and setup probes share the panel's public-address, DNS, port, deadline and quota checks. Private/local addresses and unsafe HTTP ports are rejected. SSL setup allows an expired site to be monitored without treating its failed handshake as a verified certificate observation.
Status page request fields
| Field | Type / requirement | Values |
|---|---|---|
name | String; required | 2–160 UTF-8 bytes after trimming. |
slug | String; required | 1–160 lowercase letters, digits and separating hyphens; unique within the workspace, including retained deleted slugs. |
visibility | String; required | public or private. Private means unpublished, not a password-protected public page. |
status | String; required | operational, degraded, partial_outage, major_outage or maintenance. This is the fallback status; mapped components reflect monitoring evidence. |
monitor_ids | Array of ID strings; required | 0–30 distinct nondeleted endpoint/log monitor IDs from this workspace, in display order. Server metrics monitors cannot be components. Empty clears the selection. |
component_groups | Object; optional | Maps listed monitor ID strings to a group name of 1–80 characters with no surrounding spaces or line breaks, or null for no group. Components that share a name appear together in a collapsible group on the public page. Omit it to keep the current groups; {} ungroups every component. |
enable_page | Boolean; optional, default false | True explicitly requests re-enabling a page disabled by entitlement changes, subject to the current quota. Ordinary updates retain its disabled flag. |
revision | String; PUT only, required | The 64-character lowercase hexadecimal revision from the current page GET. |
Page DELETE takes only {"revision":"..."}. GET returns the saved fields, entitlement_disabled, revision and UTC creation/update timestamps. The revision covers writable settings, component order and component groups and is checked under the write transaction. Public and private pages count toward the page quota. Publishing also requires current eligibility; setting visibility alone cannot bypass a disabled page. Branding, domains and subscriber management remain in the panel.
Incidents
Incident reads include ID, monitor/page IDs, title, severity, status, start/recovery timestamps, creation/update timestamps, acknowledgement time/actor and resolution reason. Status is open, monitoring or resolved; severity is notice, minor, major or critical. Nullable fields remain null.
POST /incidents/{id}/acknowledge with {}. Acknowledgement is first-only, records the actor and suppresses pending delayed escalation. It does not change measured health, undo an already dispatched notification or manufacture recovery. Resolved or obsolete incidents cannot be acknowledged. There is no unacknowledge or manual measured-health update endpoint.
GET /incidents/{id}/routing uses the same evaluator as delivery without sending or reserving credits. Its mode distinguishes captured routing from a clearly labelled simulation for an older incident without a snapshot. Destinations are redacted, and delivery status is distinct from current eligibility.
Reports
GET /reports/monitors/{id} returns a seven-day UTC report by default. Set both from and to to Unix seconds, including the start and excluding the end. Choose resolution=five_minute for the last 24 hours, hour (the default) for 90 days, day for 12 calendar months or month for three calendar years. Future bounds are rejected. Only complete UTC buckets are included; data.summary.window discloses the requested and effective bounds and any clipping.
data.summary contains checks, up, warn, down, uptime, latency_count, avg_latency_ms, latency_sum, latency_min, latency_max, daily and series. The series uses the selected resolution. Canonical up_seconds, down_seconds and unknown_seconds report time separately from samples. canonical_uptime_percent is 100 × UP seconds / (UP + DOWN seconds), or null without known time; UNKNOWN time is disclosed separately. The compatible uptime field is the percentage of observed samples marked up. Latency weights each measured sample equally, including zero. Missing samples do not establish availability, and an empty report has null uptime/latency. The original checks_7d, uptime_7d, avg_latency_7d, down_checks_7d and warn_checks_7d aliases remain on default-window requests.
data.incidents reports observed detection delay (MTTD) for incidents created in the window and recovery duration (MTTR) for measured recoveries in the window. Detection uses the recorded qualifying failure anchor and creation time; it does not estimate when an external outage began. Legacy incidents without that observation and missed-heartbeat deadlines have no detection measurement. Open incidents and administrative closures are excluded from MTTR and reported separately. Empty cohorts have null averages.
For server monitors, the same endpoint returns state, latest retained metrics, received_at, observed_at and interval_seconds. State is waiting, fresh, stale, paused or revoked; metrics may be null. CPU uses basis points; memory/disk values are bytes and load values are thousandths. Receipt/observation timestamps are Unix seconds. Stale telemetry does not establish host downtime.
Unavailable required history returns 503. Server summaries reject date filters because they describe the latest retained sample. Paid workspace members can download observed checks, summaries at the selected resolution and incidents as paginated CSV files from the account Reports page. Compact check rows identify actual outcomes within a known time window and leave unavailable individual timestamps and measurements empty. Daily/monthly summaries cannot reconstruct individual checks older than 90 days.
Write examples
Create an HTTP monitor. Keep the token in a private environment variable; generate and save your own unique idempotency key for each operation. Use the same key if retrying this request.
curl https://status.direct/api/v1/monitors \
-H "Authorization: Bearer $STATUSDIRECT_API_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: create-health-2026-001' \
--data-binary '{"name":"API health","monitor_type":"uptime",
"check_type":"http","target":"https://example.com/health",
"check_interval_seconds":60,"timeout_ms":10000,"retry_threshold":2,
"contact_list_id":null,"location_mode":"automatic","location_ids":[],
"expected_status_codes":"200-399"}'
A successful creation returns HTTP 201:
{
"data": {"id": "123", "type": "monitor", "operation": "create"}
}
To update it, GET /monitors/123, then PUT the full writable body above plus its current configuration_generation, with a new key. To pause it, use the generation from that GET:
curl -X POST https://status.direct/api/v1/monitors/123/pause \
-H "Authorization: Bearer $STATUSDIRECT_API_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: pause-health-2026-001' \
--data-binary '{"configuration_generation":"7"}'
Create a status page with POST /status-pages and a new idempotency key:
{
"name": "Service health",
"slug": "service-health",
"visibility": "public",
"status": "operational",
"monitor_ids": ["123"],
"enable_page": false
}
For a full page PUT, include those fields plus its current revision. Do not send read-only response fields such as id, type, timestamps or entitlement_disabled. Acknowledgement uses POST /incidents/456/acknowledge, a new key and body {}.
Responses and errors
Creation returns HTTP 201; other successful operations return 200. Mutation receipts contain only data.id, data.type and data.operation. GET reads the current resource afterward. Error responses contain error.code, error.message and error.details; validation details may include an errors list.
{
"error": {
"code": "resource_changed",
"message": "The monitor changed. Read it again before updating.",
"details": []
}
}
Common status codes: 400 malformed request, 401 invalid/expired credential, 403 missing scope/role/paid access, 404 unavailable resource, 405 unsupported method, 409 conflicting retry or stale resource, 413 body too large, 415 unsupported media type, 422 invalid settings, 429 request limit and 503 temporary failure. Respect Retry-After. After an uncertain write, retain the same key, body and token; do not turn a timeout into a second operation.
Billing and payments, team administration, contact verification, submission/agent credential issuance or rotation, branding and custom-domain setup remain in their account pages.