Stazus docs
Stazus docs

Introduction

Stazus documentationGet startedConcepts

Planned features

Feature availabilityStatus pages

Monitoring

MonitorsChecks and resultsLatency alertingMaintenance windows

Incident response

IncidentsNotificationsTeams and access

Developer API

Developer APIAuthenticationProjects and checksAnalyticsIncidentsMaintenanceNotificationsMCPErrors and limitsMigrate to v3

Account and help

Account and security

Help

Support

Updates

Changelog
Changelog launchedDocumentation UpdatesDeveloper API v2Scope-aware maintenance windows
Developer API

Projects and checks

Organise checks in projects, create checks of any type, run them and read their results.

Projects

RoutePermissionNotes
GET /projectsprojects.readOldest first; each project has check_count.
POST /projectsprojects.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.deleteDeletes 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 }]
}
FieldNotes
typeRequired, and fixed once created.
nameRequired, unique in the project.
interval_seconds, timeout_secondsWithin the type's and your plan's bounds. The timeout is at most 60 seconds.
probe_idsThe regions to check from (up to your plan's limit). Defaults to the default region.
failure_thresholdHow 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.
configThe type's settings.
secretsWrite-only values such as headers, passwords and request bodies. Responses show {"set": true}, never the value.
assertionsRules 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

RoutePermissionNotes
GET /checkschecks.readFilters project_id, type, state, q (name or target).
GET /projects/{project_id}/checkschecks.read
GET /checks/{check_id}checks.readIncludes status: consensus per signal and each region's state.
PATCH /checks/{check_id}checks.updateAny 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, /resumechecks.pause
POST /checks/{check_id}/runchecks.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}/statuschecks.readAvailability and latency consensus, regions, the active warning and incident.
GET /checks/{check_id}/resultschecks.readRaw results from the last 48 hours. Filters probe_id, source, success.
GET /checks/{check_id}/timelinechecks.readUp, degraded, down, maintenance, unknown and paused periods.
GET /checks/{check_id}/failure-streakschecks.readRepeated failures collapsed into one row each, kept for ever.
GET /checks/{check_id}/stats, /uptimeanalytics.readSee Analytics.
GET /checks/{check_id}/recipientssubscriptions.readWho 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

Authentication

Create an API token and choose its permissions.

Analytics

Time-based uptime, run statistics, and your plan's usage and limits.

On this page

ProjectsCheck typesCreate a checkRead and change checks