{"openapi":"3.1.0","info":{"title":"Hebeat API","version":"2026-11-21","description":"Workspace-scoped REST API authenticated with API keys (`Authorization: Bearer hb_…`). Each operation requires the scope shown in its security requirement; a group's write scope includes its read scope."},"servers":[{"url":"https://api.hebeat.com"}],"paths":{"/me":{"get":{"operationId":"getMe","summary":"The key's workspace, scopes and API version","tags":["API keys"],"security":[{"api_key":[]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"scopes":{"type":"array","items":{"type":"string","enum":["monitors:read","monitors:write","pages:read","pages:write","incidents:read","incidents:write","notifications:read","notifications:write","subscribers:read","subscribers:write"]}},"api_version":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["workspace_id","scopes","api_version"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors":{"get":{"operationId":"getMonitors","summary":"List monitors","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"query","name":"status","schema":{"type":"string","enum":["paused","unknown","active","degraded","error"]}},{"in":"query","name":"type","schema":{"type":"string","enum":["http","tcp","dns","heartbeat"]}},{"in":"query","name":"search","schema":{"type":"string","maxLength":100}},{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"in":"query","name":"per_page","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"monitors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["http","tcp","dns","heartbeat"]},"target":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["paused","unknown","active","degraded","error"]},"in_maintenance":{"type":"boolean"},"heartbeat":{"type":"object","properties":{"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer"},"keep_messages":{"type":"boolean"},"token_hint":{"type":"string"},"last_ping_at":{"type":["string","null"],"format":"date-time"},"last_start_at":{"type":["string","null"],"format":"date-time"},"next_due_at":{"type":["string","null"],"format":"date-time"}},"required":["schedule","grace_seconds","keep_messages","token_hint","last_ping_at","last_start_at","next_due_at"],"additionalProperties":false},"interval_seconds":{"type":"integer"},"selected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"last_transition_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"status":{"type":"string","enum":["unknown","active","degraded","error"]},"last_checked_at":{"type":["string","null"],"format":"date-time"}},"required":["region_code","status","last_checked_at"],"additionalProperties":false}},"stats":{"type":["object","null"],"properties":{"last_checked_at":{"type":["string","null"],"format":"date-time"},"uptime_24h":{"type":["number","null"],"minimum":0,"maximum":1},"uptime_7d":{"type":["number","null"],"minimum":0,"maximum":1},"uptime_30d":{"type":["number","null"],"minimum":0,"maximum":1},"latency_avg_ms_24h":{"type":["integer","null"],"minimum":0},"latency_p95_ms_24h":{"type":["integer","null"],"minimum":0},"history":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["active","degraded","error","no_data","skipped"]},"uptime":{"type":["number","null"],"minimum":0,"maximum":1}},"required":["bucket_start","status","uptime"],"additionalProperties":false}}},"required":["last_checked_at","uptime_24h","uptime_7d","uptime_30d","latency_avg_ms_24h","latency_p95_ms_24h","history"],"additionalProperties":false}},"required":["id","name","description","type","target","enabled","status","interval_seconds","selected_regions","last_transition_at","created_at","updated_at","regions","stats"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"}},"required":["page","per_page","total"],"additionalProperties":false}},"required":["monitors","pagination"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"postMonitors","summary":"Create a monitor or a heartbeat (`config.type: heartbeat`)","tags":["Monitors"],"security":[{"api_key":["monitors:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":["string","null"],"maxLength":500},"interval_seconds":{"type":"integer"},"timeout_ms":{"type":"integer","minimum":100,"maximum":30000},"degraded_after_ms":{"type":["integer","null"],"minimum":1,"maximum":30000},"max_attempts":{"type":"integer","minimum":1,"maximum":3},"regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"minItems":1,"maxItems":25},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false}]}},"required":["name","description","interval_seconds","timeout_ms","degraded_after_ms","max_attempts","regions","config"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":["string","null"],"maxLength":500},"config":{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false}},"required":["name","description","config"],"additionalProperties":false}]}}}},"responses":{"201":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"monitor":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["http","tcp","dns","heartbeat"]},"target":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["paused","unknown","active","degraded","error"]},"in_maintenance":{"type":"boolean"},"heartbeat":{"type":"object","properties":{"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer"},"keep_messages":{"type":"boolean"},"token_hint":{"type":"string"},"last_ping_at":{"type":["string","null"],"format":"date-time"},"last_start_at":{"type":["string","null"],"format":"date-time"},"next_due_at":{"type":["string","null"],"format":"date-time"}},"required":["schedule","grace_seconds","keep_messages","token_hint","last_ping_at","last_start_at","next_due_at"],"additionalProperties":false},"interval_seconds":{"type":"integer"},"selected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"last_transition_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"timeout_ms":{"type":"integer"},"degraded_after_ms":{"type":["integer","null"]},"max_attempts":{"type":"integer"},"config_version":{"type":"integer"},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false}]},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"status":{"type":"string","enum":["unknown","active","degraded","error"]},"last_checked_at":{"type":["string","null"],"format":"date-time"}},"required":["region_code","status","last_checked_at"],"additionalProperties":false}}},"required":["id","name","description","type","target","enabled","status","interval_seconds","selected_regions","last_transition_at","created_at","updated_at","timeout_ms","degraded_after_ms","max_attempts","config_version","config","regions"],"additionalProperties":false},"ping_url":{"type":"string","format":"uri"}},"required":["monitor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}":{"get":{"operationId":"getMonitorsMonitor_id","summary":"Get a monitor","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"monitor":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["http","tcp","dns","heartbeat"]},"target":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["paused","unknown","active","degraded","error"]},"in_maintenance":{"type":"boolean"},"heartbeat":{"type":"object","properties":{"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer"},"keep_messages":{"type":"boolean"},"token_hint":{"type":"string"},"last_ping_at":{"type":["string","null"],"format":"date-time"},"last_start_at":{"type":["string","null"],"format":"date-time"},"next_due_at":{"type":["string","null"],"format":"date-time"}},"required":["schedule","grace_seconds","keep_messages","token_hint","last_ping_at","last_start_at","next_due_at"],"additionalProperties":false},"interval_seconds":{"type":"integer"},"selected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"last_transition_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"timeout_ms":{"type":"integer"},"degraded_after_ms":{"type":["integer","null"]},"max_attempts":{"type":"integer"},"config_version":{"type":"integer"},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false}]},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"status":{"type":"string","enum":["unknown","active","degraded","error"]},"last_checked_at":{"type":["string","null"],"format":"date-time"}},"required":["region_code","status","last_checked_at"],"additionalProperties":false}}},"required":["id","name","description","type","target","enabled","status","interval_seconds","selected_regions","last_transition_at","created_at","updated_at","timeout_ms","degraded_after_ms","max_attempts","config_version","config","regions"],"additionalProperties":false}},"required":["monitor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"operationId":"patchMonitorsMonitor_id","summary":"Update a monitor","tags":["Monitors"],"security":[{"api_key":["monitors:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":["string","null"],"maxLength":500},"interval_seconds":{"type":"integer"},"timeout_ms":{"type":"integer","minimum":100,"maximum":30000},"degraded_after_ms":{"type":["integer","null"],"minimum":1,"maximum":30000},"max_attempts":{"type":"integer","minimum":1,"maximum":3},"regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"minItems":1,"maxItems":25},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false}]},"config_version":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["config_version"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":["string","null"],"maxLength":500},"config":{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false},"config_version":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["config_version"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"monitor":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["http","tcp","dns","heartbeat"]},"target":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["paused","unknown","active","degraded","error"]},"in_maintenance":{"type":"boolean"},"heartbeat":{"type":"object","properties":{"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer"},"keep_messages":{"type":"boolean"},"token_hint":{"type":"string"},"last_ping_at":{"type":["string","null"],"format":"date-time"},"last_start_at":{"type":["string","null"],"format":"date-time"},"next_due_at":{"type":["string","null"],"format":"date-time"}},"required":["schedule","grace_seconds","keep_messages","token_hint","last_ping_at","last_start_at","next_due_at"],"additionalProperties":false},"interval_seconds":{"type":"integer"},"selected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"last_transition_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"timeout_ms":{"type":"integer"},"degraded_after_ms":{"type":["integer","null"]},"max_attempts":{"type":"integer"},"config_version":{"type":"integer"},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false}]},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"status":{"type":"string","enum":["unknown","active","degraded","error"]},"last_checked_at":{"type":["string","null"],"format":"date-time"}},"required":["region_code","status","last_checked_at"],"additionalProperties":false}}},"required":["id","name","description","type","target","enabled","status","interval_seconds","selected_regions","last_transition_at","created_at","updated_at","timeout_ms","degraded_after_ms","max_attempts","config_version","config","regions"],"additionalProperties":false}},"required":["monitor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"operationId":"deleteMonitorsMonitor_id","summary":"Delete a monitor and its history","tags":["Monitors"],"security":[{"api_key":["monitors:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"204":{"description":"Done.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/pause":{"post":{"operationId":"postMonitorsMonitor_idPause","summary":"Pause a monitor","tags":["Monitors"],"security":[{"api_key":["monitors:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"monitor":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["http","tcp","dns","heartbeat"]},"target":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["paused","unknown","active","degraded","error"]},"in_maintenance":{"type":"boolean"},"heartbeat":{"type":"object","properties":{"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer"},"keep_messages":{"type":"boolean"},"token_hint":{"type":"string"},"last_ping_at":{"type":["string","null"],"format":"date-time"},"last_start_at":{"type":["string","null"],"format":"date-time"},"next_due_at":{"type":["string","null"],"format":"date-time"}},"required":["schedule","grace_seconds","keep_messages","token_hint","last_ping_at","last_start_at","next_due_at"],"additionalProperties":false},"interval_seconds":{"type":"integer"},"selected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"last_transition_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"timeout_ms":{"type":"integer"},"degraded_after_ms":{"type":["integer","null"]},"max_attempts":{"type":"integer"},"config_version":{"type":"integer"},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false}]},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"status":{"type":"string","enum":["unknown","active","degraded","error"]},"last_checked_at":{"type":["string","null"],"format":"date-time"}},"required":["region_code","status","last_checked_at"],"additionalProperties":false}}},"required":["id","name","description","type","target","enabled","status","interval_seconds","selected_regions","last_transition_at","created_at","updated_at","timeout_ms","degraded_after_ms","max_attempts","config_version","config","regions"],"additionalProperties":false}},"required":["monitor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/resume":{"post":{"operationId":"postMonitorsMonitor_idResume","summary":"Resume a monitor","tags":["Monitors"],"security":[{"api_key":["monitors:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"monitor":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["http","tcp","dns","heartbeat"]},"target":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["paused","unknown","active","degraded","error"]},"in_maintenance":{"type":"boolean"},"heartbeat":{"type":"object","properties":{"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer"},"keep_messages":{"type":"boolean"},"token_hint":{"type":"string"},"last_ping_at":{"type":["string","null"],"format":"date-time"},"last_start_at":{"type":["string","null"],"format":"date-time"},"next_due_at":{"type":["string","null"],"format":"date-time"}},"required":["schedule","grace_seconds","keep_messages","token_hint","last_ping_at","last_start_at","next_due_at"],"additionalProperties":false},"interval_seconds":{"type":"integer"},"selected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"last_transition_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"timeout_ms":{"type":"integer"},"degraded_after_ms":{"type":["integer","null"]},"max_attempts":{"type":"integer"},"config_version":{"type":"integer"},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false}]},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"status":{"type":"string","enum":["unknown","active","degraded","error"]},"last_checked_at":{"type":["string","null"],"format":"date-time"}},"required":["region_code","status","last_checked_at"],"additionalProperties":false}}},"required":["id","name","description","type","target","enabled","status","interval_seconds","selected_regions","last_transition_at","created_at","updated_at","timeout_ms","degraded_after_ms","max_attempts","config_version","config","regions"],"additionalProperties":false}},"required":["monitor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/test":{"post":{"operationId":"postMonitorsMonitor_idTest","summary":"Run a check now from every selected region","tags":["Monitors"],"security":[{"api_key":["monitors:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"202":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"array","items":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid"},"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"scheduled_for":{"type":"string","format":"date-time"}},"required":["run_id","region_code","scheduled_for"],"additionalProperties":false}}},"required":["runs"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/checks":{"get":{"operationId":"getMonitorsMonitor_idChecks","summary":"List recent checks","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true},{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"maximum":500,"default":1}},{"in":"query","name":"per_page","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"in":"query","name":"region_code","schema":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},{"in":"query","name":"outcome","schema":{"type":"string","enum":["active","degraded","error","probe_error","dispatch_error","missing_check","skipped"]}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"checks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"run_id":{"type":"string","format":"uuid"},"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"observed_region":{"type":["string","null"]},"trigger_code":{"type":"string","enum":["scheduled","manual"]},"scheduled_for":{"type":"string","format":"date-time"},"started_at":{"type":["string","null"],"format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"outcome":{"type":"string","enum":["active","degraded","error","probe_error","dispatch_error","missing_check","skipped"]},"latency_ms":{"type":["integer","null"],"minimum":0},"dns_ms":{"type":["integer","null"],"minimum":0},"tcp_connect_ms":{"type":["integer","null"],"minimum":0},"tls_handshake_ms":{"type":["integer","null"],"minimum":0},"ttfb_ms":{"type":["integer","null"],"minimum":0},"transfer_ms":{"type":["integer","null"],"minimum":0},"phase_reasons":{"type":"object","properties":{"dns":{"type":"string","enum":["not_applicable","not_observed"]},"tcp_connect":{"type":"string","enum":["not_applicable","not_observed"]},"tls_handshake":{"type":"string","enum":["not_applicable","not_observed"]},"ttfb":{"type":"string","enum":["not_applicable","not_observed"]},"transfer":{"type":"string","enum":["not_applicable","not_observed"]}},"additionalProperties":false},"protocol_status":{"type":["integer","null"]},"error_code":{"type":["string","null"]}},"required":["id","run_id","region_code","observed_region","trigger_code","scheduled_for","started_at","finished_at","outcome","latency_ms","dns_ms","tcp_connect_ms","tls_handshake_ms","ttfb_ms","transfer_ms","phase_reasons","protocol_status","error_code"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["page","per_page","has_more"],"additionalProperties":false},"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"retention_days":{"type":"integer","exclusiveMinimum":0},"clamped":{"type":"boolean"}},"required":["from","to","retention_days","clamped"],"additionalProperties":false}},"required":["checks","pagination","window"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Per-check history is temporarily unavailable (`history_unavailable`); retry shortly. Other reads and alerting are unaffected.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/metrics":{"get":{"operationId":"getMonitorsMonitor_idMetrics","summary":"Response time and outcome metrics","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true},{"in":"query","name":"window","schema":{"type":"string","enum":["1h","24h","7d","14d","30d"],"default":"24h"}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"retention_days":{"type":"integer","exclusiveMinimum":0},"clamped":{"type":"boolean"},"code":{"type":"string","enum":["1h","24h","7d","14d","30d"]},"bucket_seconds":{"type":"integer","exclusiveMinimum":0},"source":{"type":"string","enum":["exact","hourly"]}},"required":["from","to","retention_days","clamped","code","bucket_seconds","source"],"additionalProperties":false},"summary":{"type":"object","properties":{"uptime":{"type":["number","null"],"minimum":0,"maximum":1},"counts":{"type":"object","properties":{"active":{"type":"integer","minimum":0},"degraded":{"type":"integer","minimum":0},"error":{"type":"integer","minimum":0},"probe_error":{"type":"integer","minimum":0},"dispatch_error":{"type":"integer","minimum":0},"missing_check":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["active","degraded","error","probe_error","dispatch_error","missing_check","skipped"],"additionalProperties":false},"latency":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0},"p50_ms":{"type":["integer","null"],"minimum":0},"p75_ms":{"type":["integer","null"],"minimum":0},"p95_ms":{"type":["integer","null"],"minimum":0},"p99_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms","p50_ms","p75_ms","p95_ms","p99_ms"],"additionalProperties":false}},"required":["uptime","counts","latency"],"additionalProperties":false},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"summary":{"type":"object","properties":{"uptime":{"type":["number","null"],"minimum":0,"maximum":1},"counts":{"type":"object","properties":{"active":{"type":"integer","minimum":0},"degraded":{"type":"integer","minimum":0},"error":{"type":"integer","minimum":0},"probe_error":{"type":"integer","minimum":0},"dispatch_error":{"type":"integer","minimum":0},"missing_check":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["active","degraded","error","probe_error","dispatch_error","missing_check","skipped"],"additionalProperties":false},"latency":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0},"p50_ms":{"type":["integer","null"],"minimum":0},"p75_ms":{"type":["integer","null"],"minimum":0},"p95_ms":{"type":["integer","null"],"minimum":0},"p99_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms","p50_ms","p75_ms","p95_ms","p99_ms"],"additionalProperties":false}},"required":["uptime","counts","latency"],"additionalProperties":false},"series":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"type":"string","format":"date-time"},"latency":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0},"p50_ms":{"type":["integer","null"],"minimum":0},"p75_ms":{"type":["integer","null"],"minimum":0},"p95_ms":{"type":["integer","null"],"minimum":0},"p99_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms","p50_ms","p75_ms","p95_ms","p99_ms"],"additionalProperties":false},"phases":{"type":"object","properties":{"dns":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms"],"additionalProperties":false},"tcp_connect":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms"],"additionalProperties":false},"tls_handshake":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms"],"additionalProperties":false},"ttfb":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms"],"additionalProperties":false},"transfer":{"type":"object","properties":{"samples":{"type":"integer","minimum":0},"avg_ms":{"type":["integer","null"],"minimum":0}},"required":["samples","avg_ms"],"additionalProperties":false}},"required":["dns","tcp_connect","tls_handshake","ttfb","transfer"],"additionalProperties":false}},"required":["bucket_start","latency","phases"],"additionalProperties":false}}},"required":["region_code","summary","series"],"additionalProperties":false}}},"required":["window","summary","regions"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/uptime":{"get":{"operationId":"getMonitorsMonitor_idUptime","summary":"Daily uptime","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true},{"in":"query","name":"days","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}},{"in":"query","name":"time_zone","schema":{"type":"string","minLength":1,"maxLength":64,"default":"UTC"}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"time_zone":{"type":"string"},"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"retention_days":{"type":"integer","exclusiveMinimum":0},"clamped":{"type":"boolean"}},"required":["from","to","retention_days","clamped"],"additionalProperties":false},"uptime":{"type":["number","null"],"minimum":0,"maximum":1},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["active","degraded","error","no_data","skipped"]},"uptime":{"type":["number","null"],"minimum":0,"maximum":1},"counts":{"type":"object","properties":{"active":{"type":"integer","minimum":0},"degraded":{"type":"integer","minimum":0},"error":{"type":"integer","minimum":0},"probe_error":{"type":"integer","minimum":0},"dispatch_error":{"type":"integer","minimum":0},"missing_check":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["active","degraded","error","probe_error","dispatch_error","missing_check","skipped"],"additionalProperties":false}},"required":["date","status","uptime","counts"],"additionalProperties":false}}},"required":["time_zone","window","uptime","days"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/alerts":{"get":{"operationId":"getMonitorsMonitor_idAlerts","summary":"List a monitor's alerts","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true},{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"maximum":500,"default":1}},{"in":"query","name":"per_page","schema":{"type":"integer","minimum":1,"maximum":100,"default":10}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"incident_id":{"type":"string","format":"uuid"},"incident_number":{"type":"integer","exclusiveMinimum":0},"status":{"type":"string","enum":["firing","resolved"]},"title":{"type":"string"},"severity":{"type":"string","enum":["critical","major","minor"]},"reason":{"type":["string","null"]},"auto_resolved":{"type":"boolean"},"started_at":{"type":"string","format":"date-time"},"detected_at":{"type":"string","format":"date-time"},"resolved_at":{"type":["string","null"],"format":"date-time"},"duration_ms":{"type":["integer","null"],"minimum":0},"affected_region_codes":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}}},"required":["id","incident_id","incident_number","status","title","severity","reason","auto_resolved","started_at","detected_at","resolved_at","duration_ms","affected_region_codes"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["page","per_page","has_more"],"additionalProperties":false},"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"retention_days":{"type":"integer","exclusiveMinimum":0},"clamped":{"type":"boolean"}},"required":["from","to","retention_days","clamped"],"additionalProperties":false}},"required":["alerts","pagination","window"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/transitions":{"get":{"operationId":"getMonitorsMonitor_idTransitions","summary":"List a monitor's status transitions","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true},{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"maximum":500,"default":1}},{"in":"query","name":"per_page","schema":{"type":"integer","minimum":1,"maximum":100,"default":10}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"transitions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"from_status":{"type":"string","enum":["unknown","active","degraded","error"]},"to_status":{"type":"string","enum":["active","degraded","error"]},"occurred_at":{"type":"string","format":"date-time"},"matching_region_count":{"type":"integer"},"configured_region_count":{"type":"integer"},"alert_id":{"type":["string","null"],"format":"uuid"}},"required":["id","from_status","to_status","occurred_at","matching_region_count","configured_region_count","alert_id"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["page","per_page","has_more"],"additionalProperties":false},"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"retention_days":{"type":"integer","exclusiveMinimum":0},"clamped":{"type":"boolean"}},"required":["from","to","retention_days","clamped"],"additionalProperties":false}},"required":["transitions","pagination","window"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/notification-channels":{"get":{"operationId":"getMonitorsMonitor_idNotificationChannels","summary":"List the channels linked to a monitor","tags":["Notification channels"],"security":[{"api_key":["notifications:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"channel_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["channel_ids"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"operationId":"putMonitorsMonitor_idNotificationChannels","summary":"Replace the channels linked to a monitor","tags":["Notification channels"],"security":[{"api_key":["notifications:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"channel_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100}},"required":["channel_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"channel_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["channel_ids"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/rotate-ping-url":{"post":{"operationId":"postMonitorsMonitor_idRotatePingUrl","summary":"Rotate a heartbeat's ping URL (the previous URL stops working)","tags":["Monitors"],"security":[{"api_key":["monitors:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"monitor":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["http","tcp","dns","heartbeat"]},"target":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","enum":["paused","unknown","active","degraded","error"]},"in_maintenance":{"type":"boolean"},"heartbeat":{"type":"object","properties":{"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer"},"keep_messages":{"type":"boolean"},"token_hint":{"type":"string"},"last_ping_at":{"type":["string","null"],"format":"date-time"},"last_start_at":{"type":["string","null"],"format":"date-time"},"next_due_at":{"type":["string","null"],"format":"date-time"}},"required":["schedule","grace_seconds","keep_messages","token_hint","last_ping_at","last_start_at","next_due_at"],"additionalProperties":false},"interval_seconds":{"type":"integer"},"selected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"last_transition_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"timeout_ms":{"type":"integer"},"degraded_after_ms":{"type":["integer","null"]},"max_attempts":{"type":"integer"},"config_version":{"type":"integer"},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"http"},"url":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["GET","HEAD","POST"]},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","pattern":"^[^\\r\\n\\0]*$","maxLength":2048}},"required":["name","value"],"additionalProperties":false},"maxItems":20},"request_body":{"type":["string","null"],"maxLength":65536},"expected_status":{"type":"array","items":{"type":"integer","minimum":100,"maximum":599},"minItems":1,"maxItems":10},"follow_redirects":{"type":"boolean"},"max_redirects":{"type":"integer","minimum":0,"maximum":10},"header_assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"},"value":{"type":"string","maxLength":1024}},"required":["comparison","name","value"],"additionalProperties":false},{"type":"object","properties":{"comparison":{"type":"string","enum":["exists","not_exists"]},"name":{"type":"string","pattern":"^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$"}},"required":["comparison","name"],"additionalProperties":false}]},"maxItems":10},"body_assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":1024}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","url","method","request_headers","request_body","expected_status","follow_redirects","max_redirects","header_assertions","body_assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tcp"},"host":{"type":"string","minLength":1,"maxLength":255},"port":{"type":"integer","minimum":1,"maximum":65535}},"required":["type","host","port"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"dns"},"name":{"type":"string","minLength":1,"maxLength":253},"record_type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS"]},"assertions":{"type":"array","items":{"type":"object","properties":{"comparison":{"type":"string","enum":["equals","contains"]},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["comparison","value"],"additionalProperties":false},"maxItems":10}},"required":["type","name","record_type","assertions"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"heartbeat"},"schedule":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"period"},"period_seconds":{"type":"integer","minimum":60,"maximum":2592000}},"required":["kind","period_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cron"},"cron":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false}]},"grace_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_messages":{"type":"boolean"}},"required":["type","schedule","grace_seconds","keep_messages"],"additionalProperties":false}]},"regions":{"type":"array","items":{"type":"object","properties":{"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"status":{"type":"string","enum":["unknown","active","degraded","error"]},"last_checked_at":{"type":["string","null"],"format":"date-time"}},"required":["region_code","status","last_checked_at"],"additionalProperties":false}}},"required":["id","name","description","type","target","enabled","status","interval_seconds","selected_regions","last_transition_at","created_at","updated_at","timeout_ms","degraded_after_ms","max_attempts","config_version","config","regions"],"additionalProperties":false},"ping_url":{"type":"string","format":"uri"}},"required":["monitor","ping_url"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/pings":{"get":{"operationId":"getMonitorsMonitor_idPings","summary":"List the pings a heartbeat received","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true},{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"maximum":500,"default":1}},{"in":"query","name":"per_page","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"in":"query","name":"kind","schema":{"type":"string","enum":["success","start","fail","exit_code"]}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"pings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["success","start","fail","exit_code"]},"exit_code":{"type":["integer","null"],"minimum":0,"maximum":255},"message":{"type":["string","null"]},"duration_ms":{"type":["integer","null"],"minimum":0},"received_at":{"type":"string","format":"date-time"}},"required":["id","kind","exit_code","message","duration_ms","received_at"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["page","per_page","has_more"],"additionalProperties":false},"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"retention_days":{"type":"integer","exclusiveMinimum":0},"clamped":{"type":"boolean"}},"required":["from","to","retention_days","clamped"],"additionalProperties":false}},"required":["pings","pagination","window"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/monitors/{monitor_id}/heartbeat-uptime":{"get":{"operationId":"getMonitorsMonitor_idHeartbeatUptime","summary":"Get a heartbeat's uptime over 24 hours, 7 and 30 days","tags":["Monitors"],"security":[{"api_key":["monitors:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"monitor_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"windows":{"type":"array","items":{"type":"object","properties":{"window":{"type":"string","enum":["24h","7d","30d"]},"uptime":{"type":["number","null"],"minimum":0,"maximum":1},"downtime_seconds":{"type":"integer","minimum":0},"incidents":{"type":"integer","minimum":0},"pings":{"type":"integer","minimum":0},"failures":{"type":"integer","minimum":0}},"required":["window","uptime","downtime_seconds","incidents","pings","failures"],"additionalProperties":false}}},"required":["windows"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/incidents":{"get":{"operationId":"getIncidents","summary":"List incidents","tags":["Incidents"],"security":[{"api_key":["incidents:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"maximum":500,"default":1}},{"in":"query","name":"per_page","schema":{"type":"integer","minimum":1,"maximum":100,"default":10}},{"in":"query","name":"monitor_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"status","schema":{"type":"string","enum":["triggered","acknowledged","resolved"]}},{"in":"query","name":"status_group","schema":{"type":"string","enum":["open","resolved"]}},{"in":"query","name":"started_from","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"started_before","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"status":{"type":"string","enum":["triggered","acknowledged","resolved"]},"resolution":{"type":["string","null"],"enum":["resolved","auto","duplicate",null]},"severity":{"type":"string","enum":["critical","major","minor"]},"started_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":["string","null"],"format":"date-time"},"acknowledged_by":{"type":["string","null"],"format":"uuid"},"acknowledged_by_name":{"type":["string","null"]},"resolved_at":{"type":["string","null"],"format":"date-time"},"resolved_by":{"type":["string","null"],"format":"uuid"},"assignee_user_id":{"type":["string","null"],"format":"uuid"},"assignee_name":{"type":["string","null"]},"duration_ms":{"type":["integer","null"],"minimum":0},"alert_count":{"type":"integer","minimum":0},"firing_alert_count":{"type":"integer","minimum":0},"monitor_count":{"type":"integer","minimum":0},"monitors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["id","number","title","status","resolution","severity","started_at","acknowledged_at","acknowledged_by","acknowledged_by_name","resolved_at","resolved_by","assignee_user_id","assignee_name","duration_ms","alert_count","firing_alert_count","monitor_count","monitors"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"per_page":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["page","per_page","has_more"],"additionalProperties":false}},"required":["incidents","pagination"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/incidents/{incident_id}":{"get":{"operationId":"getIncidentsIncident_id","summary":"Get an incident with its alerts and timeline","tags":["Incidents"],"security":[{"api_key":["incidents:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"incident_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"incident":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"status":{"type":"string","enum":["triggered","acknowledged","resolved"]},"resolution":{"type":["string","null"],"enum":["resolved","auto","duplicate",null]},"severity":{"type":"string","enum":["critical","major","minor"]},"started_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":["string","null"],"format":"date-time"},"acknowledged_by":{"type":["string","null"],"format":"uuid"},"acknowledged_by_name":{"type":["string","null"]},"resolved_at":{"type":["string","null"],"format":"date-time"},"resolved_by":{"type":["string","null"],"format":"uuid"},"assignee_user_id":{"type":["string","null"],"format":"uuid"},"assignee_name":{"type":["string","null"]},"duration_ms":{"type":["integer","null"],"minimum":0},"alert_count":{"type":"integer","minimum":0},"firing_alert_count":{"type":"integer","minimum":0},"monitor_count":{"type":"integer","minimum":0},"monitors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["id","number","title","status","resolution","severity","started_at","acknowledged_at","acknowledged_by","acknowledged_by_name","resolved_at","resolved_by","assignee_user_id","assignee_name","duration_ms","alert_count","firing_alert_count","monitor_count","monitors"],"additionalProperties":false},"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source_kind":{"type":"string","enum":["monitor","heartbeat","inbound"]},"monitor_id":{"type":["string","null"],"format":"uuid"},"monitor_name":{"type":["string","null"]},"status":{"type":"string","enum":["firing","resolved"]},"severity":{"type":"string","enum":["critical","major","minor"]},"title":{"type":"string"},"reason":{"type":["string","null"]},"started_at":{"type":"string","format":"date-time"},"detected_at":{"type":"string","format":"date-time"},"resolved_at":{"type":["string","null"],"format":"date-time"},"auto_resolved":{"type":"boolean"},"duration_ms":{"type":["integer","null"],"minimum":0},"affected_region_codes":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}}},"required":["id","source_kind","monitor_id","monitor_name","status","severity","title","reason","started_at","detected_at","resolved_at","auto_resolved","duration_ms","affected_region_codes"],"additionalProperties":false}},"timeline":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"event"},"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["opened","alert_attached","alert_resolved","alert_reopened","acknowledged","resolved","duplicated","reopened","alert_severity_changed","severity_changed","assignee_changed","reminder_sent","escalated","unknown"]},"sequence":{"type":"integer","minimum":0},"occurred_at":{"type":"string","format":"date-time"},"alert_id":{"type":["string","null"],"format":"uuid"},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api_key","oauth_client","system"]},"id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]}},"required":["type","id","name"],"additionalProperties":false},"evidence":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid"},"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"to_status":{"type":"string","enum":["active","degraded","error"]},"matching_region_count":{"type":"integer","exclusiveMinimum":0},"configured_region_count":{"type":"integer","exclusiveMinimum":0},"affected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"from":{"type":"string","enum":["critical","major","minor"]},"to":{"type":"string","enum":["critical","major","minor"]},"reminder":{"type":"integer","exclusiveMinimum":0},"escalation_step":{"type":"integer","exclusiveMinimum":0},"escalation_step_count":{"type":"integer","exclusiveMinimum":0},"escalation_policy_name":{"type":"string"},"assignee_user_id":{"type":["string","null"],"format":"uuid"},"assignee_name":{"type":["string","null"]}},"additionalProperties":false}},"required":["type","id","kind","sequence","occurred_at","alert_id","actor","evidence"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"from_status":{"type":"string","enum":["unknown","active","degraded","error"]},"to_status":{"type":"string","enum":["active","degraded","error"]},"occurred_at":{"type":"string","format":"date-time"},"matching_region_count":{"type":"integer"},"configured_region_count":{"type":"integer"},"alert_id":{"type":["string","null"],"format":"uuid"},"type":{"type":"string","const":"transition"},"monitor_id":{"type":"string","format":"uuid"}},"required":["id","from_status","to_status","occurred_at","matching_region_count","configured_region_count","alert_id","type","monitor_id"],"additionalProperties":false}]}},"timeline_next_cursor":{"type":["string","null"]}},"required":["incident","alerts","timeline","timeline_next_cursor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"operationId":"patchIncidentsIncident_id","summary":"Change an incident's severity or assignee","tags":["Incidents"],"security":[{"api_key":["incidents:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"incident_id","schema":{"type":"string","format":"uuid"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"severity":{"type":"string","enum":["critical","major","minor"]},"assignee_user_id":{"type":["string","null"],"format":"uuid"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"incident":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"status":{"type":"string","enum":["triggered","acknowledged","resolved"]},"resolution":{"type":["string","null"],"enum":["resolved","auto","duplicate",null]},"severity":{"type":"string","enum":["critical","major","minor"]},"started_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":["string","null"],"format":"date-time"},"acknowledged_by":{"type":["string","null"],"format":"uuid"},"acknowledged_by_name":{"type":["string","null"]},"resolved_at":{"type":["string","null"],"format":"date-time"},"resolved_by":{"type":["string","null"],"format":"uuid"},"assignee_user_id":{"type":["string","null"],"format":"uuid"},"assignee_name":{"type":["string","null"]},"duration_ms":{"type":["integer","null"],"minimum":0},"alert_count":{"type":"integer","minimum":0},"firing_alert_count":{"type":"integer","minimum":0},"monitor_count":{"type":"integer","minimum":0},"monitors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["id","number","title","status","resolution","severity","started_at","acknowledged_at","acknowledged_by","acknowledged_by_name","resolved_at","resolved_by","assignee_user_id","assignee_name","duration_ms","alert_count","firing_alert_count","monitor_count","monitors"],"additionalProperties":false},"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source_kind":{"type":"string","enum":["monitor","heartbeat","inbound"]},"monitor_id":{"type":["string","null"],"format":"uuid"},"monitor_name":{"type":["string","null"]},"status":{"type":"string","enum":["firing","resolved"]},"severity":{"type":"string","enum":["critical","major","minor"]},"title":{"type":"string"},"reason":{"type":["string","null"]},"started_at":{"type":"string","format":"date-time"},"detected_at":{"type":"string","format":"date-time"},"resolved_at":{"type":["string","null"],"format":"date-time"},"auto_resolved":{"type":"boolean"},"duration_ms":{"type":["integer","null"],"minimum":0},"affected_region_codes":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}}},"required":["id","source_kind","monitor_id","monitor_name","status","severity","title","reason","started_at","detected_at","resolved_at","auto_resolved","duration_ms","affected_region_codes"],"additionalProperties":false}},"timeline":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"event"},"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["opened","alert_attached","alert_resolved","alert_reopened","acknowledged","resolved","duplicated","reopened","alert_severity_changed","severity_changed","assignee_changed","reminder_sent","escalated","unknown"]},"sequence":{"type":"integer","minimum":0},"occurred_at":{"type":"string","format":"date-time"},"alert_id":{"type":["string","null"],"format":"uuid"},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api_key","oauth_client","system"]},"id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]}},"required":["type","id","name"],"additionalProperties":false},"evidence":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid"},"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"to_status":{"type":"string","enum":["active","degraded","error"]},"matching_region_count":{"type":"integer","exclusiveMinimum":0},"configured_region_count":{"type":"integer","exclusiveMinimum":0},"affected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"from":{"type":"string","enum":["critical","major","minor"]},"to":{"type":"string","enum":["critical","major","minor"]},"reminder":{"type":"integer","exclusiveMinimum":0},"escalation_step":{"type":"integer","exclusiveMinimum":0},"escalation_step_count":{"type":"integer","exclusiveMinimum":0},"escalation_policy_name":{"type":"string"},"assignee_user_id":{"type":["string","null"],"format":"uuid"},"assignee_name":{"type":["string","null"]}},"additionalProperties":false}},"required":["type","id","kind","sequence","occurred_at","alert_id","actor","evidence"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"from_status":{"type":"string","enum":["unknown","active","degraded","error"]},"to_status":{"type":"string","enum":["active","degraded","error"]},"occurred_at":{"type":"string","format":"date-time"},"matching_region_count":{"type":"integer"},"configured_region_count":{"type":"integer"},"alert_id":{"type":["string","null"],"format":"uuid"},"type":{"type":"string","const":"transition"},"monitor_id":{"type":"string","format":"uuid"}},"required":["id","from_status","to_status","occurred_at","matching_region_count","configured_region_count","alert_id","type","monitor_id"],"additionalProperties":false}]}},"timeline_next_cursor":{"type":["string","null"]}},"required":["incident","alerts","timeline","timeline_next_cursor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/incidents/{incident_id}/timeline":{"get":{"operationId":"getIncidentsIncident_idTimeline","summary":"List an incident's older timeline entries from the detail's `timeline_next_cursor`, a page at a time","tags":["Incidents"],"security":[{"api_key":["incidents:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"incident_id","schema":{"type":"string","format":"uuid"},"required":true},{"in":"query","name":"cursor","schema":{"type":"string","minLength":1,"maxLength":512}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"timeline":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"event"},"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["opened","alert_attached","alert_resolved","alert_reopened","acknowledged","resolved","duplicated","reopened","alert_severity_changed","severity_changed","assignee_changed","reminder_sent","escalated","unknown"]},"sequence":{"type":"integer","minimum":0},"occurred_at":{"type":"string","format":"date-time"},"alert_id":{"type":["string","null"],"format":"uuid"},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api_key","oauth_client","system"]},"id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]}},"required":["type","id","name"],"additionalProperties":false},"evidence":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid"},"region_code":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]},"to_status":{"type":"string","enum":["active","degraded","error"]},"matching_region_count":{"type":"integer","exclusiveMinimum":0},"configured_region_count":{"type":"integer","exclusiveMinimum":0},"affected_regions":{"type":"array","items":{"type":"string","enum":["us-east","us-east-oh","us-west-ca","us-west","ca-qc","ca-ab","sa-br","eu-ie","eu-gb","eu-fr","eu-de","eu-se","eu-es","asia-in","asia-in-hy","asia-sg","asia-id","asia-jp","asia-jp-os","asia-kr","asia-tw","asia-my","asia-th","oc-au","oc-au-me"]}},"from":{"type":"string","enum":["critical","major","minor"]},"to":{"type":"string","enum":["critical","major","minor"]},"reminder":{"type":"integer","exclusiveMinimum":0},"escalation_step":{"type":"integer","exclusiveMinimum":0},"escalation_step_count":{"type":"integer","exclusiveMinimum":0},"escalation_policy_name":{"type":"string"},"assignee_user_id":{"type":["string","null"],"format":"uuid"},"assignee_name":{"type":["string","null"]}},"additionalProperties":false}},"required":["type","id","kind","sequence","occurred_at","alert_id","actor","evidence"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"from_status":{"type":"string","enum":["unknown","active","degraded","error"]},"to_status":{"type":"string","enum":["active","degraded","error"]},"occurred_at":{"type":"string","format":"date-time"},"matching_region_count":{"type":"integer"},"configured_region_count":{"type":"integer"},"alert_id":{"type":["string","null"],"format":"uuid"},"type":{"type":"string","const":"transition"},"monitor_id":{"type":"string","format":"uuid"}},"required":["id","from_status","to_status","occurred_at","matching_region_count","configured_region_count","alert_id","type","monitor_id"],"additionalProperties":false}]}},"next_cursor":{"type":["string","null"]}},"required":["timeline","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/incidents/{incident_id}/acknowledge":{"post":{"operationId":"postIncidentsIncident_idAcknowledge","summary":"Acknowledge an incident","tags":["Incidents"],"security":[{"api_key":["incidents:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"incident_id","schema":{"type":"string","format":"uuid"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"204":{"description":"Done.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/incidents/{incident_id}/resolve":{"post":{"operationId":"postIncidentsIncident_idResolve","summary":"Resolve an incident","tags":["Incidents"],"security":[{"api_key":["incidents:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"incident_id","schema":{"type":"string","format":"uuid"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"204":{"description":"Done.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/incidents/{incident_id}/duplicate":{"post":{"operationId":"postIncidentsIncident_idDuplicate","summary":"Mark an incident as a duplicate","tags":["Incidents"],"security":[{"api_key":["incidents:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"incident_id","schema":{"type":"string","format":"uuid"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"204":{"description":"Done.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notification-channels":{"get":{"operationId":"getNotificationChannels","summary":"List notification channels","tags":["Notification channels"],"security":[{"api_key":["notifications:read"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"email"},"config":{"type":"object","properties":{"address":{"type":"string"}},"required":["address"],"additionalProperties":false},"address_status":{"type":"string","enum":["member","confirmed","pending_confirmation","unsubscribed"]}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config","address_status"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"discord"},"config":{"type":"object","properties":{"discord_guild_id":{"type":"string","format":"uuid"},"guild_name":{"type":"string"},"channel_id":{"type":"string"},"channel_name":{"type":"string"}},"required":["discord_guild_id","guild_name","channel_id","channel_name"],"additionalProperties":false}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"webhook"},"config":{"type":"object","properties":{"url":{"type":"string"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":["url","headers"],"additionalProperties":false}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config"],"additionalProperties":false}]}}},"required":["channels"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"postNotificationChannels","summary":"Create a notification channel","tags":["Notification channels"],"security":[{"api_key":["notifications:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"email"},"name":{"type":"string","minLength":1,"maxLength":200},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"config":{"type":"object","properties":{"address":{"type":"string","maxLength":320}},"required":["address"],"additionalProperties":false}},"required":["type","name","enabled","events","config"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"discord"},"name":{"type":"string","minLength":1,"maxLength":200},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"config":{"type":"object","properties":{"discord_guild_id":{"type":"string","format":"uuid"},"channel_id":{"type":"string","pattern":"^[0-9]{17,20}$"}},"required":["discord_guild_id","channel_id"],"additionalProperties":false}},"required":["type","name","enabled","events","config"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"webhook"},"name":{"type":"string","minLength":1,"maxLength":200},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"config":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$","minLength":1,"maxLength":64},"value":{"type":"string","pattern":"^[\\x20-\\x7e]*$","maxLength":1024}},"required":["name"],"additionalProperties":false},"maxItems":5,"default":[]}},"required":["url"],"additionalProperties":false}},"required":["type","name","enabled","events","config"],"additionalProperties":false}]}}}},"responses":{"201":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"email"},"config":{"type":"object","properties":{"address":{"type":"string"}},"required":["address"],"additionalProperties":false},"address_status":{"type":"string","enum":["member","confirmed","pending_confirmation","unsubscribed"]}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config","address_status"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"discord"},"config":{"type":"object","properties":{"discord_guild_id":{"type":"string","format":"uuid"},"guild_name":{"type":"string"},"channel_id":{"type":"string"},"channel_name":{"type":"string"}},"required":["discord_guild_id","guild_name","channel_id","channel_name"],"additionalProperties":false}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"webhook"},"config":{"type":"object","properties":{"url":{"type":"string"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":["url","headers"],"additionalProperties":false}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config"],"additionalProperties":false}]},"signing_secret":{"type":"string"}},"required":["channel"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notification-channels/{channel_id}":{"patch":{"operationId":"patchNotificationChannelsChannel_id","summary":"Update a notification channel","tags":["Notification channels"],"security":[{"api_key":["notifications:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"channel_id","schema":{"type":"string","format":"uuid"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"config":{"anyOf":[{"type":"object","properties":{"address":{"type":"string","maxLength":320}},"required":["address"],"additionalProperties":false},{"type":"object","properties":{"discord_guild_id":{"type":"string","format":"uuid"},"channel_id":{"type":"string","pattern":"^[0-9]{17,20}$"}},"required":["discord_guild_id","channel_id"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$","minLength":1,"maxLength":64},"value":{"type":"string","pattern":"^[\\x20-\\x7e]*$","maxLength":1024}},"required":["name"],"additionalProperties":false},"maxItems":5,"default":[]}},"required":["url"],"additionalProperties":false}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"email"},"config":{"type":"object","properties":{"address":{"type":"string"}},"required":["address"],"additionalProperties":false},"address_status":{"type":"string","enum":["member","confirmed","pending_confirmation","unsubscribed"]}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config","address_status"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"discord"},"config":{"type":"object","properties":{"discord_guild_id":{"type":"string","format":"uuid"},"guild_name":{"type":"string"},"channel_id":{"type":"string"},"channel_name":{"type":"string"}},"required":["discord_guild_id","guild_name","channel_id","channel_name"],"additionalProperties":false}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"enabled":{"type":"boolean"},"events":{"type":"object","properties":{"alert":{"type":"boolean"},"recovery":{"type":"boolean"},"degraded":{"type":"boolean"}},"required":["alert","recovery","degraded"],"additionalProperties":false},"broken":{"type":["object","null"],"properties":{"reason":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["reason","since"],"additionalProperties":false},"monitor_count":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","const":"webhook"},"config":{"type":"object","properties":{"url":{"type":"string"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":["url","headers"],"additionalProperties":false}},"required":["id","name","enabled","events","broken","monitor_count","created_at","updated_at","type","config"],"additionalProperties":false}]},"signing_secret":{"type":"string"}},"required":["channel"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"operationId":"deleteNotificationChannelsChannel_id","summary":"Delete a notification channel","tags":["Notification channels"],"security":[{"api_key":["notifications:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"channel_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"204":{"description":"Done.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notification-channels/{channel_id}/confirmation":{"post":{"operationId":"postNotificationChannelsChannel_idConfirmation","summary":"Resend the address confirmation link","tags":["Notification channels"],"security":[{"api_key":["notifications:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"channel_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"202":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"queued":{"type":"boolean","const":true}},"required":["queued"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notification-channels/{channel_id}/rotate-secret":{"post":{"operationId":"postNotificationChannelsChannel_idRotateSecret","summary":"Rotate a webhook channel's signing secret","tags":["Notification channels"],"security":[{"api_key":["notifications:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"channel_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"signing_secret":{"type":"string"}},"required":["signing_secret"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notification-channels/{channel_id}/test":{"post":{"operationId":"postNotificationChannelsChannel_idTest","summary":"Send a test notification","tags":["Notification channels"],"security":[{"api_key":["notifications:write"]}],"parameters":[{"name":"Hebeat-Version","in":"header","required":false,"description":"API version (`YYYY-MM-DD`). Defaults to the version pinned on the key at creation; every response echoes the version that served it.","schema":{"type":"string","enum":["2026-11-21"]}},{"in":"path","name":"channel_id","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"202":{"description":"Success.","headers":{"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"queued":{"type":"boolean","const":true}},"required":["queued"],"additionalProperties":false}}}},"400":{"description":"Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`, `invalid_version`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, revoked or expired API key (`unauthenticated`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the operation's scope (`insufficient_scope`) or a plan limit applies.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found in the key's workspace (`not_found`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The input does not match the contract (`invalid_input`, with `issues`: each has `path`, a stable validation `code`, optional `params` and the English `message`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The key's per-minute budget or an abuse budget is spent (`rate_limited`, with `Retry-After`).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Limit":{"description":"Requests this key may make per minute (its plan's budget).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests left for this key in the current minute.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":false}},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"member_count":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["shared","solo"]}},"required":["id","name","member_count","kind"],"additionalProperties":false}}},"required":["code"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}}},"components":{"securitySchemes":{"api_key":{"type":"http","scheme":"bearer","description":"A workspace API key."}}}}