{"openapi":"3.1.0","info":{"title":"You Up? API","version":"1","description":"Manage Monitors and read their runs, uptime and Incidents from your own code. Send an API token as `Authorization: Bearer uup_api_…`."},"servers":[{"url":"https://api.uup.dev/v1"}],"security":[{"apiToken":[]}],"components":{"securitySchemes":{"apiToken":{"type":"http","scheme":"bearer","description":"An API token, made on the API tokens page: `uup_api_…`."}},"schemas":{"Token":{"type":"object","properties":{"id":{"type":"string","description":"The token's identifier, `tok_…`."},"name":{"type":"string"},"kind":{"type":"string","enum":["read_only","full"],"description":"`read_only` reads and changes nothing; `full` also makes changes."},"organizationId":{"type":"string","description":"The Organization that holds it, `org_…`."},"projectId":{"type":["string","null"],"description":"The one Project it reaches, or null for every Project."},"createdAt":{"type":"string","format":"date-time","description":"When it was made."},"expiresAt":{"type":["string","null"],"format":"date-time","description":"When it stops working, or null for never."}},"required":["id","name","kind","organizationId","projectId","createdAt","expiresAt"],"description":"The API token that made this request."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string","description":"What to do, in the dashboard's words. It may change, so never branch on it."},"field":{"type":"string","description":"The field at fault, on a 400 invalid_request."},"kind":{"type":"string","enum":["project","monitor","heartbeat","location"],"description":"On a 402 not_entitled: what the Plan allows no more of."},"plan":{"type":"string","description":"On a 402: the Plan's name."},"limit":{"type":"integer","description":"On a 402: what the Plan allows. On a 422 `target_cap_reached`: the cap's figure."},"used":{"type":"integer","description":"On a 402: what is in use, or for locations, how many were asked."},"cap":{"type":"string","description":"On a 422 `target_cap_reached`: which cap the Monitor would pass."},"key":{"type":"string","description":"On a 422 `target_cap_reached`: the site the cap counts, by its host."},"location":{"type":"string","description":"On a 422 `target_cap_reached`: the location the cap was reached from."},"current":{"type":"integer","description":"On a 422 `target_cap_reached`: what the cap counts now, before this Monitor."},"rules":{"type":"array","items":{"type":"string"},"description":"On a 409 `paid_needs_email`: the names of the saved rules it would break."},"eventTypes":{"type":"array","items":{"type":"string"},"description":"On a 400 `event_type_not_on_monitor`: the events this Monitor never sends."}},"required":["code","message"]}},"required":["error"],"description":"A refusal."},"ErrorCode":{"type":"string","enum":["invalid_request","bad_identifier","unauthenticated","forbidden","not_found","not_entitled","rate_limited","interval_below_floor","timeout_below_floor","url_missing","check_not_applicable","port_blocked","target_cap_reached","too_few_locations","location_unavailable","uptime_always_on","monitor_busy","monitor_suspended","project_suspended","validation_required","validation_unavailable","validation_rate_limited","validation_expired","validation_mismatch","validation_failed","default_rule_is_fixed","name_taken","paid_needs_email","paid_rule_sends_nothing","webhook_url_refused","address_refused","event_type_not_on_monitor","too_many_webhooks","url_taken"],"description":"What was refused, stable across releases. New codes may be added, so handle a code you do not know as its status says."},"Plan":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string","description":"The Plan's version, such as `free.v1`."},"limits":{"type":"object","properties":{"projects":{"type":"integer"},"monitors":{"type":"integer"},"heartbeats":{"type":"integer"},"locations":{"type":"integer","description":"Locations one Monitor may be checked from."}},"required":["projects","monitors","heartbeats","locations"],"description":"What the Plan allows of each."},"used":{"type":"object","properties":{"projects":{"type":"integer"},"monitors":{"type":"integer"},"heartbeats":{"type":"integer"},"locations":{"type":"integer","description":"Locations one Monitor may be checked from."}},"required":["projects","monitors","heartbeats","locations"],"description":"What the Organization has in use of each. `locations` is the most any Monitor uses."}},"required":["name","version","limits","used"],"description":"The Organization's Plan."},"LocationList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The locations a new Monitor can be checked from now, the least used first."},"Location":{"type":"object","properties":{"id":{"type":"string","description":"What a Monitor's `locations` names, such as `de`."},"city":{"type":"string"},"country":{"type":["string","null"],"description":"The country, as an ISO 3166-1 alpha-2 code."}},"required":["id","city","country"],"description":"A place a Monitor can be checked from."},"ProjectList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Projects the token reaches, oldest first."},"Project":{"type":"object","properties":{"id":{"type":"string","description":"The Project's identifier, `prj_…`."},"organizationId":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string","description":"The IANA timezone its days are cut by."},"defaultLocationCount":{"type":"integer","description":"How many locations a new Monitor is checked from when it names none."},"suspendedAt":{"type":["string","null"],"format":"date-time","description":"When it was suspended, or null."},"createdAt":{"type":"string","format":"date-time","description":"When it was made."}},"required":["id","organizationId","name","timezone","defaultLocationCount","suspendedAt","createdAt"],"description":"A Project."},"Status":{"type":"object","properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/ProjectStatus"},"description":"Each Project asked about, oldest first, with what is not `ok` there now. A Project with nothing wrong has empty lists."}},"required":["projects"],"description":"What is not `ok` now, Project by Project."},"ProjectStatus":{"type":"object","properties":{"projectId":{"type":"string","description":"The Project's identifier, `prj_…`."},"name":{"type":"string","description":"The Project's name."},"monitors":{"type":"array","items":{"$ref":"#/components/schemas/Monitor"},"description":"Its Monitors whose `status` is not `ok`, in the order they were made: `failed`, `warning`, `pending`, or null when every Check is turned off. Each Check carries its open Incident."},"incidents":{"type":"array","items":{"$ref":"#/components/schemas/Incident"},"description":"Its open Incidents, newest first. `openedAt` says since when."},"regionalOutages":{"type":"array","items":{"$ref":"#/components/schemas/RegionalOutage"},"description":"Its open Regional outages, newest first: one location cannot reach a target the others can."}},"required":["projectId","name","monitors","incidents","regionalOutages"],"description":"What is not `ok` now in one Project."},"Monitor":{"type":"object","properties":{"id":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"projectId":{"type":"string"},"type":{"type":"string","enum":["http","tcp","ping","heartbeat"],"description":"Accept a type you do not know: new ones will come."},"name":{"type":"string"},"description":{"type":["string","null"]},"target":{"type":"string","description":"Its URL or host, or a heartbeat's name for itself."},"locations":{"type":"array","items":{"type":"string"},"description":"The locations that check it. Empty for a heartbeat."},"standIns":{"type":"object","additionalProperties":{"type":"string"},"description":"For a location that cannot check it now, the location checking in its place."},"state":{"type":"string","enum":["active","paused","suspended"],"description":"`active` is checked; `paused` was paused; `suspended` was stopped because the Plan no longer covers it."},"status":{"type":["string","null"],"enum":["pending","ok","warning","failed",null],"description":"The worst Status of its enabled Checks, or null with none enabled."},"onStatusPage":{"type":"boolean"},"ruleIds":{"type":"array","items":{"type":"string"},"description":"The Notification rules assigned to it, `rul_…`."},"pausedAt":{"type":["string","null"],"format":"date-time","description":"When it was paused, or null."},"suspendedAt":{"type":["string","null"],"format":"date-time","description":"When the Plan stopped it, or null."},"createdAt":{"type":"string","format":"date-time","description":"When it was made."},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}},"required":["id","projectId","type","name","description","target","locations","standIns","state","status","onStatusPage","ruleIds","pausedAt","suspendedAt","createdAt","checks"],"description":"A Monitor and its Checks."},"Check":{"type":"object","properties":{"id":{"type":"string","description":"The Check's identifier, `chk_…`."},"type":{"type":"string","enum":["uptime","performance","certificate","domain"]},"enabled":{"type":"boolean"},"intervalSec":{"type":"integer"},"status":{"type":"string","enum":["pending","ok","warning","failed"],"description":"Its latest Status."},"snoozedUntil":{"type":["string","null"],"format":"date-time","description":"Until when its messages are held, or null."},"settings":{"type":["object","null"],"properties":{"kind":{"type":"string"}},"required":["kind"],"additionalProperties":{},"description":"Its settings, told apart by `kind`, with every secret left out. A heartbeat's carries the `url` its job calls."},"notApplicable":{"type":["string","null"],"enum":["not_https","address","no_registrable_domain","no_rdap_service","rdap_unknown",null],"description":"Why it does not apply to this target, or null."},"heartbeatDeadline":{"type":["string","null"],"format":"date-time","description":"When a heartbeat is next due, or null."},"openIncident":{"$ref":"#/components/schemas/OpenIncident"},"createdAt":{"type":"string","format":"date-time","description":"When it was made."}},"required":["id","type","enabled","intervalSec","status","snoozedUntil","settings","notApplicable","heartbeatDeadline","openIncident","createdAt"],"description":"One question a Monitor asks of its target."},"OpenIncident":{"type":["object","null"],"properties":{"id":{"type":"string","description":"The Incident's identifier, `inc_…`."},"openedAt":{"type":"string","format":"date-time","description":"When the failure that opened it reached us."},"acknowledgedAt":{"type":["string","null"],"format":"date-time","description":"When someone said they are on it, or null."},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null],"description":"What the run that opened it saw."}},"required":["id","openedAt","acknowledgedAt","errorKind"],"description":"An Incident open now."},"Incident":{"type":"object","properties":{"id":{"type":"string","description":"The Incident's identifier, `inc_…`."},"monitorId":{"type":"string","description":"Its Monitor, `mon_…`."},"checkId":{"type":"string","description":"The Check it is on, `chk_…`."},"checkType":{"type":"string","enum":["uptime","performance","certificate","domain"]},"openedAt":{"type":"string","format":"date-time","description":"When the failure that opened it reached us."},"resolvedAt":{"type":["string","null"],"format":"date-time","description":"When it ended, or null while it is open."},"resolution":{"type":["string","null"],"enum":["recovered","retracted","check_disabled","monitor_paused","suspended","manually_resolved",null],"description":"Why it ended, or null while it is open."},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null],"description":"What the run that opened it saw."},"flappingAt":{"type":["string","null"],"format":"date-time","description":"Set when it opened soon after the one before, or null."},"causedBy":{"type":["string","null"],"description":"The uptime Incident that explains it, `inc_…`, or null. One with a cause is told about only once it is released."},"releasedAt":{"type":["string","null"],"format":"date-time","description":"When one with a cause was released to be told about, or null."},"acknowledgedAt":{"type":["string","null"],"format":"date-time","description":"When someone said they are on it, or null."},"acknowledgedSource":{"type":["string","null"],"enum":["member","alert","api_token",null],"description":"Who said it: a `member` signed in, an `alert`'s link, or an `api_token`. Null until then."},"acknowledgedBy":{"type":["string","null"],"description":"The member's or the API token's name, or null when nobody can be named."},"acknowledgedByTokenId":{"type":["string","null"],"description":"The API token that acknowledged it, `tok_…`, or null."},"resolvedBy":{"type":["string","null"],"description":"The member's or the API token's name, when it was ended by hand: resolved, its Monitor paused or deleted, or its Check turned off. Null otherwise."},"resolvedByTokenId":{"type":["string","null"],"description":"The API token that ended it, `tok_…`, or null."}},"required":["id","monitorId","checkId","checkType","openedAt","resolvedAt","resolution","errorKind","flappingAt","causedBy","releasedAt","acknowledgedAt","acknowledgedSource","acknowledgedBy","acknowledgedByTokenId","resolvedBy","resolvedByTokenId"],"description":"An outage of one Check."},"RegionalOutage":{"type":"object","properties":{"id":{"type":"string","description":"The Regional outage's identifier, `rgo_…`."},"monitorId":{"type":"string","description":"Its Monitor, `mon_…`."},"checkId":{"type":"string","description":"The Check it is on, `chk_…`."},"location":{"type":"string","description":"The location that cannot reach the target."},"openedAt":{"type":"string","format":"date-time","description":"When the first failure of its streak reached us."},"resolvedAt":{"type":["string","null"],"format":"date-time","description":"When it ended, or null while it is open."},"resolution":{"type":["string","null"],"enum":["recovered","retracted","monitor_paused",null],"description":"Why it ended, or null while it is open."},"flappingAt":{"type":["string","null"],"format":"date-time","description":"Set when it opened soon after the one before, or null."}},"required":["id","monitorId","checkId","location","openedAt","resolvedAt","resolution","flappingAt"],"description":"One location cannot reach the target. It never counts against uptime."},"MonitorList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Monitor"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Project's Monitors, in the order they were made."},"CreateMonitor":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["http"]},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"]},"url":{"type":"string","format":"uri"},"intervalSec":{"type":"integer","minimum":30},"locations":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":5,"description":"The locations that check it, by `id` from `GET /locations`."},"locationCount":{"type":"integer","minimum":1,"maximum":5,"description":"How many locations check it, which the control plane chooses. Name `locations` or this, not both; with neither, the Project's default count."},"request":{"type":"object","properties":{"method":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE"],"default":"GET"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false},"maxItems":20,"default":[]},"body":{"type":["string","null"],"default":null},"auth":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["bearer"]},"token":{"type":"string","minLength":1,"maxLength":4096}},"required":["kind","token"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["basic"]},"username":{"type":"string","minLength":1,"maxLength":256},"password":{"type":"string","maxLength":1024}},"required":["kind","username","password"],"additionalProperties":false},{"type":"null"}],"default":null},"expectedStatus":{"type":"array","items":{"type":"string","pattern":"^[1-5](?:[0-9]{2}|xx)$"},"minItems":1,"maxItems":10,"default":["2xx"]},"followRedirects":{"type":"boolean","default":true},"timeoutMs":{"type":"integer","minimum":1000,"maximum":30000,"default":10000}},"additionalProperties":false},"assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["keyword"]},"op":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":256}},"required":["kind","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["json"]},"path":{"type":"string"},"op":{"type":"string","enum":["eq","ne","lt","lte","gt","gte","contains","exists","not_exists"]},"value":{"anyOf":[{"type":"string","maxLength":256},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["kind","path","op"],"additionalProperties":false}]},"maxItems":10},"onStatusPage":{"type":"boolean"},"validationId":{"type":"string","minLength":1,"maxLength":100},"checks":{"type":"object","properties":{"performance":{"type":"object","properties":{"enabled":{"type":"boolean"},"thresholdMs":{"type":"integer","minimum":50,"maximum":30000}},"required":["enabled"],"additionalProperties":false},"certificate":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"domain":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}},"additionalProperties":false}},"required":["name","url","intervalSec"]},{"type":"object","properties":{"type":{"type":"string","enum":["tcp"]},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"]},"host":{"type":"string","minLength":1},"port":{"type":"integer","minimum":1,"maximum":65535},"intervalSec":{"type":"integer","minimum":30},"locations":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":5,"description":"The locations that check it, by `id` from `GET /locations`."},"locationCount":{"type":"integer","minimum":1,"maximum":5,"description":"How many locations check it, which the control plane chooses. Name `locations` or this, not both; with neither, the Project's default count."},"onStatusPage":{"type":"boolean"},"timeoutMs":{"type":"integer","minimum":1000,"maximum":30000},"checks":{"type":"object","properties":{"performance":{"type":"object","properties":{"enabled":{"type":"boolean"},"thresholdMs":{"type":"integer","minimum":50,"maximum":30000}},"required":["enabled"],"additionalProperties":false}},"additionalProperties":false}},"required":["type","name","host","port","intervalSec"]},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"]},"type":{"type":"string","enum":["ping"]},"host":{"type":"string","minLength":1},"intervalSec":{"type":"integer","minimum":30},"locations":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":5,"description":"The locations that check it, by `id` from `GET /locations`."},"locationCount":{"type":"integer","minimum":1,"maximum":5,"description":"How many locations check it, which the control plane chooses. Name `locations` or this, not both; with neither, the Project's default count."},"packetCount":{"type":"integer","minimum":1,"maximum":10},"maxPacketLossPct":{"type":"integer","minimum":0,"maximum":99},"timeoutMs":{"type":"integer","minimum":1000,"maximum":30000},"onStatusPage":{"type":"boolean"},"validationId":{"type":"string","minLength":1,"maxLength":100},"checks":{"type":"object","properties":{"performance":{"type":"object","properties":{"enabled":{"type":"boolean"},"thresholdMs":{"type":"integer","minimum":50,"maximum":30000}},"required":["enabled"],"additionalProperties":false}},"additionalProperties":false}},"required":["name","type","host","intervalSec"]},{"type":"object","properties":{"type":{"type":"string","enum":["heartbeat"]},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"]},"expectedIntervalSec":{"type":"integer","minimum":60,"maximum":2678400},"cron":{"type":"string"},"graceSec":{"type":"integer","minimum":60},"onStatusPage":{"type":"boolean"}},"required":["type","name"]}],"description":"A new Monitor, by `type`; `http` when left out. A `ping` Monitor, and an `http` one with `assertions`, need the `validationId` of a Validation run of exactly these settings."},"EditMonitor":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"]},"intervalSec":{"type":"integer","minimum":30},"locations":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":5,"description":"The locations that check it, by `id` from `GET /locations`."},"request":{"type":"object","properties":{"method":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE"],"default":"GET"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false},"maxItems":20,"default":[]},"body":{"type":["string","null"],"default":null},"auth":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["bearer"]},"token":{"type":"string","minLength":1,"maxLength":4096}},"required":["kind","token"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["basic"]},"username":{"type":"string","minLength":1,"maxLength":256},"password":{"type":"string","maxLength":1024}},"required":["kind","username","password"],"additionalProperties":false},{"type":"null"}],"default":null},"expectedStatus":{"type":"array","items":{"type":"string","pattern":"^[1-5](?:[0-9]{2}|xx)$"},"minItems":1,"maxItems":10,"default":["2xx"]},"followRedirects":{"type":"boolean","default":true},"timeoutMs":{"type":"integer","minimum":1000,"maximum":30000,"default":10000}},"additionalProperties":false},"assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["keyword"]},"op":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":256}},"required":["kind","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["json"]},"path":{"type":"string"},"op":{"type":"string","enum":["eq","ne","lt","lte","gt","gte","contains","exists","not_exists"]},"value":{"anyOf":[{"type":"string","maxLength":256},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["kind","path","op"],"additionalProperties":false}]},"maxItems":10},"timeoutMs":{"type":"integer"},"packetCount":{"type":"integer","minimum":1,"maximum":10},"maxPacketLossPct":{"type":"integer","minimum":0,"maximum":99},"expectedIntervalSec":{"type":"integer","minimum":60,"maximum":2678400},"cron":{"type":"string"},"graceSec":{"type":"integer","minimum":60},"onStatusPage":{"type":"boolean"},"validationId":{"type":"string","minLength":1,"maxLength":100},"checks":{"type":"object","properties":{"uptime":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"performance":{"type":"object","properties":{"enabled":{"type":"boolean"},"thresholdMs":{"type":"integer","minimum":50,"maximum":30000}},"additionalProperties":false},"certificate":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"domain":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}},"additionalProperties":false}},"description":"What to change. A field left out stays as it is. The type and the target never change: a new address is a new Monitor."},"AssignedRules":{"type":"object","properties":{"ruleIds":{"type":"array","items":{"type":"string"}}},"required":["ruleIds"],"description":"The rules assigned to the Monitor, `rul_…`."},"Validation":{"type":"object","properties":{"id":{"type":"string","description":"The run's identifier, `val_…`: a create's `validationId`."},"state":{"type":"string","enum":["pending","ok","failed","unanswered"],"description":"`pending` until a location answers; then `ok`, `failed` or `unanswered`."},"location":{"type":"string","description":"The location that tests it."},"createdAt":{"type":"string","format":"date-time","description":"When it started."},"deadlineAt":{"type":"string","format":"date-time","description":"When it gives up waiting for an answer."},"answeredAt":{"type":["string","null"],"format":"date-time","description":"When it was answered, or null."},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"answerMs":{"type":["number","null"]},"replies":{"type":["integer","null"],"description":"A ping's replies."},"failedAssertion":{"type":["object","null"],"properties":{},"additionalProperties":{},"description":"The assertion the answer failed, or null."},"bodySnippet":{"type":["string","null"]}},"required":["id","state","location","createdAt","deadlineAt","answeredAt","statusCode","errorKind","answerMs","replies","failedAssertion","bodySnippet"],"description":"A Validation run."},"CreateValidation":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["http"]},"url":{"type":"string","format":"uri"},"intervalSec":{"type":"integer","minimum":30},"locations":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":5,"description":"The locations that check it, by `id` from `GET /locations`."},"locationCount":{"type":"integer","minimum":1,"maximum":5,"description":"How many locations check it, which the control plane chooses. Name `locations` or this, not both; with neither, the Project's default count."},"request":{"type":"object","properties":{"method":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE"],"default":"GET"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false},"maxItems":20,"default":[]},"body":{"type":["string","null"],"default":null},"auth":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["bearer"]},"token":{"type":"string","minLength":1,"maxLength":4096}},"required":["kind","token"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["basic"]},"username":{"type":"string","minLength":1,"maxLength":256},"password":{"type":"string","maxLength":1024}},"required":["kind","username","password"],"additionalProperties":false},{"type":"null"}],"default":null},"expectedStatus":{"type":"array","items":{"type":"string","pattern":"^[1-5](?:[0-9]{2}|xx)$"},"minItems":1,"maxItems":10,"default":["2xx"]},"followRedirects":{"type":"boolean","default":true},"timeoutMs":{"type":"integer","minimum":1000,"maximum":30000,"default":10000}},"additionalProperties":false},"assertions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["keyword"]},"op":{"type":"string","enum":["contains","not_contains"]},"value":{"type":"string","minLength":1,"maxLength":256}},"required":["kind","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["json"]},"path":{"type":"string"},"op":{"type":"string","enum":["eq","ne","lt","lte","gt","gte","contains","exists","not_exists"]},"value":{"anyOf":[{"type":"string","maxLength":256},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["kind","path","op"],"additionalProperties":false}]},"maxItems":10}},"required":["url","intervalSec"]},{"type":"object","properties":{"type":{"type":"string","enum":["ping"]},"host":{"type":"string","minLength":1},"intervalSec":{"type":"integer","minimum":30},"locations":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":5,"description":"The locations that check it, by `id` from `GET /locations`."},"locationCount":{"type":"integer","minimum":1,"maximum":5,"description":"How many locations check it, which the control plane chooses. Name `locations` or this, not both; with neither, the Project's default count."},"packetCount":{"type":"integer","minimum":1,"maximum":10},"maxPacketLossPct":{"type":"integer","minimum":0,"maximum":99},"timeoutMs":{"type":"integer","minimum":1000,"maximum":30000}},"required":["type","host","intervalSec"]}],"description":"The settings to test, as the create will send them, less the name."},"RunList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Run"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"A Monitor's runs, newest first."},"Run":{"type":"object","properties":{"id":{"type":"string","description":"The run's identifier, `run_…`."},"checkId":{"type":"string"},"location":{"type":["string","null"],"description":"Where it ran, or null for a Check You Up? runs itself."},"startedAt":{"type":"string","format":"date-time","description":"When it started."},"receivedAt":{"type":"string","format":"date-time","description":"When its result reached us."},"outcome":{"type":"string","enum":["ok","warning","failed","skipped_stale"]},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"dnsMs":{"type":["number","null"]},"connectMs":{"type":["number","null"]},"tlsMs":{"type":["number","null"]},"ttfbMs":{"type":["number","null"]},"totalMs":{"type":["number","null"]},"bodyBytes":{"type":["integer","null"]},"bodySnippet":{"type":["string","null"],"description":"What a failing server answered, while it is kept."},"watched":{"type":"boolean","description":"Whether it counted: false while paused."}},"required":["id","checkId","location","startedAt","receivedAt","outcome","statusCode","errorKind","dnsMs","connectMs","tlsMs","ttfbMs","totalMs","bodyBytes","bodySnippet","watched"],"description":"One run of a Check from one location."},"ResponseTimes":{"type":"object","properties":{"asOf":{"type":"string","format":"date-time","description":"When it was read."},"pointWidthSec":{"type":"integer"},"locations":{"type":"array","items":{"type":"object","properties":{"location":{"type":"string"},"medianMs":{"type":["number","null"]},"points":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","description":"Where the point starts."},"medianMs":{"type":["number","null"],"description":"Null where nothing answered."}},"required":["at","medianMs"]}}},"required":["location","medianMs","points"]}},"regionalOutages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"`rgo_…`"},"location":{"type":"string"},"openedAt":{"type":"string","format":"date-time","description":"When it opened."},"resolvedAt":{"type":["string","null"],"format":"date-time","description":"When it ended, or null."}},"required":["id","location","openedAt","resolvedAt"]}},"incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"`inc_…`"},"openedAt":{"type":"string","format":"date-time","description":"When it opened."},"resolvedAt":{"type":["string","null"],"format":"date-time","description":"When it ended, or null."}},"required":["id","openedAt","resolvedAt"]}}},"required":["asOf","pointWidthSec","locations","regionalOutages","incidents"],"description":"A Monitor's Answer times by location."},"MonitorUptime":{"type":"object","properties":{"monitorId":{"type":"string"},"windows":{"type":"array","items":{"$ref":"#/components/schemas/UptimeFigure"},"description":"`24h`, `7d`, `30d` and `90d`."}},"required":["monitorId","windows"],"description":"A Monitor's uptime over each window."},"UptimeFigure":{"type":"object","properties":{"window":{"type":"string","enum":["24h","7d","30d","90d"]},"asOf":{"type":"string","format":"date-time","description":"When it was read."},"percentage":{"type":["number","null"],"description":"From 0 to 1, unrounded: 1 − incidentSeconds / coveredSeconds. Null when nothing was measured."},"coveredSeconds":{"type":"number","description":"The seconds it was checked and measured: the figure's denominator."},"incidentSeconds":{"type":"number","description":"The seconds of those inside an Incident."},"notMeasuredSeconds":{"type":"number","description":"The seconds it was checked but You Up? could not measure."},"notMeasuredHours":{"type":"integer","description":"The hours You Up? could not measure, left out of the figure. A part hour is one."}},"required":["window","asOf","percentage","coveredSeconds","incidentSeconds","notMeasuredSeconds","notMeasuredHours"],"description":"A Monitor's uptime over one window."},"MonitorUptimeDays":{"type":"object","properties":{"monitorId":{"type":"string"},"timezone":{"type":"string","description":"The Project's timezone, which cuts the days."},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"`YYYY-MM-DD`, in the Project's timezone."},"startsAt":{"type":"string","format":"date-time","description":"Its local midnight."},"endsAt":{"type":"string","format":"date-time","description":"The next local midnight."},"percentage":{"type":["number","null"],"description":"From 0 to 1, unrounded: 1 − incidentSeconds / measuredSeconds. Null when nothing was measured."},"coveredSeconds":{"type":"number","description":"The seconds it was checked, measured or not: measuredSeconds + notMeasuredSeconds."},"measuredSeconds":{"type":"number","description":"The seconds it was checked and measured."},"incidentSeconds":{"type":"number","description":"The seconds of those inside an Incident."},"notMeasuredSeconds":{"type":"number","description":"The seconds it was checked but You Up? could not measure."},"notMeasuredHours":{"type":"integer","description":"The hours You Up? could not measure, left out of the figure. A part hour is one."},"notCoveredSeconds":{"type":"object","properties":{"not_yet_monitored":{"type":"number"},"paused":{"type":"number"},"suspended":{"type":"number"},"deleted":{"type":"number"}},"required":["not_yet_monitored","paused","suspended","deleted"],"description":"The seconds it was not checked, by why."},"incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"`inc_…`"},"openedAt":{"type":"string","format":"date-time","description":"When it opened."},"resolvedAt":{"type":["string","null"],"format":"date-time","description":"When it ended, or null."},"resolution":{"type":["string","null"],"enum":["recovered","retracted","check_disabled","monitor_paused","suspended","manually_resolved",null]},"incidentSeconds":{"type":"number","description":"Its seconds on this day."}},"required":["id","openedAt","resolvedAt","resolution","incidentSeconds"]},"description":"The Incidents that touched the day, retracted ones too."}},"required":["date","startsAt","endsAt","percentage","coveredSeconds","measuredSeconds","incidentSeconds","notMeasuredSeconds","notMeasuredHours","notCoveredSeconds","incidents"]}}},"required":["monitorId","timezone","days"],"description":"A Monitor's last days, oldest first."},"ProjectUptime":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProjectMonitorUptime"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"Each Monitor's `30d` figure and its days, in the order the Monitors were made."},"ProjectMonitorUptime":{"type":"object","properties":{"monitorId":{"type":"string"},"window":{"type":"object","properties":{"window":{"type":"string","enum":["24h","7d","30d","90d"]},"asOf":{"type":"string","format":"date-time","description":"When it was read."},"percentage":{"type":["number","null"],"description":"From 0 to 1, unrounded: 1 − incidentSeconds / coveredSeconds. Null when nothing was measured."},"coveredSeconds":{"type":"number","description":"The seconds it was checked and measured: the figure's denominator."},"incidentSeconds":{"type":"number","description":"The seconds of those inside an Incident."},"notMeasuredSeconds":{"type":"number","description":"The seconds it was checked but You Up? could not measure."},"notMeasuredHours":{"type":"integer","description":"The hours You Up? could not measure, left out of the figure. A part hour is one."}},"required":["window","asOf","percentage","coveredSeconds","incidentSeconds","notMeasuredSeconds","notMeasuredHours"],"description":"Its `30d` figure."},"days":{"type":"array","items":{"$ref":"#/components/schemas/UptimeDay"},"description":"Its days in the `30d` window, oldest first."}},"required":["monitorId","window","days"],"description":"One Monitor's `30d` figure and its days."},"UptimeDay":{"type":"object","properties":{"date":{"type":"string","description":"`YYYY-MM-DD`, in the Project's timezone."},"startsAt":{"type":"string","format":"date-time","description":"Its local midnight."},"endsAt":{"type":"string","format":"date-time","description":"The next local midnight."},"percentage":{"type":["number","null"],"description":"From 0 to 1, unrounded: 1 − incidentSeconds / measuredSeconds. Null when nothing was measured."},"coveredSeconds":{"type":"number","description":"The seconds it was checked, measured or not: measuredSeconds + notMeasuredSeconds."},"measuredSeconds":{"type":"number","description":"The seconds it was checked and measured."},"incidentSeconds":{"type":"number","description":"The seconds of those inside an Incident."},"notMeasuredSeconds":{"type":"number","description":"The seconds it was checked but You Up? could not measure."},"notMeasuredHours":{"type":"integer","description":"The hours You Up? could not measure, left out of the figure. A part hour is one."},"notCoveredSeconds":{"type":"object","properties":{"not_yet_monitored":{"type":"number"},"paused":{"type":"number"},"suspended":{"type":"number"},"deleted":{"type":"number"}},"required":["not_yet_monitored","paused","suspended","deleted"],"description":"The seconds it was not checked, by why."}},"required":["date","startsAt","endsAt","percentage","coveredSeconds","measuredSeconds","incidentSeconds","notMeasuredSeconds","notMeasuredHours","notCoveredSeconds"],"description":"One local day of a Monitor's uptime."},"IncidentList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Incident"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Project's Incidents, newest first."},"IncidentEvidence":{"type":"object","properties":{"incidentId":{"type":"string","description":"`inc_…`"},"kept":{"type":"boolean","description":"Whether its runs are still kept. When not, `opening` is null and `rounds` is empty."},"keptDays":{"type":"integer","description":"How many days its runs are kept."},"stoppingPoint":{"type":["object","null"],"properties":{"sentence":{"type":"string","description":"Where it stopped, in plain words."},"detail":{"type":"string","description":"The same, with the technical detail."},"nextStep":{"type":"string","description":"What to do about it."}},"required":["sentence","detail","nextStep"],"description":"Where it stopped, or null when nothing says."},"locations":{"type":"array","items":{"type":"object","properties":{"location":{"type":"string"},"startedAt":{"type":"string","format":"date-time","description":"When its run started."},"errorKind":{"type":"string","enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable"]},"detail":{"type":["string","null"]}},"required":["location","startedAt","errorKind","detail"]},"description":"Each failing location's own evidence, the first first."},"opening":{"type":["object","null"],"properties":{"id":{"type":"string","description":"The run's identifier, `run_…`."},"location":{"type":["string","null"],"description":"Where it ran, or null for a Check You Up? runs itself."},"startedAt":{"type":"string","format":"date-time","description":"When it started."},"receivedAt":{"type":"string","format":"date-time","description":"When its result reached us."},"outcome":{"type":"string","enum":["ok","warning","failed","skipped_stale"]},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"ttfbMs":{"type":["number","null"]},"totalMs":{"type":["number","null"]}},"required":["id","location","startedAt","receivedAt","outcome","statusCode","errorKind","ttfbMs","totalMs"],"description":"The run that opened it, or null."},"rounds":{"type":"array","items":{"type":"object","properties":{"purpose":{"type":"string","enum":["failure","recovery"]},"verdict":{"type":["string","null"],"enum":["confirmed","unconfirmed","cannot_confirm",null],"description":"Null while it is open."},"openedAt":{"type":"string","format":"date-time","description":"When it was asked."},"closedAt":{"type":["string","null"],"format":"date-time","description":"When it was decided, or null."},"triggerLocation":{"type":"string"},"trigger":{"$ref":"#/components/schemas/EvidenceRun"},"asked":{"type":"array","items":{"type":"object","properties":{"location":{"type":"string"},"run":{"type":["object","null"],"properties":{"id":{"type":"string","description":"The run's identifier, `run_…`."},"location":{"type":["string","null"],"description":"Where it ran, or null for a Check You Up? runs itself."},"startedAt":{"type":"string","format":"date-time","description":"When it started."},"receivedAt":{"type":"string","format":"date-time","description":"When its result reached us."},"outcome":{"type":"string","enum":["ok","warning","failed","skipped_stale"]},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"ttfbMs":{"type":["number","null"]},"totalMs":{"type":["number","null"]}},"required":["id","location","startedAt","receivedAt","outcome","statusCode","errorKind","ttfbMs","totalMs"],"description":"Its answer, or null when none came in time."}},"required":["location","run"]}}},"required":["purpose","verdict","openedAt","closedAt","triggerLocation","trigger","asked"]},"description":"The other locations asked to confirm it, and to confirm its end."},"roundsLeftOut":{"type":"integer","description":"How many of those asks between the first and the newest are left out."}},"required":["incidentId","kept","keptDays","stoppingPoint","locations","opening","rounds","roundsLeftOut"],"description":"What each location saw of one Incident."},"EvidenceRun":{"type":["object","null"],"properties":{"id":{"type":"string","description":"The run's identifier, `run_…`."},"location":{"type":["string","null"],"description":"Where it ran, or null for a Check You Up? runs itself."},"startedAt":{"type":"string","format":"date-time","description":"When it started."},"receivedAt":{"type":"string","format":"date-time","description":"When its result reached us."},"outcome":{"type":"string","enum":["ok","warning","failed","skipped_stale"]},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"ttfbMs":{"type":["number","null"]},"totalMs":{"type":["number","null"]}},"required":["id","location","startedAt","receivedAt","outcome","statusCode","errorKind","ttfbMs","totalMs"],"description":"One run an Incident's evidence names."},"RegionalOutageList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RegionalOutage"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Project's Regional outages, newest first."},"ChannelList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Project's Channels, oldest first."},"Channel":{"type":"object","properties":{"id":{"type":"string","description":"The Channel's identifier, `chn_…`."},"type":{"type":"string","enum":["email","slack","discord","telegram","msteams","inbox","sms","whatsapp"],"description":"Accept a type you do not know: new ones will come."},"name":{"type":"string"},"address":{"type":["string","null"],"description":"What may be seen of its address. Null for email and the Inbox."},"country":{"type":["string","null"],"description":"A phone's country, ISO 3166-1 alpha-2. Null for other types."},"state":{"type":"string","enum":["active","awaiting_link","awaiting_code","disabled"]},"disabledReason":{"type":["string","null"]},"disabledCause":{"type":["string","null"],"enum":["hard_failures","by_hand",null],"description":"While it is off: its failures, or a person."},"disabledByName":{"type":["string","null"],"description":"Who turned it off by hand, or null."},"recipients":{"type":["array","null"],"items":{"type":"object","properties":{"address":{"type":"string"},"state":{"type":"string","enum":["active","disabled"]},"disabledReason":{"type":["string","null"]},"optedOut":{"type":"boolean","description":"Whether the address asked to stop getting alert emails."}},"required":["address","state","disabledReason","optedOut"]},"description":"An email Channel's addresses. Null for other types."},"lastSentAt":{"type":["string","null"],"format":"date-time","description":"When it last carried a message, or null."},"createdAt":{"type":"string","format":"date-time","description":"When it was added."}},"required":["id","type","name","address","country","state","disabledReason","disabledCause","disabledByName","recipients","lastSentAt","createdAt"],"description":"Where a Notification rule sends its messages."},"RuleList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Rule"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Project's Notification rules, oldest first."},"Rule":{"type":"object","properties":{"id":{"type":"string","description":"The rule's identifier, `rul_…`."},"name":{"type":"string"},"isDefault":{"type":"boolean","description":"The Default rule, which every new Monitor gets and nobody deletes."},"eventTypes":{"type":["array","null"],"items":{"type":"string","enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage"]},"description":"The events it sends, or null for every one."},"channelIds":{"type":"array","items":{"type":"string"},"description":"Its Channels, `chn_…`."},"warningsDuringOutage":{"type":"boolean"},"repeat":{"type":"string","enum":["off","30m","1h","3h","6h"],"description":"How often an open Incident is sent again, or `off`."},"usedBy":{"type":"integer","description":"How many Monitors it is assigned to."},"createdAt":{"type":"string","format":"date-time","description":"When it was written."}},"required":["id","name","isDefault","eventTypes","channelIds","warningsDuringOutage","repeat","usedBy","createdAt"],"description":"A Notification rule: which events go to which Channels."},"CreateRule":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"eventTypes":{"type":["array","null"],"items":{"type":"string","enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage"]},"minItems":1},"channelIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":100},"warningsDuringOutage":{"type":"boolean","default":false},"repeat":{"type":"string","enum":["off","30m","1h","3h","6h"],"default":"1h"}},"required":["name","eventTypes","channelIds"],"additionalProperties":false,"description":"A new rule. It reaches no Monitor until it is assigned to one. `eventTypes` null sends every event, those added later included."},"EditRule":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"eventTypes":{"type":["array","null"],"items":{"type":"string","enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage"]},"minItems":1},"channelIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":100},"warningsDuringOutage":{"type":"boolean"},"repeat":{"type":"string","enum":["off","30m","1h","3h","6h"]}},"additionalProperties":false,"description":"What to change. A field left out stays as it is."},"WebhookList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Monitor's Webhooks, oldest first."},"Webhook":{"type":"object","properties":{"id":{"type":"string","description":"The Webhook's identifier, `whk_…`."},"monitorId":{"type":"string"},"address":{"type":"string","description":"Its host and the end of its URL. The URL itself is not shown."},"eventTypes":{"type":["array","null"],"items":{"type":"string","enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage"]},"description":"The events it hears, or null for every one."},"state":{"type":"string","enum":["active","pending","disabled"],"description":"`pending` until its endpoint answers a `2xx`, then `active`; `disabled` after it failed for good."},"disabledReason":{"type":["string","null"]},"lastSentAt":{"type":["string","null"],"format":"date-time","description":"When it last carried a message, or null."},"createdAt":{"type":"string","format":"date-time","description":"When it was added."},"secretEnding":{"type":"string","description":"The last four characters of its signing secret."},"recent":{"type":"array","items":{"type":"string","enum":["delivered","failed","trying"]},"description":"What its latest Deliveries came to, newest first."},"last":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["delivered","failed","trying"]},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"at":{"type":"string","format":"date-time","description":"When its last attempt started."},"attempts":{"type":"integer"}},"required":["outcome","statusCode","errorKind","at","attempts"],"description":"Its latest Delivery's last attempt, or null."}},"required":["id","monitorId","address","eventTypes","state","disabledReason","lastSentAt","createdAt","secretEnding","recent","last"],"description":"A Monitor's Webhook: signed JSON to your own URL."},"NewWebhook":{"type":"object","properties":{"id":{"type":"string","description":"The Webhook's identifier, `whk_…`."},"monitorId":{"type":"string"},"address":{"type":"string","description":"Its host and the end of its URL. The URL itself is not shown."},"eventTypes":{"type":["array","null"],"items":{"type":"string","enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage"]},"description":"The events it hears, or null for every one."},"state":{"type":"string","enum":["active","pending","disabled"],"description":"`pending` until its endpoint answers a `2xx`, then `active`; `disabled` after it failed for good."},"disabledReason":{"type":["string","null"]},"lastSentAt":{"type":["string","null"],"format":"date-time","description":"When it last carried a message, or null."},"createdAt":{"type":"string","format":"date-time","description":"When it was added."},"secretEnding":{"type":"string","description":"The last four characters of its signing secret."},"recent":{"type":"array","items":{"type":"string","enum":["delivered","failed","trying"]},"description":"What its latest Deliveries came to, newest first."},"last":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["delivered","failed","trying"]},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"at":{"type":"string","format":"date-time","description":"When its last attempt started."},"attempts":{"type":"integer"}},"required":["outcome","statusCode","errorKind","at","attempts"],"description":"Its latest Delivery's last attempt, or null."},"signingSecret":{"type":"string","description":"What its messages are signed with. Shown this once: keep it now."},"test":{"type":"object","properties":{"sent":{"type":"boolean","description":"Whether its endpoint answered a `2xx`."},"because":{"type":["string","null"],"description":"Why it did not, or null."}},"required":["sent","because"],"description":"The signed `test` event sent as it was added."}},"required":["id","monitorId","address","eventTypes","state","disabledReason","lastSentAt","createdAt","secretEnding","recent","last","signingSecret","test"],"description":"A Webhook just added, with its signing secret, shown this once."},"CreateWebhook":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"eventTypes":{"type":["array","null"],"items":{"type":"string","enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage"]},"minItems":1,"default":null}},"required":["url"],"additionalProperties":false,"description":"An `https` URL on a public address, and the events it hears: every one when `eventTypes` is left out or null."},"EditWebhook":{"type":"object","properties":{"eventTypes":{"type":["array","null"],"items":{"type":"string","enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage"]},"minItems":1}},"required":["eventTypes"],"additionalProperties":false,"description":"Its events. The URL never changes: add another Webhook."},"DeliveryList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}},"next":{"type":["string","null"],"description":"Pass it as `cursor` for the next page. Null on the last page."}},"required":["data","next"],"description":"The Monitor's Deliveries, newest first."},"Delivery":{"type":"object","properties":{"id":{"type":"string","description":"The Delivery's identifier, `dlv_…`."},"checkId":{"type":["string","null"],"description":"The Check it is about, or null for a Webhook's `test`."},"kind":{"type":"string","enum":["down","up","flapping","correction","regional_outage","regional_recovery","regional_correction","warning","disabled","paused","resolved","repeat","burst","burst_repeat","burst_recovery","digest","channel_disabled","test"]},"eventType":{"type":["string","null"],"enum":["uptime.failed","uptime.recovered","certificate.failed","certificate.recovered","domain.failed","domain.recovered","certificate.expiring","domain.expiring","domain.unreadable","performance.degraded","uptime.family_failing","uptime.regional_outage",null],"description":"Null for a `test`."},"status":{"type":"string","enum":["queued","held","sent","digested","grouped","failed","cancelled","skipped_unverified","skipped_opt_out","skipped_disabled","skipped_duplicate","skipped_no_credits"]},"holdReason":{"type":["string","null"],"enum":["wait","symptom","snooze","digest","outage","burst",null],"description":"Why a held one waits."},"channel":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["email","slack","discord","telegram","msteams","inbox","sms","whatsapp"]},"name":{"type":"string"}},"required":["id","type","name"],"description":"The Channel it went to, or null for a Webhook's."},"webhook":{"type":["object","null"],"properties":{"id":{"type":"string"},"address":{"type":"string"}},"required":["id","address"],"description":"The Webhook it went to, or null for a Channel's."},"incidentId":{"type":["string","null"]},"regionalOutageId":{"type":["string","null"]},"location":{"type":["string","null"],"description":"The Regional outage's location, or null."},"lastError":{"type":["string","null"],"description":"Why its last attempt failed."},"digest":{"type":["object","null"],"properties":{"closedAt":{"type":"string","format":"date-time","description":"When the digest closed."},"timezone":{"type":"string"}},"required":["closedAt","timezone"],"description":"For a warning a digest carried."},"recipients":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"status":{"type":"string","enum":["queued","sent","failed","cancelled","skipped_opt_out","skipped_disabled","skipped_duplicate"]},"lastError":{"type":["string","null"]},"through":{"type":["string","null"]},"bouncedAt":{"type":["string","null"],"format":"date-time","description":"When it bounced, or null."}},"required":["address","status","lastError","through","bouncedAt"]},"description":"For email, each address that did not simply receive it."},"attempts":{"type":["object","null"],"properties":{"count":{"type":"integer"},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"durationMs":{"type":"number"},"firstAt":{"type":"string","format":"date-time","description":"When the first attempt started."}},"required":["count","statusCode","errorKind","durationMs","firstAt"],"description":"For a Webhook's, what its attempts came to. Null for a Channel's."},"createdAt":{"type":"string","format":"date-time","description":"When it was written."},"sentAt":{"type":["string","null"],"format":"date-time","description":"When it was sent, or null."}},"required":["id","checkId","kind","eventType","status","holdReason","channel","webhook","incidentId","regionalOutageId","location","lastError","digest","recipients","attempts","createdAt","sentAt"],"description":"One message, and what happened to it."},"DeliveryDetail":{"type":"object","properties":{"delivery":{"$ref":"#/components/schemas/Delivery"},"request":{"type":["object","null"],"properties":{"method":{"type":"string"},"url":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"body":{"type":"string"}},"required":["method","url","headers","body"],"description":"What its last attempt sent, or null once the body is no longer kept."},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryAttempt"}}},"required":["delivery","request","attempts"],"description":"A Webhook Delivery with its request and attempts."},"DeliveryAttempt":{"type":"object","properties":{"number":{"type":"integer"},"startedAt":{"type":"string","format":"date-time","description":"When it started."},"durationMs":{"type":"number"},"statusCode":{"type":["integer","null"]},"errorKind":{"type":["string","null"],"enum":["dns_failure","address_refused","connection_refused","connection_reset","timeout","tls_handshake_failed","certificate_expired","certificate_invalid","domain_expired","registry_unreadable","no_signal","redirect_downgrade","too_many_redirects","redirect_invalid","port_blocked","unexpected_status","keyword_missing","keyword_present","json_mismatch","json_invalid","body_truncated","read_failed","no_reply","packet_loss","probe_unavailable","unreachable",null]},"responseHeaders":{"type":["object","null"],"additionalProperties":{"type":"string"}},"responseBody":{"type":["string","null"],"description":"At most its first kilobyte."},"by":{"type":"string","enum":["job","member","api_token"],"description":"Who made it: the sending job, a Member, or an API token."},"memberName":{"type":["string","null"],"description":"The Member's name, or null."},"tokenName":{"type":["string","null"],"description":"The API token's name, or null."}},"required":["number","startedAt","durationMs","statusCode","errorKind","responseHeaders","responseBody","by","memberName","tokenName"],"description":"One try at a Webhook Delivery."}},"parameters":{}},"paths":{"/token":{"get":{"operationId":"getToken","tags":["Token"],"summary":"The token that asks","description":"This token's name, kind, what it reaches and when it stops working.","responses":{"200":{"description":"This token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/plan":{"get":{"operationId":"getPlan","tags":["Plan"],"summary":"The Plan","description":"The Organization's Plan: its name, what it allows and what is in use.","responses":{"200":{"description":"The Plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plan"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/locations":{"get":{"operationId":"listLocations","tags":["Locations"],"summary":"Locations","description":"The locations a new Monitor can be checked from now, the least used first. A Monitor's `locations` names them by `id`.","responses":{"200":{"description":"The locations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationList"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects":{"get":{"operationId":"listProjects","tags":["Projects"],"summary":"Projects","description":"The Projects this token reaches, oldest first.","responses":{"200":{"description":"The Projects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}":{"get":{"operationId":"getProject","tags":["Projects"],"summary":"A Project","description":"One Project this token reaches.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"}],"responses":{"200":{"description":"The Project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/status":{"get":{"operationId":"getStatus","tags":["Status"],"summary":"What is not ok now","description":"In each Project this token reaches, or the one `project` names: the Monitors whose status is not `ok`, the open Incidents and the open Regional outages. One request, however many Projects the token reaches.","parameters":[{"schema":{"type":"string","minLength":1,"description":"Only this Project, by its identifier, `prj_…`. Left out, every Project the token reaches."},"required":false,"description":"Only this Project, by its identifier, `prj_…`. Left out, every Project the token reaches.","name":"project","in":"query"}],"responses":{"200":{"description":"What is not ok now, Project by Project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors":{"get":{"operationId":"listMonitors","tags":["Monitors"],"summary":"Monitors","description":"The Project's Monitors, in the order they were made, each with its Checks. Narrow them by `type` and `state`, and find one by its name or target with `q`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"},{"schema":{"type":"string","enum":["http","tcp","ping","heartbeat"],"description":"Only Monitors of this type."},"required":false,"description":"Only Monitors of this type.","name":"type","in":"query"},{"schema":{"type":"string","enum":["active","paused","suspended"],"description":"`active` is checked; `paused` was paused; `suspended` was stopped because the Plan no longer covers it."},"required":false,"description":"`active` is checked; `paused` was paused; `suspended` was stopped because the Plan no longer covers it.","name":"state","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Only Monitors whose name or target holds these words, whatever the case: `checkout` finds *Checkout API* and `https://shop.example.com/checkout`."},"required":false,"description":"Only Monitors whose name or target holds these words, whatever the case: `checkout` finds *Checkout API* and `https://shop.example.com/checkout`.","name":"q","in":"query"}],"responses":{"200":{"description":"A page of Monitors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createMonitor","tags":["Monitors"],"summary":"Create a Monitor","description":"The dashboard's create, for every Monitor type. Name the `locations`, or a `locationCount`, or neither for the Project's default count, chosen for you. A `ping` Monitor, and an `http` one with `assertions`, need a Validation run's `validationId`. One Monitor more than the Plan allows is `402 not_entitled`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"}],"requestBody":{"description":"The new Monitor.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMonitor"}}}},"responses":{"201":{"description":"The Monitor, as it was made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The Plan allows no more: `not_entitled`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Refused for a reason its code names.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}":{"get":{"operationId":"getMonitor","tags":["Monitors"],"summary":"A Monitor","description":"One Monitor and its Checks, each with its latest Status and open Incident.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"responses":{"200":{"description":"The Monitor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"editMonitor","tags":["Monitors"],"summary":"Change a Monitor","description":"Change what you send; the rest stays. The type and the target never change. Turning a Check off ends its open Incident as this token's act. Changing `locations` in the middle of an outage is `409 monitor_busy`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"requestBody":{"description":"What to change.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditMonitor"}}}},"responses":{"200":{"description":"The Monitor, changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The Plan allows no more: `not_entitled`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Refused for a reason its code names.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMonitor","tags":["Monitors"],"summary":"Delete a Monitor","description":"It stops at once, in silence, and leaves every list. Its open Incidents end as this token's act.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/pause":{"post":{"operationId":"pauseMonitor","tags":["Monitors"],"summary":"Pause a Monitor","description":"Every Check stops, and its open Incidents end as this token's act. Safe to repeat: a paused Monitor answers as it is.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"responses":{"200":{"description":"The Monitor, paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/resume":{"post":{"operationId":"resumeMonitor","tags":["Monitors"],"summary":"Resume a Monitor","description":"It starts again afresh: every Check is `pending`. Safe to repeat: a running Monitor answers as it is.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"responses":{"200":{"description":"The Monitor, running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/heartbeat-token":{"post":{"operationId":"rotateHeartbeatToken","tags":["Monitors"],"summary":"Give a heartbeat a new URL","description":"The heartbeat's old URL stops answering at once; the new one is in its uptime Check's `settings.url`. Any other Monitor is `404`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"responses":{"200":{"description":"The heartbeat, with its new URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/rules":{"put":{"operationId":"assignRules","tags":["Monitors"],"summary":"Assign Notification rules","description":"The Notification rules that hear about this Monitor, in place of those assigned now. An empty list assigns none.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"requestBody":{"description":"The rules, `rul_…`.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ruleIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"maxItems":100}},"required":["ruleIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"The rules assigned now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignedRules"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/validations":{"post":{"operationId":"startValidation","tags":["Validation runs"],"summary":"Start a Validation run","description":"Test settings before a create: one location probes them once. Answered at once with the run `pending`; ask for it until its `state` is not, then create with its `id` as `validationId`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"}],"requestBody":{"description":"The settings to test.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateValidation"}}}},"responses":{"202":{"description":"The run, started.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Validation"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Refused for a reason its code names.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/validations/{validationId}":{"get":{"operationId":"getValidation","tags":["Validation runs"],"summary":"A Validation run","description":"One Validation run: `pending` until a location answers, then what it found.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Validation run's identifier, `val_…`."},"required":true,"description":"The Validation run's identifier, `val_…`.","name":"validationId","in":"path"}],"responses":{"200":{"description":"The run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Validation"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/runs":{"get":{"operationId":"listRuns","tags":["Results"],"summary":"Runs","description":"The Monitor's runs, newest first, with their timings, from every location and Check unless narrowed.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":32,"description":"Only runs from this location."},"required":false,"description":"Only runs from this location.","name":"location","in":"query"},{"schema":{"type":"string","enum":["uptime","performance","certificate","domain"],"description":"Only runs of this Check."},"required":false,"description":"Only runs of this Check.","name":"checkType","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"`true` for failed runs only."},"required":false,"description":"`true` for failed runs only.","name":"failuresOnly","in":"query"}],"responses":{"200":{"description":"A page of runs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/response-times":{"get":{"operationId":"getResponseTimes","tags":["Results"],"summary":"Response times","description":"Each location's Answer time over the window, with the Regional outages and Incidents in it. A heartbeat has none.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`.","example":"mon_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"string","enum":["24h","7d","30d"],"default":"24h","description":"How far back: `24h`, `7d` or `30d`."},"required":false,"description":"How far back: `24h`, `7d` or `30d`.","name":"window","in":"query"}],"responses":{"200":{"description":"The response times.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTimes"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/checks/{checkId}/snooze":{"post":{"operationId":"snoozeCheck","tags":["Results"],"summary":"Snooze a Check","description":"Hold every message about one Check until `until`, while it runs and is judged as usual. Answers its Monitor.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Check's identifier, `chk_…`, from its Monitor's `checks`."},"required":true,"description":"The Check's identifier, `chk_…`, from its Monitor's `checks`.","name":"checkId","in":"path"}],"requestBody":{"description":"Until when, with its timezone.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"until":{"type":"string","format":"date-time"}},"required":["until"],"additionalProperties":false}}}},"responses":{"200":{"description":"The Check's Monitor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"endSnooze","tags":["Results"],"summary":"End a snooze","description":"Messages about the Check go again from now. Answers its Monitor.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Check's identifier, `chk_…`, from its Monitor's `checks`."},"required":true,"description":"The Check's identifier, `chk_…`, from its Monitor's `checks`.","name":"checkId","in":"path"}],"responses":{"200":{"description":"The Check's Monitor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/uptime":{"get":{"operationId":"getMonitorUptime","tags":["Uptime"],"summary":"A Monitor's uptime","description":"Its uptime over each window the dashboard shows: `24h`, `7d`, `30d` and `90d`. Hours You Up? could not measure are left out of the figure and counted in `notMeasuredHours`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"responses":{"200":{"description":"The four windows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorUptime"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/uptime/days":{"get":{"operationId":"getMonitorUptimeDays","tags":["Uptime"],"summary":"A Monitor's days","description":"Its last `days` days, oldest first and ending today, each cut at midnight in the Project's timezone, with the Incidents that touched it.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":90,"default":90,"description":"How many days back, today included: 90 at most."},"required":false,"description":"How many days back, today included: 90 at most.","name":"days","in":"query"}],"responses":{"200":{"description":"The days.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorUptimeDays"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/uptime":{"get":{"operationId":"getProjectUptime","tags":["Uptime"],"summary":"The Project's uptime","description":"Each Monitor's `30d` figure and its days in that window, as the Project page shows them, in the order the Monitors were made.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"}],"responses":{"200":{"description":"A page of Monitors' uptime.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUptime"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/incidents":{"get":{"operationId":"listIncidents","tags":["Incidents"],"summary":"Incidents","description":"The Project's Incidents, newest first, across its Monitors. Narrow them to one `monitor`, and to the open or the ended ones with `open`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Only this Monitor's, by its identifier, `mon_…`."},"required":false,"description":"Only this Monitor's, by its identifier, `mon_…`.","name":"monitor","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"`true` for the open ones only, `false` for the ended ones only."},"required":false,"description":"`true` for the open ones only, `false` for the ended ones only.","name":"open","in":"query"}],"responses":{"200":{"description":"A page of Incidents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/incidents/{incidentId}":{"get":{"operationId":"getIncident","tags":["Incidents"],"summary":"An Incident","description":"One Incident, with who acknowledged it and who ended it, if anybody did.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Incident's identifier, `inc_…`."},"required":true,"description":"The Incident's identifier, `inc_…`.","name":"incidentId","in":"path"}],"responses":{"200":{"description":"The Incident.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Incident"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/incidents/{incidentId}/evidence":{"get":{"operationId":"getIncidentEvidence","tags":["Incidents"],"summary":"An Incident's evidence","description":"What each location saw of one Incident: where it stopped, the run that opened it, and the other locations asked to confirm it. Its runs are kept for as many days as `keptDays` says; after that `kept` is false and only where it stopped is left.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Incident's identifier, `inc_…`."},"required":true,"description":"The Incident's identifier, `inc_…`.","name":"incidentId","in":"path"}],"responses":{"200":{"description":"The evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentEvidence"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/incidents/{incidentId}/acknowledge":{"post":{"operationId":"acknowledgeIncident","tags":["Incidents"],"summary":"Acknowledge an Incident","description":"Say someone is on it: its repeat alerts stop, and its recovery is still sent. The Incident names this API token. Safe to repeat: the first to acknowledge is the one named, and one already acknowledged or ended answers as it is.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Incident's identifier, `inc_…`."},"required":true,"description":"The Incident's identifier, `inc_…`.","name":"incidentId","in":"path"}],"responses":{"200":{"description":"The Incident, acknowledged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Incident"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/incidents/{incidentId}/resolve":{"post":{"operationId":"resolveIncident","tags":["Incidents"],"summary":"Resolve an Incident","description":"End it by hand, and judge its Check afresh: if the target is still failing, a new Incident opens. The Incident names this API token. Safe to repeat: one already ended answers as it is.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Incident's identifier, `inc_…`."},"required":true,"description":"The Incident's identifier, `inc_…`.","name":"incidentId","in":"path"}],"responses":{"200":{"description":"The Incident, ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Incident"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/incidents/{incidentId}/dismiss":{"post":{"operationId":"dismissIncident","tags":["Incidents"],"summary":"Dismiss an Incident","description":"Taking an ended Incident's card off its Monitor page is each member's own choice, and an API token has no page of its own, so this changes nothing anyone sees. It answers 204 for an Incident of the Project, and is safe to repeat.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Incident's identifier, `inc_…`."},"required":true,"description":"The Incident's identifier, `inc_…`.","name":"incidentId","in":"path"}],"responses":{"204":{"description":"Dismissed."},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/regional-outages":{"get":{"operationId":"listRegionalOutages","tags":["Incidents"],"summary":"Regional outages","description":"The Project's Regional outages, newest first: one location could not reach a target while the others could. They never count against uptime. Narrow them to one `monitor`, and to the open or the ended ones with `open`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Only this Monitor's, by its identifier, `mon_…`."},"required":false,"description":"Only this Monitor's, by its identifier, `mon_…`.","name":"monitor","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"`true` for the open ones only, `false` for the ended ones only."},"required":false,"description":"`true` for the open ones only, `false` for the ended ones only.","name":"open","in":"query"}],"responses":{"200":{"description":"A page of Regional outages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionalOutageList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/channels":{"get":{"operationId":"listChannels","tags":["Channels"],"summary":"Channels","description":"The Project's Channels, oldest first: where its Notification rules send. They are added and proven on the dashboard.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"}],"responses":{"200":{"description":"A page of Channels.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/rules":{"get":{"operationId":"listRules","tags":["Notification rules"],"summary":"Notification rules","description":"The Project's Notification rules, oldest first, each with its Channels and how many Monitors it is assigned to.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"}],"responses":{"200":{"description":"A page of rules.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createRule","tags":["Notification rules"],"summary":"Write a Notification rule","description":"A rule on the Project. It reaches no Monitor until it is assigned to one: `PUT …/monitors/{monitorId}/rules`. A Channel this Project does not have is `404`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"}],"requestBody":{"description":"The new rule.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRule"}}}},"responses":{"201":{"description":"The rule, as it was written.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rule"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Refused for a reason its code names.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/rules/{ruleId}":{"patch":{"operationId":"editRule","tags":["Notification rules"],"summary":"Change a Notification rule","description":"Change what you send; the rest stays.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The rule's identifier, `rul_…`."},"required":true,"description":"The rule's identifier, `rul_…`.","name":"ruleId","in":"path"}],"requestBody":{"description":"What to change.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditRule"}}}},"responses":{"200":{"description":"The rule, changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rule"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Refused for a reason its code names.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteRule","tags":["Notification rules"],"summary":"Delete a Notification rule","description":"It leaves every Monitor it was assigned to. What it already sent stays. The Default rule is never deleted: `409 default_rule_is_fixed`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The rule's identifier, `rul_…`."},"required":true,"description":"The rule's identifier, `rul_…`.","name":"ruleId","in":"path"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/webhooks":{"get":{"operationId":"listWebhooks","tags":["Webhooks"],"summary":"Webhooks","description":"The Monitor's Webhooks, oldest first, each with what may be seen of its URL, its events and its state. The URL and the signing secret are not shown.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"}],"responses":{"200":{"description":"A page of Webhooks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWebhook","tags":["Webhooks"],"summary":"Add a Webhook","description":"A signed `test` event goes as it is added, and `test` says what it came to: it is `active` on a `2xx` and `pending` otherwise. Only a refused address adds nothing. The signing secret is in this answer and never again.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"}],"requestBody":{"description":"The new Webhook.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhook"}}}},"responses":{"201":{"description":"The Webhook, with its signing secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewWebhook"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It conflicts with what is there now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/webhooks/{webhookId}":{"patch":{"operationId":"editWebhook","tags":["Webhooks"],"summary":"Change a Webhook","description":"Its events, the one thing that changes. A new URL is a new Webhook.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"string","description":"The Webhook's identifier, `whk_…`."},"required":true,"description":"The Webhook's identifier, `whk_…`.","name":"webhookId","in":"path"}],"requestBody":{"description":"Its events.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditWebhook"}}}},"responses":{"200":{"description":"The Webhook, changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteWebhook","tags":["Webhooks"],"summary":"Delete a Webhook","description":"It is deleted with what it still had to send.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"string","description":"The Webhook's identifier, `whk_…`."},"required":true,"description":"The Webhook's identifier, `whk_…`.","name":"webhookId","in":"path"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/deliveries":{"get":{"operationId":"listDeliveries","tags":["Deliveries"],"summary":"Deliveries","description":"The Monitor's messages, newest first, to its Channels and its Webhooks, each with what became of it. Narrow them by `to` and `event`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"The `next` of the page before. Left out, the first page."},"required":false,"description":"The `next` of the page before. Left out, the first page.","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many to answer, 50 unless asked."},"required":false,"description":"How many to answer, 50 unless asked.","name":"limit","in":"query"},{"schema":{"type":"string","enum":["channels","webhooks"],"description":"Only those to Channels, or only those to Webhooks."},"required":false,"description":"Only those to Channels, or only those to Webhooks.","name":"to","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Only those about one Incident, `inc_…`, or one Regional outage, `rgo_…`."},"required":false,"description":"Only those about one Incident, `inc_…`, or one Regional outage, `rgo_…`.","name":"event","in":"query"}],"responses":{"200":{"description":"A page of Deliveries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryList"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/monitors/{monitorId}/deliveries/{deliveryId}":{"get":{"operationId":"getDelivery","tags":["Deliveries"],"summary":"A Webhook Delivery","description":"One of the Monitor's Webhook Deliveries: the request its last attempt sent, its URL, headers and body exactly as sent, and every attempt with what came back. A Channel's Delivery is `404`.","parameters":[{"schema":{"type":"string","description":"The Project's identifier, `prj_…`.","example":"prj_01J9Z3K8X4M2N6P8Q0R2S4T6V8"},"required":true,"description":"The Project's identifier, `prj_…`.","name":"projectId","in":"path"},{"schema":{"type":"string","description":"The Monitor's identifier, `mon_…`."},"required":true,"description":"The Monitor's identifier, `mon_…`.","name":"monitorId","in":"path"},{"schema":{"type":"string","description":"The Delivery's identifier, `dlv_…`."},"required":true,"description":"The Delivery's identifier, `dlv_…`.","name":"deliveryId","in":"path"}],"responses":{"200":{"description":"The Delivery.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryDetail"}}}},"400":{"description":"The request was refused: `invalid_request` names the field at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No working API token: `unauthenticated`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"This token may not do this: `forbidden`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such thing, or not one this token reaches: `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: `rate_limited`. `Retry-After` says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{}}