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

Errors and limits

Handle errors, pagination, idempotency keys and rate limits.

Error response

Every error has the same shape:

{
  "error": {
    "code": "validation_failed",
    "message": "Some fields are invalid",
    "request_id": "b4a3b2ad5f05494697dd0f2fe7c28a72",
    "details": [
      { "field": "config.port", "code": "out_of_range", "message": "Must be from 1 to 65535" }
    ]
  }
}

Include request_id when you report a problem. It's also in the X-Request-ID response header.

StatusMeaning
400A query parameter, cursor or JSON body is malformed (invalid_body, invalid_filter, invalid_range, invalid_cursor).
401The token is missing, unknown, revoked or expired (invalid_token).
403The token lacks the permission (missing_permission, with the permission in details), the owner's role no longer holds it (role_insufficient), or the owner is deactivated (inactive_owner).
404The resource doesn't exist in the token's team.
409The request conflicts with current state, such as already_resolved, name_taken or idempotency_key_reused.
413The body is larger than 512 KB.
422The body is valid JSON but fails validation (validation_failed with field paths, or limit_reached with the limit and current usage).
429Rate limited (rate_limited), with Retry-After.
503Retry after Retry-After: conflict_retry (the change clashed with another and was rolled back), database_unavailable, or commit_unknown (it may have been saved: retry with the same idempotency key).

Pagination

List routes accept limit (1–200, default 50) and cursor, and return {"items": [...], "next_cursor": "..."}. Pass next_cursor back unchanged to get the next page; it's null on the last one. Keep the same filters for every page.

curl -H "Authorization: Bearer $STAZUS_API_TOKEN" \
  "https://backendv2-production.stazus.com/api/public/v3/incidents?limit=50&cursor=CURSOR_FROM_RESPONSE"

Idempotency keys

Every write (POST, PATCH, DELETE) needs an Idempotency-Key header of 1–255 characters:

POST /api/public/v3/incidents
Idempotency-Key: incident-examplepay-20261108
Content-Type: application/json
  • Use a new key for each change you mean to make.
  • If a request fails in transit, retry it with the same key and body. When the first attempt was saved, you get its original response with Idempotent-Replayed: true, for 24 hours. The change is never applied twice.
  • The same key with a different body is 409 idempotency_key_reused. A request still running with that key is 409 idempotency_in_progress.
  • A rejected request (validation, permission, conflict) saves nothing and frees its key, so you can correct the body and reuse it.
  • Without a key, a write is 422 with Idempotency-Key in details.

Rate limits

Each token can make 120 requests a minute. Responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; a 429 adds Retry-After in seconds. Some routes have their own limits too, such as manual runs (60 a minute per team, 10 per check).

Last updated on

MCP

Connect an AI assistant to Stazus with an API token.

Migrate to v3

Move integrations from the v1 and v2 Developer API to v3.

On this page

Error responsePaginationIdempotency keysRate limits