{"components":{"schemas":{"CheckConfig_http":{"additionalProperties":false,"properties":{"body":{"type":"string","x-secret":true,"x-ui":{"help":"https only, with GET or OPTIONS, at most 256 KB. HTTP gives a body on GET no defined meaning, and some servers, proxies and CDNs reject or drop it: the check works only if the target and everything in front of it accept the body.","label":"Request body","order":9,"widget":"textarea"}},"cert_warning_days":{"default":21,"maximum":365,"minimum":0,"type":"integer","x-ui":{"help":"Warn when the certificate expires within this many days. 0 turns the warning off.","label":"Certificate expiry warning (days)","order":6}},"content_type":{"default":"application/json","maxLength":200,"type":"string","x-ui":{"help":"Sent with a request body.","label":"Body content type","order":5}},"follow_redirects":{"default":false,"type":"boolean","x-ui":{"help":"Follow up to 5 redirects and check the final response. Secrets are sent only to the original origin, the body is never resent, and an https → http redirect fails the run. To check the redirect chain itself, use a redirect check.","label":"Follow redirects","order":3}},"headers":{"additionalProperties":{"type":"string"},"maxItems":50,"type":"object","x-secret":true,"x-ui":{"help":"Names are shown; values are secret. https only.","label":"Request headers","order":8}},"method":{"default":"GET","enum":["GET","HEAD","OPTIONS"],"type":"string","x-ui":{"help":"Safe methods only.","label":"Method","order":2}},"tls_verify":{"default":true,"type":"boolean","x-ui":{"help":"When off, an untrusted, wrong-host, expired or not-yet-valid certificate doesn't fail the run: it passes with the tls_unverified warning, which notifies once per episode and never opens an incident. Handshake failures and your assertions still fail it.","label":"Verify the TLS certificate","order":4}},"url":{"format":"uri","maxLength":2048,"type":"string","x-ui":{"help":"http or https. A query string is kept secret, as are header values and the body.","label":"URL","order":1,"placeholder":"https://api.example.com/health"}},"url_query":{"type":"string","x-secret":true,"x-ui":{"help":"Taken from the URL when you save it, and kept secret.","label":"URL query","order":7}}},"required":["url"],"type":"object"},"CheckConfig_redirect":{"additionalProperties":false,"properties":{"allowed_redirect_statuses":{"items":{"type":"integer"},"maxItems":5,"type":"array","x-ui":{"label":"Allowed redirect statuses","order":8}},"cert_warning_days":{"default":21,"maximum":365,"minimum":0,"type":"integer","x-ui":{"label":"Certificate warning (days)","order":10}},"expected_final_status":{"default":200,"maximum":599,"minimum":100,"type":"integer","x-ui":{"label":"Final status","order":6}},"expected_final_url":{"maxLength":2048,"type":"string","x-ui":{"label":"Expected final URL or pattern","order":4}},"expected_hops":{"items":{"additionalProperties":false,"properties":{"status":{"maximum":399,"minimum":300,"type":"integer","x-ui":{"label":"Status","order":2}},"url":{"maxLength":2048,"type":"string","x-ui":{"label":"URL","order":1}}},"required":["url","status"],"type":"object"},"maxItems":10,"type":"array","x-ui":{"label":"Expected redirect responses","order":9}},"final_url_match":{"default":"equals","enum":["equals","starts_with","matches"],"type":"string","x-ui":{"label":"Final URL match","order":5}},"max_hops":{"default":5,"maximum":10,"minimum":1,"type":"integer","x-ui":{"label":"Maximum redirects","order":3}},"method":{"default":"GET","enum":["GET","HEAD"],"type":"string","x-ui":{"label":"Method","order":2}},"require_https":{"default":true,"type":"boolean","x-ui":{"label":"Require HTTPS destination","order":7}},"url":{"format":"uri","maxLength":2048,"type":"string","x-ui":{"label":"URL","order":1}},"url_query":{"type":"string","x-secret":true,"x-ui":{"help":"Stored encrypted and sent only over HTTPS.","label":"URL query","order":11}}},"required":["url"],"type":"object"},"CheckConfig_smtp":{"additionalProperties":false,"properties":{"allow_self_signed":{"default":false,"type":"boolean","x-ui":{"help":"Suppresses chain trust only. Hostname and validity dates still apply. Authentication remains encrypted, but the server's identity can be untrusted.","label":"Allow an untrusted chain","order":5}},"auth":{"additionalProperties":false,"properties":{"password":{"maxLength":256,"type":"string","x-ui":{"label":"Password","order":2}},"username":{"maxLength":256,"type":"string","x-ui":{"label":"Username","order":1}}},"required":["username","password"],"type":"object","x-secret":true,"x-ui":{"help":"Optional. PLAIN or LOGIN, sent only after TLS and the selected identity checks succeed.","label":"SMTP authentication","order":7}},"cert_warning_days":{"default":21,"maximum":365,"minimum":0,"type":"integer","x-ui":{"label":"Certificate warning (days)","order":6}},"expected_banner":{"maxLength":4096,"type":"string","x-secret":true,"x-ui":{"help":"Optional text the greeting must contain. Kept encrypted on the server.","label":"Expected banner contains","order":8}},"host":{"maxLength":253,"type":"string","x-ui":{"label":"Host","order":1}},"port":{"default":25,"enum":[25,465,587,2525],"type":"integer","x-ui":{"label":"Port","order":2}},"security":{"default":"starttls_required","enum":["none","starttls","starttls_required","implicit_tls"],"type":"string","x-ui":{"label":"TLS mode","order":3}},"verify_hostname":{"default":true,"type":"boolean","x-ui":{"help":"Turning this off suppresses hostname mismatch only. Trust and validity checks remain enabled.","label":"Verify hostname","order":4}}},"required":["host"],"type":"object"},"CheckConfig_tcp":{"additionalProperties":false,"properties":{"expect":{"additionalProperties":false,"properties":{"op":{"default":"contains","enum":["equals","not_equals","contains","not_contains","starts_with","ends_with","matches","json_subset","exists","not_exists"],"type":"string","x-ui":{"label":"Comparison","order":1}},"value":{"x-ui":{"label":"Expected value","order":2}}},"type":"object","x-secret":true,"x-ui":{"help":"An optional first-banner assertion. Its value is kept encrypted and never sent to the probe.","label":"Expected banner","order":5}},"host":{"maxLength":253,"type":"string","x-ui":{"label":"Host","order":1}},"port":{"maximum":65535,"minimum":1,"type":"integer","x-ui":{"label":"Port","order":2}},"read_bytes":{"default":4096,"maximum":16384,"minimum":1,"type":"integer","x-ui":{"label":"Banner limit (bytes)","order":4}},"tls":{"default":false,"type":"boolean","x-ui":{"help":"Verify the certificate when wrapping the connection in TLS.","label":"Use TLS","order":3}}},"required":["host","port"],"type":"object"},"CheckConfig_tls":{"additionalProperties":false,"properties":{"allow_self_signed":{"default":false,"type":"boolean","x-ui":{"help":"Suppresses chain-trust failure only. Hostname, validity, pins and assertions still apply. Suppressed verification problems produce a warning.","label":"Allow an untrusted chain","order":9}},"expected_issuer":{"maxLength":512,"type":"string","x-ui":{"label":"Expected issuer contains","order":10}},"expiry_failure_days":{"default":7,"maximum":365,"minimum":0,"type":"integer","x-ui":{"label":"Expiry failure (days)","order":7}},"expiry_warning_days":{"default":21,"maximum":365,"minimum":0,"type":"integer","x-ui":{"label":"Expiry warning (days)","order":6}},"host":{"maxLength":253,"type":"string","x-ui":{"label":"Host","order":1}},"min_version":{"default":"1.2","enum":["1.0","1.1","1.2","1.3"],"type":"string","x-ui":{"label":"Minimum TLS version","order":5}},"pinned_spki_sha256":{"items":{"type":"string"},"maxItems":16,"type":"array","x-ui":{"label":"Accepted SHA-256 SPKI pins","order":11}},"port":{"default":443,"maximum":65535,"minimum":1,"type":"integer","x-ui":{"label":"Port","order":2}},"sni":{"maxLength":253,"type":"string","x-ui":{"help":"Defaults to the host.","label":"TLS server name","order":3}},"starttls":{"default":"none","enum":["none","smtp"],"type":"string","x-ui":{"label":"Protocol upgrade","order":4}},"verify_hostname":{"default":true,"type":"boolean","x-ui":{"help":"Turning this off suppresses hostname mismatch only. Trust and validity dates still apply.","label":"Verify hostname","order":8}}},"required":["host"],"type":"object"},"CheckConfig_websocket":{"additionalProperties":false,"properties":{"cert_warning_days":{"default":21,"maximum":365,"minimum":0,"type":"integer","x-ui":{"label":"Certificate warning (days)","order":4}},"expect":{"additionalProperties":false,"properties":{"op":{"default":"contains","enum":["equals","not_equals","contains","not_contains","starts_with","ends_with","matches","json_subset","exists","not_exists"],"type":"string","x-ui":{"label":"Comparison","order":1}},"value":{"x-ui":{"label":"Expected value","order":2}}},"type":"object","x-secret":true,"x-ui":{"help":"Optional first server-message assertion, kept encrypted. No application messages are sent.","label":"Expected first message","order":7}},"headers":{"additionalProperties":{"type":"string"},"maxItems":50,"type":"object","x-secret":true,"x-ui":{"help":"Values are encrypted. Requires wss. WebSocket framing headers are managed by the executor.","label":"Request headers","order":6}},"message_timeout":{"default":5,"maximum":60,"minimum":1,"type":"integer","x-ui":{"help":"Must not exceed the check's overall timeout.","label":"First message timeout (seconds)","order":3}},"subprotocols":{"items":{"type":"string"},"maxItems":16,"type":"array","x-ui":{"label":"Requested subprotocols","order":2}},"url":{"format":"uri","maxLength":2048,"type":"string","x-ui":{"label":"WebSocket URL","order":1}},"url_query":{"type":"string","x-secret":true,"x-ui":{"help":"Kept encrypted. Requires wss.","label":"URL query","order":5}}},"required":["url"],"type":"object"},"Error":{"properties":{"error":{"properties":{"code":{"type":"string"},"details":{"items":{"type":"object"},"type":"array"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"type":"object"}},"required":["error"],"type":"object"}},"securitySchemes":{"apiToken":{"bearerFormat":"stz_…","description":"An API token (stz_…). Each operation names the permission it needs.","scheme":"bearer","type":"http"}}},"info":{"description":"Every team operation a token can be granted, on the team the token belongs to. Ids are strings; lists are cursor-paginated ({items, next_cursor}); check types, failure codes, warning codes and notification types are open sets. Each check type's config schema is under components.schemas.CheckConfig_\u003ctype\u003e; secret fields (x-secret) go under secrets.","title":"Stazus developer API","version":"3"},"openapi":"3.1.0","paths":{"/analytics":{"get":{"operationId":"analytics.get","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["analytics.read"]}],"summary":"Team analytics summary","tags":["analytics"],"x-stazus-permission":"analytics.read"}},"/audit-logs":{"get":{"operationId":"audit_logs.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["audit_logs.read"]}],"summary":"Team audit log","tags":["audit_logs"],"x-stazus-permission":"audit_logs.read"}},"/checks":{"get":{"operationId":"checks.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.read"]}],"summary":"List checks (filters: project_id, type, state, q)","tags":["checks"],"x-stazus-permission":"checks.read"}},"/checks/{check_id}":{"delete":{"operationId":"checks.delete","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.delete"]}],"summary":"Delete a check","tags":["checks"],"x-stazus-permission":"checks.delete"},"get":{"operationId":"checks.get","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.read"]}],"summary":"Get a check","tags":["checks"],"x-stazus-permission":"checks.read"},"patch":{"operationId":"checks.update","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.update"]}],"summary":"Update a check; its type can't change","tags":["checks"],"x-stazus-permission":"checks.update"}},"/checks/{check_id}/failure-streaks":{"get":{"operationId":"checks.failure_streaks","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.read"]}],"summary":"Failure streaks","tags":["checks"],"x-stazus-permission":"checks.read"}},"/checks/{check_id}/pause":{"post":{"operationId":"checks.pause","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.pause"]}],"summary":"Pause a check","tags":["checks"],"x-stazus-permission":"checks.pause"}},"/checks/{check_id}/recipients":{"get":{"operationId":"checks.recipients","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["subscriptions.read"]}],"summary":"Preview alert recipients","tags":["checks"],"x-stazus-permission":"subscriptions.read"}},"/checks/{check_id}/results":{"get":{"operationId":"checks.results","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.read"]}],"summary":"Raw results, last 48 hours","tags":["checks"],"x-stazus-permission":"checks.read"}},"/checks/{check_id}/resume":{"post":{"operationId":"checks.resume","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.pause"]}],"summary":"Resume a check","tags":["checks"],"x-stazus-permission":"checks.pause"}},"/checks/{check_id}/run":{"post":{"operationId":"checks.run","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.run"]}],"summary":"Run a check now, one result per region","tags":["checks"],"x-stazus-permission":"checks.run"}},"/checks/{check_id}/stats":{"get":{"operationId":"checks.stats","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["analytics.read"]}],"summary":"Check statistics","tags":["checks"],"x-stazus-permission":"analytics.read"}},"/checks/{check_id}/status":{"get":{"operationId":"checks.status","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.read"]}],"summary":"Consensus, per-region state, warnings and incident","tags":["checks"],"x-stazus-permission":"checks.read"}},"/checks/{check_id}/timeline":{"get":{"operationId":"checks.timeline","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.read"]}],"summary":"Status periods","tags":["checks"],"x-stazus-permission":"checks.read"}},"/checks/{check_id}/uptime":{"get":{"operationId":"checks.uptime","parameters":[{"description":"An id, sent as a string","in":"path","name":"check_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["analytics.read"]}],"summary":"Time-based uptime with the seconds breakdown","tags":["checks"],"x-stazus-permission":"analytics.read"}},"/incident-statuses":{"get":{"operationId":"incident_statuses.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incident_statuses.read"]}],"summary":"List incident statuses","tags":["incident_statuses"],"x-stazus-permission":"incident_statuses.read"},"post":{"operationId":"incident_statuses.create","parameters":[{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incident_statuses.create"]}],"summary":"Add an incident status","tags":["incident_statuses"],"x-stazus-permission":"incident_statuses.create"}},"/incident-statuses/{status_id}":{"delete":{"operationId":"incident_statuses.delete","parameters":[{"description":"An id, sent as a string","in":"path","name":"status_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incident_statuses.delete"]}],"summary":"Delete an unused, non-default status","tags":["incident_statuses"],"x-stazus-permission":"incident_statuses.delete"},"patch":{"operationId":"incident_statuses.update","parameters":[{"description":"An id, sent as a string","in":"path","name":"status_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incident_statuses.update"]}],"summary":"Rename an incident status","tags":["incident_statuses"],"x-stazus-permission":"incident_statuses.update"}},"/incidents":{"get":{"operationId":"incidents.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.read"]}],"summary":"List incidents","tags":["incidents"],"x-stazus-permission":"incidents.read"},"post":{"operationId":"incidents.create","parameters":[{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.create"]}],"summary":"Open an incident by hand","tags":["incidents"],"x-stazus-permission":"incidents.create"}},"/incidents/{incident_id}":{"get":{"operationId":"incidents.get","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.read"]}],"summary":"Get an incident","tags":["incidents"],"x-stazus-permission":"incidents.read"},"patch":{"operationId":"incidents.update","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.update"]}],"summary":"Edit an incident's details and affected checks","tags":["incidents"],"x-stazus-permission":"incidents.update"}},"/incidents/{incident_id}/checkpoints":{"post":{"operationId":"incidents.checkpoints.create","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.manage_checkpoints"]}],"summary":"Add a checkpoint","tags":["incidents"],"x-stazus-permission":"incidents.manage_checkpoints"}},"/incidents/{incident_id}/checkpoints/{checkpoint_id}":{"patch":{"operationId":"incidents.checkpoints.update","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"An id, sent as a string","in":"path","name":"checkpoint_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.manage_checkpoints"]}],"summary":"Edit a checkpoint","tags":["incidents"],"x-stazus-permission":"incidents.manage_checkpoints"}},"/incidents/{incident_id}/close":{"post":{"operationId":"incidents.close","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.close"]}],"summary":"Close an incident","tags":["incidents"],"x-stazus-permission":"incidents.close"}},"/incidents/{incident_id}/comments":{"post":{"operationId":"incidents.comments.create","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.comment"]}],"summary":"Add an internal note","tags":["incidents"],"x-stazus-permission":"incidents.comment"}},"/incidents/{incident_id}/comments/{comment_id}":{"delete":{"operationId":"incidents.comments.delete","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"An id, sent as a string","in":"path","name":"comment_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.manage_comments"]}],"summary":"Delete a note","tags":["incidents"],"x-stazus-permission":"incidents.manage_comments"},"patch":{"operationId":"incidents.comments.update","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"An id, sent as a string","in":"path","name":"comment_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.manage_comments"]}],"summary":"Pin or unpin a note","tags":["incidents"],"x-stazus-permission":"incidents.manage_comments"}},"/incidents/{incident_id}/merge":{"post":{"operationId":"incidents.merge","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.merge"]}],"summary":"Merge incidents into this one","tags":["incidents"],"x-stazus-permission":"incidents.merge"}},"/incidents/{incident_id}/reopen":{"post":{"operationId":"incidents.reopen","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.reopen"]}],"summary":"Reopen a resolved incident","tags":["incidents"],"x-stazus-permission":"incidents.reopen"}},"/incidents/{incident_id}/status":{"patch":{"operationId":"incidents.change_status","parameters":[{"description":"An id, sent as a string","in":"path","name":"incident_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["incidents.change_status"]}],"summary":"Move an open incident between open statuses","tags":["incidents"],"x-stazus-permission":"incidents.change_status"}},"/invitations":{"get":{"operationId":"invitations.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["invitations.read"]}],"summary":"List invitations","tags":["invitations"],"x-stazus-permission":"invitations.read"},"post":{"operationId":"invitations.create","parameters":[{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["invitations.create"]}],"summary":"Invite someone","tags":["invitations"],"x-stazus-permission":"invitations.create"}},"/invitations/{invitation_id}":{"delete":{"operationId":"invitations.revoke","parameters":[{"description":"An id, sent as a string","in":"path","name":"invitation_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["invitations.revoke"]}],"summary":"Revoke an invitation","tags":["invitations"],"x-stazus-permission":"invitations.revoke"}},"/invitations/{invitation_id}/resend":{"post":{"operationId":"invitations.resend","parameters":[{"description":"An id, sent as a string","in":"path","name":"invitation_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["invitations.create"]}],"summary":"Resend an invitation","tags":["invitations"],"x-stazus-permission":"invitations.create"}},"/maintenance":{"get":{"operationId":"maintenance.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["maintenance.read"]}],"summary":"List maintenance windows","tags":["maintenance"],"x-stazus-permission":"maintenance.read"},"post":{"operationId":"maintenance.create","parameters":[{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["maintenance.create"]}],"summary":"Create a maintenance window","tags":["maintenance"],"x-stazus-permission":"maintenance.create"}},"/maintenance/{maintenance_id}":{"delete":{"operationId":"maintenance.delete","parameters":[{"description":"An id, sent as a string","in":"path","name":"maintenance_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["maintenance.delete"]}],"summary":"Delete a maintenance window","tags":["maintenance"],"x-stazus-permission":"maintenance.delete"},"patch":{"operationId":"maintenance.update","parameters":[{"description":"An id, sent as a string","in":"path","name":"maintenance_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["maintenance.update"]}],"summary":"Edit a maintenance window","tags":["maintenance"],"x-stazus-permission":"maintenance.update"}},"/members":{"get":{"operationId":"members.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["members.read"]}],"summary":"List members","tags":["members"],"x-stazus-permission":"members.read"}},"/members/{user_id}":{"delete":{"operationId":"members.remove","parameters":[{"description":"An id, sent as a string","in":"path","name":"user_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["members.remove"]}],"summary":"Remove a member","tags":["members"],"x-stazus-permission":"members.remove"},"patch":{"operationId":"members.update_role","parameters":[{"description":"An id, sent as a string","in":"path","name":"user_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["members.update_role"]}],"summary":"Set a member's role","tags":["members"],"x-stazus-permission":"members.update_role"}},"/members/{user_id}/subscriptions":{"get":{"operationId":"subscriptions.list","parameters":[{"description":"An id, sent as a string","in":"path","name":"user_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["subscriptions.read"]}],"summary":"List a member's subscriptions","tags":["subscriptions"],"x-stazus-permission":"subscriptions.read"},"post":{"operationId":"subscriptions.create","parameters":[{"description":"An id, sent as a string","in":"path","name":"user_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["subscriptions.create"]}],"summary":"Subscribe a member to a project or check","tags":["subscriptions"],"x-stazus-permission":"subscriptions.create"}},"/members/{user_id}/subscriptions/{subscription_id}":{"delete":{"operationId":"subscriptions.delete","parameters":[{"description":"An id, sent as a string","in":"path","name":"user_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"An id, sent as a string","in":"path","name":"subscription_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["subscriptions.delete"]}],"summary":"Remove a subscription","tags":["subscriptions"],"x-stazus-permission":"subscriptions.delete"}},"/notifications":{"get":{"operationId":"notifications.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["notifications.read"]}],"summary":"The caller's notification feed","tags":["notifications"],"x-stazus-permission":"notifications.read"}},"/notifications/read-all":{"patch":{"operationId":"notifications.read_all","parameters":[{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["notifications.mark_read"]}],"summary":"Mark every notification read","tags":["notifications"],"x-stazus-permission":"notifications.mark_read"}},"/notifications/unread-count":{"get":{"operationId":"notifications.unread_count","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["notifications.read"]}],"summary":"The caller's unread count","tags":["notifications"],"x-stazus-permission":"notifications.read"}},"/notifications/{notification_id}":{"patch":{"operationId":"notifications.set_read","parameters":[{"description":"An id, sent as a string","in":"path","name":"notification_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["notifications.mark_read"]}],"summary":"Mark one notification read or unread","tags":["notifications"],"x-stazus-permission":"notifications.mark_read"}},"/projects":{"get":{"operationId":"projects.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["projects.read"]}],"summary":"List projects","tags":["projects"],"x-stazus-permission":"projects.read"},"post":{"operationId":"projects.create","parameters":[{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["projects.create"]}],"summary":"Create a project","tags":["projects"],"x-stazus-permission":"projects.create"}},"/projects/{project_id}":{"delete":{"operationId":"projects.delete","parameters":[{"description":"An id, sent as a string","in":"path","name":"project_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["projects.delete"]}],"summary":"Delete a project","tags":["projects"],"x-stazus-permission":"projects.delete"},"get":{"operationId":"projects.get","parameters":[{"description":"An id, sent as a string","in":"path","name":"project_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["projects.read"]}],"summary":"Get a project","tags":["projects"],"x-stazus-permission":"projects.read"},"patch":{"operationId":"projects.update","parameters":[{"description":"An id, sent as a string","in":"path","name":"project_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["projects.update"]}],"summary":"Update a project","tags":["projects"],"x-stazus-permission":"projects.update"}},"/projects/{project_id}/checks":{"get":{"operationId":"projects.checks.list","parameters":[{"description":"An id, sent as a string","in":"path","name":"project_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.read"]}],"summary":"List a project's checks","tags":["projects"],"x-stazus-permission":"checks.read"},"post":{"operationId":"checks.create","parameters":[{"description":"An id, sent as a string","in":"path","name":"project_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["checks.create"]}],"summary":"Create a check of any type","tags":["checks"],"x-stazus-permission":"checks.create"}},"/projects/{project_id}/stats":{"get":{"operationId":"projects.stats","parameters":[{"description":"An id, sent as a string","in":"path","name":"project_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["analytics.read"]}],"summary":"Project statistics","tags":["projects"],"x-stazus-permission":"analytics.read"}},"/team":{"get":{"operationId":"team.get","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["team.read"]}],"summary":"Get the team, with the caller's permissions","tags":["team"],"x-stazus-permission":"team.read"},"patch":{"operationId":"team.update","parameters":[{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["team.update"]}],"summary":"Update the team","tags":["team"],"x-stazus-permission":"team.update"}},"/token":{"get":{"operationId":"token.introspect","responses":{"200":{"description":"The token"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error"}},"security":[{"apiToken":[]}],"summary":"The calling token, its team, owner and effective permissions","tags":["token"]}},"/tokens":{"get":{"operationId":"tokens.list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["tokens.read"]}],"summary":"List the caller's tokens","tags":["tokens"],"x-stazus-permission":"tokens.read"}},"/tokens/{token_id}":{"delete":{"operationId":"tokens.revoke","parameters":[{"description":"An id, sent as a string","in":"path","name":"token_id","required":true,"schema":{"pattern":"^[0-9]+$","type":"string"}},{"description":"1–255 characters. Retrying with the same key and body replays the stored response for 24 hours (Idempotent-Replayed: true); a different body is 409 idempotency_key_reused.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"204":{"description":"Done, no body"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A state conflict, idempotency_key_reused or idempotency_in_progress"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"validation_failed, with field paths"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["tokens.revoke"]}],"summary":"Revoke one of the caller's tokens","tags":["tokens"],"x-stazus-permission":"tokens.revoke"}},"/usage":{"get":{"operationId":"usage.get","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_token: unknown, revoked or expired"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_permission, role_insufficient or inactive_owner"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, with Retry-After"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An error in the shared envelope (plan 9.2)"}},"security":[{"apiToken":["usage.read"]}],"summary":"The team's plan and every limit with current usage","tags":["usage"],"x-stazus-permission":"usage.read"}}},"servers":[{"url":"/api/public/v3"}],"x-stazus-check-types":["http","redirect","smtp","tcp","tls","websocket"],"x-stazus-permissions":[{"description":"Read the team's name and settings","grantable":true,"group":"team","id":"team.read","label":"Read team","min_role":"viewer","requires":null,"sensitive":false},{"description":"Rename the team and change its settings","grantable":true,"group":"team","id":"team.update","label":"Update team","min_role":"editor","requires":null,"sensitive":false},{"description":"Delete the team","grantable":false,"group":"team","id":"team.delete","label":"Delete team","min_role":"editor","requires":null,"sensitive":false},{"description":"Leave the team","grantable":false,"group":"team","id":"team.leave","label":"Leave team","min_role":"viewer","requires":null,"sensitive":false},{"description":"List members with names, emails and roles","grantable":true,"group":"members","id":"members.read","label":"Read members","min_role":"viewer","requires":null,"sensitive":false},{"description":"Change a member's role","grantable":true,"group":"members","id":"members.update_role","label":"Change member roles","min_role":"editor","requires":null,"sensitive":true},{"description":"Remove a member (which also deletes their tokens)","grantable":true,"group":"members","id":"members.remove","label":"Remove members","min_role":"editor","requires":null,"sensitive":true},{"description":"List invitations","grantable":true,"group":"invitations","id":"invitations.read","label":"Read invitations","min_role":"editor","requires":null,"sensitive":false},{"description":"Invite people and resend invitations","grantable":true,"group":"invitations","id":"invitations.create","label":"Invite people","min_role":"editor","requires":null,"sensitive":true},{"description":"Revoke pending invitations","grantable":true,"group":"invitations","id":"invitations.revoke","label":"Revoke invitations","min_role":"editor","requires":null,"sensitive":false},{"description":"List and read projects","grantable":true,"group":"projects","id":"projects.read","label":"Read projects","min_role":"viewer","requires":null,"sensitive":false},{"description":"Create projects","grantable":true,"group":"projects","id":"projects.create","label":"Create projects","min_role":"editor","requires":["projects.read"],"sensitive":false},{"description":"Rename and edit projects","grantable":true,"group":"projects","id":"projects.update","label":"Update projects","min_role":"editor","requires":["projects.read"],"sensitive":false},{"description":"Delete projects with all their checks and history","grantable":true,"group":"projects","id":"projects.delete","label":"Delete projects","min_role":"editor","requires":null,"sensitive":true},{"description":"Checks and their config (secrets are never shown), status, per-region state, raw results, failure streaks and the timeline","grantable":true,"group":"checks","id":"checks.read","label":"Read checks","min_role":"viewer","requires":null,"sensitive":false},{"description":"Create checks of any type the team may use","grantable":true,"group":"checks","id":"checks.create","label":"Create checks","min_role":"editor","requires":["checks.read","projects.read"],"sensitive":false},{"description":"Edit checks, including secrets, regions, thresholds and assertions","grantable":true,"group":"checks","id":"checks.update","label":"Update checks","min_role":"editor","requires":["checks.read","checks.pause"],"sensitive":false},{"description":"Pause and resume checks, and nothing else","grantable":true,"group":"checks","id":"checks.pause","label":"Pause checks","min_role":"editor","requires":["checks.read"],"sensitive":false},{"description":"Run a check now. Uses the team's budget","grantable":true,"group":"checks","id":"checks.run","label":"Run checks","min_role":"editor","requires":["checks.read"],"sensitive":false},{"description":"Delete checks and their history","grantable":true,"group":"checks","id":"checks.delete","label":"Delete checks","min_role":"editor","requires":null,"sensitive":true},{"description":"Statistics, uptime, and project and team analytics","grantable":true,"group":"analytics","id":"analytics.read","label":"Read analytics","min_role":"viewer","requires":null,"sensitive":false},{"description":"Incidents, comments, checkpoints and evidence","grantable":true,"group":"incidents","id":"incidents.read","label":"Read incidents","min_role":"viewer","requires":null,"sensitive":false},{"description":"Open incidents by hand","grantable":true,"group":"incidents","id":"incidents.create","label":"Create incidents","min_role":"editor","requires":["incidents.read"],"sensitive":false},{"description":"Edit the title, description and affected checks","grantable":true,"group":"incidents","id":"incidents.update","label":"Update incidents","min_role":"editor","requires":["incidents.read"],"sensitive":false},{"description":"Move an open incident between open statuses","grantable":true,"group":"incidents","id":"incidents.change_status","label":"Change incident status","min_role":"editor","requires":["incidents.read","incident_statuses.read"],"sensitive":false},{"description":"Close (resolve) an incident","grantable":true,"group":"incidents","id":"incidents.close","label":"Close incidents","min_role":"editor","requires":["incidents.read","incident_statuses.read"],"sensitive":false},{"description":"Reopen a resolved incident","grantable":true,"group":"incidents","id":"incidents.reopen","label":"Reopen incidents","min_role":"editor","requires":["incidents.read","incident_statuses.read"],"sensitive":false},{"description":"Merge incidents into another","grantable":true,"group":"incidents","id":"incidents.merge","label":"Merge incidents","min_role":"editor","requires":["incidents.read"],"sensitive":false},{"description":"Add internal notes","grantable":true,"group":"incidents","id":"incidents.comment","label":"Comment on incidents","min_role":"editor","requires":["incidents.read"],"sensitive":false},{"description":"Pin, unpin and delete notes","grantable":true,"group":"incidents","id":"incidents.manage_comments","label":"Manage incident notes","min_role":"editor","requires":["incidents.read"],"sensitive":false},{"description":"Add and edit checkpoints","grantable":true,"group":"incidents","id":"incidents.manage_checkpoints","label":"Manage incident checkpoints","min_role":"editor","requires":["incidents.read"],"sensitive":false},{"description":"List the team's incident statuses","grantable":true,"group":"incident_statuses","id":"incident_statuses.read","label":"Read incident statuses","min_role":"viewer","requires":null,"sensitive":false},{"description":"Add statuses","grantable":true,"group":"incident_statuses","id":"incident_statuses.create","label":"Create incident statuses","min_role":"editor","requires":["incident_statuses.read"],"sensitive":false},{"description":"Rename statuses","grantable":true,"group":"incident_statuses","id":"incident_statuses.update","label":"Update incident statuses","min_role":"editor","requires":["incident_statuses.read"],"sensitive":false},{"description":"Delete unused, non-default statuses","grantable":true,"group":"incident_statuses","id":"incident_statuses.delete","label":"Delete incident statuses","min_role":"editor","requires":["incident_statuses.read"],"sensitive":false},{"description":"List maintenance windows","grantable":true,"group":"maintenance","id":"maintenance.read","label":"Read maintenance","min_role":"viewer","requires":null,"sensitive":false},{"description":"Create windows","grantable":true,"group":"maintenance","id":"maintenance.create","label":"Create maintenance","min_role":"editor","requires":["maintenance.read"],"sensitive":false},{"description":"Edit, activate and deactivate windows","grantable":true,"group":"maintenance","id":"maintenance.update","label":"Update maintenance","min_role":"editor","requires":["maintenance.read"],"sensitive":false},{"description":"Delete windows","grantable":true,"group":"maintenance","id":"maintenance.delete","label":"Delete maintenance","min_role":"editor","requires":["maintenance.read"],"sensitive":false},{"description":"Members' subscriptions and alert-recipient previews","grantable":true,"group":"subscriptions","id":"subscriptions.read","label":"Read subscriptions","min_role":"editor","requires":null,"sensitive":false},{"description":"Subscribe members to projects and checks","grantable":true,"group":"subscriptions","id":"subscriptions.create","label":"Create subscriptions","min_role":"editor","requires":["subscriptions.read"],"sensitive":false},{"description":"Remove subscriptions","grantable":true,"group":"subscriptions","id":"subscriptions.delete","label":"Delete subscriptions","min_role":"editor","requires":["subscriptions.read"],"sensitive":false},{"description":"The feed and unread count","grantable":true,"group":"notifications","id":"notifications.read","label":"Read notifications","min_role":"viewer","requires":null,"sensitive":false},{"description":"Mark notifications read or unread","grantable":true,"group":"notifications","id":"notifications.mark_read","label":"Mark notifications read","min_role":"viewer","requires":["notifications.read"],"sensitive":false},{"description":"Plan limits and current usage","grantable":true,"group":"usage","id":"usage.read","label":"Read usage","min_role":"viewer","requires":null,"sensitive":false},{"description":"The team audit log","grantable":true,"group":"audit_logs","id":"audit_logs.read","label":"Read audit log","min_role":"editor","requires":null,"sensitive":false},{"description":"List the owner's own tokens","grantable":true,"group":"tokens","id":"tokens.read","label":"Read own tokens","min_role":"viewer","requires":null,"sensitive":false},{"description":"Revoke the owner's own tokens","grantable":true,"group":"tokens","id":"tokens.revoke","label":"Revoke own tokens","min_role":"viewer","requires":["tokens.read"],"sensitive":false},{"description":"Create, edit and roll the owner's own tokens, and list the team's templates to create them from","grantable":false,"group":"tokens","id":"tokens.manage","label":"Manage own tokens","min_role":"viewer","requires":null,"sensitive":false},{"description":"Create, edit and delete the team's token templates","grantable":false,"group":"token_templates","id":"token_templates.manage","label":"Manage token templates","min_role":"editor","requires":null,"sensitive":false},{"description":"List and revoke any member's tokens in the team","grantable":false,"group":"tokens","id":"tokens.admin","label":"Administer member tokens","min_role":"editor","requires":null,"sensitive":false},{"description":"The owner's contact methods","grantable":true,"group":"contact_methods","id":"contact_methods.read","label":"Read contact methods","min_role":"viewer","requires":null,"sensitive":false},{"description":"Add, edit, verify and delete contact methods","grantable":false,"group":"contact_methods","id":"contact_methods.manage","label":"Manage contact methods","min_role":"viewer","requires":null,"sensitive":false},{"description":"Use this token on the MCP endpoint","grantable":true,"group":"mcp","id":"mcp.connect","label":"Connect over MCP","min_role":"viewer","requires":null,"sensitive":false}]}