Projects and checks
Organise checks in projects, create checks of any type, run them and read their results.
Projects
| Route | Permission | Notes |
|---|---|---|
GET /projects | projects.read | Oldest first; each project has check_count. |
POST /projects | projects.create | {"name": "Customer API", "description": "…"} → 201. Names are unique per team (409 name_taken). |
GET /projects/{project_id} | projects.read | |
PATCH /projects/{project_id} | projects.update | {name?, description?} |
DELETE /projects/{project_id} | projects.delete | Deletes its checks and their history. |
Check types
A check is one thing to monitor, of one type: http, redirect, tls, tcp, smtp or websocket. Each type has its own configuration, secrets and assertion fields. Read the catalogue before creating one: it's in the OpenAPI document as components.schemas.CheckConfig_<type>, and the web app's check form is built from the same catalogue.
Create a check
POST /api/public/v3/projects/{project_id}/checks
Idempotency-Key: create-checkout-health
Content-Type: application/json{
"type": "http",
"name": "Checkout API",
"interval_seconds": 60,
"timeout_seconds": 10,
"probe_ids": ["1"],
"config": { "url": "https://api.example.com/health", "method": "GET" },
"secrets": { "headers": { "Authorization": "Bearer service-key" } },
"assertions": [{ "field": "status_code", "op": "equals", "value": 200 }]
}| Field | Notes |
|---|---|
type | Required, and fixed once created. |
name | Required, unique in the project. |
interval_seconds, timeout_seconds | Within the type's and your plan's bounds. The timeout is at most 60 seconds. |
probe_ids | The regions to check from (up to your plan's limit). Defaults to the default region. |
failure_threshold | How many regions must fail for an outage; fewer failing is degraded performance. Defaults to all regions for one or two, otherwise two. |
latency | {mode: off/shadow/auto/fixed, sensitivity, threshold_ms, min_samples} for types that measure latency. |
config | The type's settings. |
secrets | Write-only values such as headers, passwords and request bodies. Responses show {"set": true}, never the value. |
assertions | Rules over the type's fields. Omit them to use the type's defaults. |
The response is 201 with the check:
{
"id": "501",
"project_id": "301",
"type": "http",
"name": "Checkout API",
"enabled": true,
"interval_seconds": 60,
"timeout_seconds": 10,
"probe_ids": ["1"],
"failure_threshold": 1,
"config": { "url": "https://api.example.com/health", "method": "GET", "header_names": ["Authorization"] },
"secrets": { "headers": { "Authorization": { "set": true } } },
"assertions": [{ "field": "status_code", "op": "equals", "value": 200 }],
"target": { "host": "api.example.com", "port": 443 },
"configuration_version": 1,
"status": { "availability": { "state": "unknown" }, "latency": { "state": "unknown" }, "warning": null, "locations": [] },
"warnings": []
}Private and local addresses are never allowed (422 target_not_allowed); a target the operator blocked is 422 target_blocked.
Read and change checks
| Route | Permission | Notes |
|---|---|---|
GET /checks | checks.read | Filters project_id, type, state, q (name or target). |
GET /projects/{project_id}/checks | checks.read | |
GET /checks/{check_id} | checks.read | Includes status: consensus per signal and each region's state. |
PATCH /checks/{check_id} | checks.update | Any field but type. config merges one level and secrets two (one header at a time); null removes. |
DELETE /checks/{check_id} | checks.delete | |
POST /checks/{check_id}/pause, /resume | checks.pause | |
POST /checks/{check_id}/run | checks.run | {"affect_incidents": false}. Waits up to the timeout plus 10 s; returns {results, pending_probe_ids, affect_incidents}. A retry with the same key reports the same run. |
GET /checks/{check_id}/status | checks.read | Availability and latency consensus, regions, the active warning and incident. |
GET /checks/{check_id}/results | checks.read | Raw results from the last 48 hours. Filters probe_id, source, success. |
GET /checks/{check_id}/timeline | checks.read | Up, degraded, down, maintenance, unknown and paused periods. |
GET /checks/{check_id}/failure-streaks | checks.read | Repeated failures collapsed into one row each, kept for ever. |
GET /checks/{check_id}/stats, /uptime | analytics.read | See Analytics. |
GET /checks/{check_id}/recipients | subscriptions.read | Who an alert would email: names, how they're subscribed, and whether they can receive it. Addresses are never shown. |
A check reports two signals. Availability is ok, degraded (some regions failing), down (an outage) or unknown. Latency is reported separately for types that measure it. A passing check can also carry a warning, such as cert_expiring; it never means the check is down.
Last updated on