Developer API
Migrate to v3
Move integrations from the v1 and v2 Developer API to v3.
Version 3 is a new generation of Stazus. Old paths (/api/public/v1, /api/public/v2) answer 410 Gone, and old tokens don't work: create a new token with the permissions your integration needs.
What changed
| v2 | v3 |
|---|---|
Responses wrapped in {"data": …} with pagination | The resource itself; lists are {items, next_cursor} |
| Integer IDs | String IDs |
Scopes (monitoring:read, incidents:write) | Permissions (checks.read, incidents.close), see Authentication |
Endpoints (/endpoints) | Checks of many types (/checks), see Projects and checks |
GET /endpoints/{id}/checks | GET /checks/{id}/results |
| Uptime from failed runs ÷ all runs | Time-based uptime; null when nothing was measured |
PATCH /incidents/{id}/status with resolved | POST /incidents/{id}/close and /reopen |
endpoint_id, endpoint_ids, type, status_id, status_name on incidents | checks[], incident_type, status {id, name, kind}, plus impact |
Maintenance scope_id, recurring, recurrence_seconds | project_id/check_id, timezone, duration_seconds, recurrence |
limit up to 100 | limit up to 200 |
Idempotency-Key on some writes | Idempotency-Key on every write |
/api/mcp/v1/rpc with siftr-control | /api/mcp/v2/rpc, one tool per operation, see MCP |
Steps
- Create a v3 token and switch the base URL to
/api/public/v3. - Read responses directly instead of from
data, and paginate withnext_cursor. - Treat IDs as strings.
- Replace endpoint routes with check routes, and read the check type catalogue before creating checks.
- Send an
Idempotency-Keywith every write.
Last updated on