{
  "openapi": "3.1.0",
  "info": {
    "title": "Uptimely API",
    "version": "0.1.0",
    "description": "The public Uptimely REST API — uptime monitoring, incidents, alerts and status pages for people and agents. Authenticate with an `uptimely_live_` API key via `Authorization: Bearer`.",
    "contact": {
      "name": "Uptimely support",
      "url": "https://getuptimely.com",
      "email": "support@devino.ca"
    }
  },
  "servers": [
    {
      "url": "https://app.getuptimely.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Monitors",
      "description": "Monitors — the probed targets (websites, APIs, pings, ports, certificates) and their current status."
    },
    {
      "name": "Incidents",
      "description": "Incidents — declared service disruptions with lifecycle states, severities and postmortems."
    },
    {
      "name": "Alerts",
      "description": "Alerts — monitor-level events with lifecycle states; creating one drives episode grouping and on-call."
    },
    {
      "name": "Scheduled Maintenances",
      "description": "Scheduled maintenance windows and their current state."
    },
    {
      "name": "Status Pages",
      "description": "The project's public status pages."
    },
    {
      "name": "On-call",
      "description": "Live on-call rosters — who is on call right now."
    },
    {
      "name": "Usage",
      "description": "API allowances and consumption — plan quota and per-key burst limits."
    },
    {
      "name": "Webhooks",
      "description": "Webhooks"
    }
  ],
  "paths": {
    "/v1/monitors": {
      "get": {
        "operationId": "listMonitors",
        "summary": "List monitors",
        "description": "Lists the project's monitors with their current status, name-ascending, cursor-paginated. The project is the one the API key is bound to — no project parameter exists.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of items to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of items to return (1-100)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.",
              "type": "string"
            },
            "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of monitors.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createMonitor",
        "summary": "Create a monitor",
        "description": "Creates a monitor through the same path as the dashboard wizard: product-default criteria (going offline auto-declares an incident that auto-resolves on recovery), initial Operational state, plan limits enforced. Website/API/External Status Page take `url`; Ping/IP/Port/DNS/SSL Certificate/Domain take `host`; Manual and Incoming Request/Email take no target. Data Check takes `data_check` (upAPI operation, write-only key, change paths) and defaults to an hourly cadence because every check is a billed upAPI call. Synthetic/script, SNMP and Server monitors must be created in the dashboard. API monitors also take `request_type`, `request_headers`, `request_body` and `do_not_follow_redirects`, and any monitor takes `criteria` instead of the product defaults. To assert on a redirect, create the monitor as type API with `do_not_follow_redirects: true` and a `criteria` list. This `criteria` expects a 301 whose Location is https://stealthly.io/: [{\"name\":\"Redirect is missing or wrong\",\"filterCondition\":\"Any\",\"monitorStatusName\":\"Offline\",\"createIncidents\":true,\"incidents\":[{\"title\":\"Canonical redirect is not 301 to the right URL\"}],\"filters\":[{\"checkOn\":\"Is Online\",\"filterType\":\"False\"},{\"checkOn\":\"Response Status Code\",\"filterType\":\"Not Equal To\",\"value\":301},{\"checkOn\":\"Response Header\",\"filterType\":\"Not Contains\",\"value\":\"location: https://stealthly.io/\"}]},{\"name\":\"Redirect is correct\",\"filterCondition\":\"All\",\"monitorStatusName\":\"Operational\",\"filters\":[{\"checkOn\":\"Response Status Code\",\"filterType\":\"Equal To\",\"value\":301},{\"checkOn\":\"Response Header\",\"filterType\":\"Contains\",\"value\":\"location: https://stealthly.io/\"}]}] Criteria are an ordered, first-match-wins list; a check that matches none falls back to Operational, so list the failing case first. Send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "description": "Human-readable monitor name."
                  },
                  "monitor_type": {
                    "type": "string",
                    "description": "One of: \"Website\", \"API\", \"External Status Page\", \"Ping\", \"IP\", \"Port\", \"DNS\", \"SSL Certificate\", \"Domain\", \"Manual\", \"Incoming Request\", \"Incoming Email\", \"Data Check\".",
                    "example": "Website"
                  },
                  "description": {
                    "description": "What this monitor watches.",
                    "type": "string",
                    "maxLength": 1000
                  },
                  "url": {
                    "description": "Target URL (required for Website, API, External Status Page).",
                    "type": "string",
                    "format": "uri"
                  },
                  "host": {
                    "description": "Target hostname or IP (required for Ping, IP, Port, DNS, SSL Certificate, Domain).",
                    "type": "string"
                  },
                  "port": {
                    "description": "TCP port (Port monitors).",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 65535
                  },
                  "dns_record_type": {
                    "description": "DNS record type for DNS monitors (default A).",
                    "type": "string"
                  },
                  "monitoring_interval": {
                    "description": "Cron-shaped check cadence (default \"*/5 * * * *\" = every 5 minutes; \"0 * * * *\" = hourly for Data Check monitors).",
                    "type": "string"
                  },
                  "failure_threshold": {
                    "description": "Consecutive failed checks required before this monitor declares an incident or alert (1-10, default 2). Set 1 to alert on the first failed check.",
                    "example": 2,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "request_type": {
                    "description": "API monitors only: the HTTP method each check sends (default GET).",
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "DELETE",
                      "PATCH",
                      "HEAD"
                    ]
                  },
                  "request_headers": {
                    "description": "API monitors only: headers each check sends, name to value (at most 30).",
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 4000
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "request_body": {
                    "description": "API monitors only: the body each check sends with the method.",
                    "type": "string",
                    "maxLength": 20000
                  },
                  "do_not_follow_redirects": {
                    "description": "API monitors only: true makes each check see the redirect response itself (301/302 and its Location header) instead of following it. Needed to assert on a redirect with `criteria`.",
                    "type": "boolean"
                  },
                  "criteria": {
                    "$ref": "#/components/schemas/MonitorCriteriaInput"
                  },
                  "data_check": {
                    "description": "Required for, and only accepted on, \"Data Check\" monitors. Names the upAPI operation to call, the key to call it with, and which part of the response counts as a change.",
                    "$ref": "#/components/schemas/DataCheckInput"
                  }
                },
                "required": [
                  "name",
                  "monitor_type"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Monitor created.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorCreated"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}": {
      "get": {
        "operationId": "getMonitor",
        "summary": "Get a monitor",
        "description": "Fetches one monitor with its current status.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "monitor_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Monitor id."
            },
            "required": true,
            "description": "Monitor id."
          }
        ],
        "responses": {
          "200": {
            "description": "The monitor.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Monitor"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateMonitor",
        "summary": "Update a monitor",
        "description": "Changes one or more of a monitor's editable fields through the same domain path as the dashboard's own edit forms. Every field is optional; omitted fields are left untouched, and `description` accepts null to clear it. `url` applies to Website/API/External Status Page monitors and `host` to Ping/IP/Port/DNS/SSL Certificate/Domain monitors — the one the monitor's type does not use is refused rather than silently ignored. `request_timeout_seconds` is a Website/API setting (null restores the 30-second default), and `failure_threshold` is refused for Manual, Incoming Request and Incoming Email monitors. `heartbeat_interval_minutes` and `heartbeat_grace_minutes` set the dead-man's-switch schedule of an Incoming Request monitor — how long silence may last before it is declared down — and are refused for every other type. `data_check.api_key` replaces a Data Check's upAPI key (write-only: it is stored with the monitor and never returned by any endpoint) and is refused for every other monitor type; a Data Check's operation and paths are not editable here. At least one field must be present. API monitors also take `request_type`, `request_headers`, `request_body` and `do_not_follow_redirects` (null clears the last three) and are refused for every other type; any monitor takes `criteria`, which replaces ALL of its criteria in the same write. To assert on a redirect, create the monitor as type API with `do_not_follow_redirects: true` and a `criteria` list. This `criteria` expects a 301 whose Location is https://stealthly.io/: [{\"name\":\"Redirect is missing or wrong\",\"filterCondition\":\"Any\",\"monitorStatusName\":\"Offline\",\"createIncidents\":true,\"incidents\":[{\"title\":\"Canonical redirect is not 301 to the right URL\"}],\"filters\":[{\"checkOn\":\"Is Online\",\"filterType\":\"False\"},{\"checkOn\":\"Response Status Code\",\"filterType\":\"Not Equal To\",\"value\":301},{\"checkOn\":\"Response Header\",\"filterType\":\"Not Contains\",\"value\":\"location: https://stealthly.io/\"}]},{\"name\":\"Redirect is correct\",\"filterCondition\":\"All\",\"monitorStatusName\":\"Operational\",\"filters\":[{\"checkOn\":\"Response Status Code\",\"filterType\":\"Equal To\",\"value\":301},{\"checkOn\":\"Response Header\",\"filterType\":\"Contains\",\"value\":\"location: https://stealthly.io/\"}]}] Criteria are an ordered, first-match-wins list; a check that matches none falls back to Operational, so list the failing case first.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "monitor_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Monitor id."
            },
            "required": true,
            "description": "Monitor id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "New display name.",
                    "example": "Marketing site",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "description": {
                    "description": "New description; null clears it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "description": "New target URL (Website, API, External Status Page monitors).",
                    "example": "https://example.com/health",
                    "type": "string",
                    "format": "uri"
                  },
                  "host": {
                    "description": "New target hostname or IP (Ping, IP, Port, DNS, SSL Certificate, Domain monitors).",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "monitoring_interval": {
                    "description": "Cron-shaped check cadence, e.g. \"*/5 * * * *\".",
                    "example": "*/5 * * * *",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "request_timeout_seconds": {
                    "description": "Per-request probe timeout in seconds (1-60, Website and API monitors). Null restores the 30-second default.",
                    "example": 30,
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 60
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "failure_threshold": {
                    "description": "Consecutive failed checks required before this monitor declares an incident or alert (1-10). Refused for Manual, Incoming Request and Incoming Email monitors, which have no run of failed checks to count.",
                    "example": 2,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "heartbeat_interval_minutes": {
                    "description": "How often the job watching this monitor promises to ping it, in minutes (1-10080). Incoming Request monitors only — refused for every other type.",
                    "example": 60,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10080
                  },
                  "heartbeat_grace_minutes": {
                    "description": "Extra minutes a late ping is allowed before the monitor is declared down (0-10080). 0 declares the moment a ping is late. Incoming Request monitors only.",
                    "example": 15,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10080
                  },
                  "request_type": {
                    "description": "API monitors only: the HTTP method each check sends.",
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "DELETE",
                      "PATCH",
                      "HEAD"
                    ]
                  },
                  "request_headers": {
                    "description": "API monitors only: headers each check sends, name to value (at most 30). Null removes them.",
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 4000
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "request_body": {
                    "description": "API monitors only: the body each check sends. Null removes it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 20000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "do_not_follow_redirects": {
                    "description": "API monitors only: true makes each check see the redirect response itself (301/302 and its Location header) instead of following it; false or null goes back to following redirects.",
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "criteria": {
                    "$ref": "#/components/schemas/MonitorCriteriaInput"
                  },
                  "data_check": {
                    "$ref": "#/components/schemas/DataCheckKeyReplacement"
                  }
                },
                "description": "At least one field is required — an empty object is refused."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated monitor.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Monitor"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteMonitor",
        "summary": "Delete a monitor",
        "description": "Removes the monitor exactly as the dashboard does: probing stops, it disappears from lists and status pages, and any alert it auto-raised is resolved so nothing is left perpetually active. Recorded checks, incidents and timelines stay in place as history. To silence a monitor temporarily without losing its uptime record, mute it instead.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "monitor_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Monitor id."
            },
            "required": true,
            "description": "Monitor id."
          }
        ],
        "responses": {
          "200": {
            "description": "Monitor deleted.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorDeleted"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/status-history": {
      "get": {
        "operationId": "getMonitorStatusHistory",
        "summary": "Get a monitor's status history",
        "description": "Returns the monitor's status-timeline segments over a look-back window (default 30 days, max 90), newest first — for \"when was it last down\" questions.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "schema": {
              "default": 30,
              "description": "Look-back window in days (1-90).",
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            },
            "description": "Look-back window in days (1-90)."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "description": "Maximum number of segments to return (1-200).",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Maximum number of segments to return (1-200)."
          },
          {
            "in": "path",
            "name": "monitor_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Monitor id."
            },
            "required": true,
            "description": "Monitor id."
          }
        ],
        "responses": {
          "200": {
            "description": "The monitor's status history.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorStatusHistory"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/mute": {
      "post": {
        "operationId": "muteMonitorAlerts",
        "summary": "Mute a monitor's alerting",
        "description": "Stops this monitor declaring incidents and alerts until the given time. Probing is UNAFFECTED: checks keep running and the monitor's status keeps changing, so uptime and status pages stay truthful — only paging stops. Send `alerts_muted_until` for an explicit deadline, or `duration_minutes` for a window from now. Re-issuing replaces the current mute.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "monitor_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Monitor id."
            },
            "required": true,
            "description": "Monitor id."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "alerts_muted_until": {
                    "description": "Absolute end of the mute window, ISO-8601 UTC. Must be in the future.",
                    "example": "2026-08-20T15:30:00.000Z",
                    "type": "string",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                    "format": "date-time"
                  },
                  "duration_minutes": {
                    "description": "Mute for this many minutes from now (1 minute to 30 days). Ignored when `alerts_muted_until` is given.",
                    "example": 30,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 43200
                  }
                },
                "description": "Exactly one of `alerts_muted_until` or `duration_minutes` is required."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The monitor's alerting is muted.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorAlertMute"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unmuteMonitorAlerts",
        "summary": "Unmute a monitor's alerting",
        "description": "Lifts any mute on this monitor immediately, so it declares incidents and alerts again. Safe to call on a monitor that is not muted — the response reports the resulting state either way.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "monitor_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Monitor id."
            },
            "required": true,
            "description": "Monitor id."
          }
        ],
        "responses": {
          "200": {
            "description": "The monitor's alerting is not muted.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorAlertMute"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors/export": {
      "get": {
        "operationId": "exportMonitorConfig",
        "summary": "Export the project's monitors as config",
        "description": "Returns every live monitor in the project as a versioned, portable config document — name, type, target, cadence, timeout, failure threshold, heartbeat schedule and label names. Ids, slugs, incoming-request secrets, current status and incident history are deliberately absent: they mean nothing outside this project, and a secret does not belong in an exported file. The document is deterministic (entries sorted by name, no timestamp) so it can be committed to a repository and diffed. Post it back to `/v1/monitors/import`, here or in another project.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "responses": {
          "200": {
            "description": "The project's monitors as config.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorConfigOutput"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors/import": {
      "post": {
        "operationId": "importMonitorConfig",
        "summary": "Import monitors from a config document",
        "description": "Creates monitors from a config document produced by `GET /v1/monitors/export` (or by a converter from another provider's export). The request body IS that document. Every monitor is created through the same path as the dashboard's create wizard, with the same product-default criteria and the same plan limits. An entry whose name and type already belong to a live monitor is SKIPPED, so re-posting the same document is safe and creates nothing. Send `?dry_run=true` first to receive the same per-entry plan without writing anything. If the document would take the project past its plan's monitor limit, nothing is created and the response says so — a partial import that silently stops halfway is worse than a refusal.",
        "tags": [
          "Monitors"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "monitors:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "dry_run",
            "schema": {
              "default": "false",
              "description": "When `true`, nothing is written and the response is the plan an apply would follow. Defaults to `false` — a POST without it imports.",
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "description": "When `true`, nothing is written and the response is the plan an apply would follow. Defaults to `false` — a POST without it imports."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorConfig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import plan, or the result of applying it.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorConfigImportResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents": {
      "get": {
        "operationId": "listIncidents",
        "summary": "List incidents",
        "description": "Lists the project's incidents, newest first, cursor-paginated. Filter to unresolved incidents with `active_only=true`.",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "incidents:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of items to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of items to return (1-100)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.",
              "type": "string"
            },
            "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`."
          },
          {
            "in": "query",
            "name": "active_only",
            "schema": {
              "default": "false",
              "description": "When `true`, only incidents whose state is not resolved.",
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "description": "When `true`, only incidents whose state is not resolved."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of incidents.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "declareIncident",
        "summary": "Declare an incident",
        "description": "Declares a new incident: creates the incident, its initial state timeline, feed entry and the outbox event that drives subscriber/on-call/workspace notifications. Send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "incidents:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "description": "Short summary of the incident.",
                    "example": "API latency elevated in eu-west"
                  },
                  "description": {
                    "description": "Detailed description.",
                    "type": "string"
                  },
                  "incident_severity_id": {
                    "description": "Severity id. Omit to use the project default.",
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "monitor_ids": {
                    "description": "Ids of monitors affected by this incident.",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  }
                },
                "required": [
                  "title"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Incident declared.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDeclared"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{incident_id}": {
      "get": {
        "operationId": "getIncident",
        "summary": "Get an incident",
        "description": "Fetches one incident with its attached monitors and the 20 newest state transitions.",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "incidents:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "incident_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Incident id."
            },
            "required": true,
            "description": "Incident id."
          }
        ],
        "responses": {
          "200": {
            "description": "The incident.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{incident_id}/state-changes": {
      "post": {
        "operationId": "changeIncidentState",
        "summary": "Change an incident's state",
        "description": "Moves the incident to another lifecycle state (acknowledge, resolve, …). Re-issuing the same transition answers `changed: false`. Target state ids come from the project's configured incident states.",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "incidents:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "incident_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Incident id."
            },
            "required": true,
            "description": "Incident id."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "incident_state_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Id of the target incident state."
                  },
                  "root_cause": {
                    "description": "Root-cause text, typically set when resolving.",
                    "type": "string"
                  }
                },
                "required": [
                  "incident_state_id"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Transition processed.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StateChangeResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`. `resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{incident_id}/postmortem": {
      "put": {
        "operationId": "saveIncidentPostmortem",
        "summary": "Save an incident's postmortem",
        "description": "Saves (or clears, with an empty string) the incident's postmortem note. Omitting the publish settings keeps the incident's current ones, so a plain save never publishes by accident. PUT is naturally idempotent — no Idempotency-Key needed.",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "incidents:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "incident_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Incident id."
            },
            "required": true,
            "description": "Incident id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "postmortem_note": {
                    "type": "string",
                    "description": "Postmortem note in Markdown; empty string clears it."
                  },
                  "show_on_status_page": {
                    "description": "Show the postmortem on the public status page. Omit to keep the current setting.",
                    "type": "boolean"
                  },
                  "notify_subscribers_on_publish": {
                    "description": "Notify status-page subscribers when published. Omit to keep the current setting.",
                    "type": "boolean"
                  },
                  "posted_at": {
                    "description": "ISO-8601 publish date. Omit to keep the current date.",
                    "type": "string",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                    "format": "date-time"
                  }
                },
                "required": [
                  "postmortem_note"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Postmortem saved.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostmortemSaved"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`. `resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/alerts": {
      "get": {
        "operationId": "listAlerts",
        "summary": "List alerts",
        "description": "Lists the project's alerts, newest first, cursor-paginated. Filter to unresolved alerts with `active_only=true`.",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "alerts:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of items to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of items to return (1-100)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.",
              "type": "string"
            },
            "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`."
          },
          {
            "in": "query",
            "name": "active_only",
            "schema": {
              "default": "false",
              "description": "When `true`, only alerts whose state is not resolved.",
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "description": "When `true`, only alerts whose state is not resolved."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of alerts.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createAlert",
        "summary": "Create an alert",
        "description": "Creates an alert tied to a monitor and one of the project's monitor statuses — the same path a probe-detected status change takes, so episode grouping and on-call execution fire via outbox events. Send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "alerts:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monitor_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Id of the monitor the alert is about."
                  },
                  "monitor_status_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Id of the monitor status that caused this alert."
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "description": "Short summary of the alert."
                  }
                },
                "required": [
                  "monitor_id",
                  "monitor_status_id",
                  "title"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Alert created.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertCreated"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "`resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/alerts/{alert_id}/state-changes": {
      "post": {
        "operationId": "changeAlertState",
        "summary": "Change an alert's state",
        "description": "Moves the alert to another lifecycle state (acknowledge, resolve, …). Re-issuing the same transition answers `changed: false`. Target state ids come from the project's configured alert states.",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "alerts:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "alert_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Alert id."
            },
            "required": true,
            "description": "Alert id."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "alert_state_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Id of the target alert state."
                  }
                },
                "required": [
                  "alert_state_id"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Transition processed.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StateChangeResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`. `resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/scheduled-maintenances": {
      "get": {
        "operationId": "listScheduledMaintenances",
        "summary": "List scheduled maintenances",
        "description": "Lists the project's scheduled maintenance windows, newest window first, cursor-paginated.",
        "tags": [
          "Scheduled Maintenances"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "maintenance:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of items to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of items to return (1-100)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.",
              "type": "string"
            },
            "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of maintenance windows.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMaintenanceList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/status-pages": {
      "get": {
        "operationId": "listStatusPages",
        "summary": "List status pages",
        "description": "Lists the project's status pages, name-ascending, cursor-paginated.",
        "tags": [
          "Status Pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "status-pages:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of items to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of items to return (1-100)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.",
              "type": "string"
            },
            "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of status pages.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createStatusPage",
        "summary": "Create a status page",
        "description": "Creates a status page through the same path as the dashboard, plan limits included (the Free plan allows one). The `slug` is the public address at /status/<slug> and is unique across ALL of Uptimely, not just your project — omit it and one is derived from the name; a taken slug answers 400 `validation_failed` with a `/slug` pointer so you can pick another. Send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Status Pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "status-pages:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "Status page name.",
                    "example": "Acme Status"
                  },
                  "description": {
                    "description": "Optional description shown in the dashboard.",
                    "type": "string",
                    "maxLength": 500
                  },
                  "slug": {
                    "description": "Public address at /status/<slug> — lowercase letters, digits and hyphens. Derived from the name when omitted.",
                    "example": "acme-status",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-z0-9-]+$"
                  },
                  "is_public": {
                    "description": "Whether the page is reachable without signing in. Defaults to false — a page you did not explicitly publish is never public.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Status page created.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPage"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/status-pages/{status_page_id}": {
      "patch": {
        "operationId": "updateStatusPage",
        "summary": "Update a status page",
        "description": "Changes a status page's name, description or visibility. Every field is optional; omitted fields are left untouched and `description` accepts null to clear it. At least one field must be present. The slug is NOT editable here — it is the page's published address, and changing it would break every link and bookmark pointing at it.",
        "tags": [
          "Status Pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "status-pages:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "status_page_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Status page id."
            },
            "required": true,
            "description": "Status page id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "New status page name.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "description": {
                    "description": "New description; null clears it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "is_public": {
                    "description": "Whether the page is reachable without signing in.",
                    "type": "boolean"
                  }
                },
                "description": "At least one field is required — an empty object is refused."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated status page.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPage"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteStatusPage",
        "summary": "Delete a status page",
        "description": "Removes the status page exactly as the dashboard does: it stops serving publicly and its custom domains are disconnected, so those hostnames are free to be connected to another page. Subscribers and announcements recorded against it stay as history.",
        "tags": [
          "Status Pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "status-pages:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "status_page_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Status page id."
            },
            "required": true,
            "description": "Status page id."
          }
        ],
        "responses": {
          "200": {
            "description": "Status page deleted.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageDeleted"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/status-pages/{status_page_id}/resources": {
      "get": {
        "operationId": "listStatusPageResources",
        "summary": "List a status page's resources",
        "description": "The monitors this status page shows, in display order — including the resource ids you detach with. Monitor-GROUP rows created in the dashboard are not listed here; this surface manages monitor rows only.",
        "tags": [
          "Status Pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "status-pages:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of items to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of items to return (1-100)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.",
              "type": "string"
            },
            "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`."
          },
          {
            "in": "path",
            "name": "status_page_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Status page id."
            },
            "required": true,
            "description": "Status page id."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of resources.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageResourceList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "attachStatusPageResource",
        "summary": "Show a monitor on a status page",
        "description": "Adds a monitor to the end of the status page's list, the same way the dashboard's Resources tab does. The monitor must belong to the same project. Attaching a monitor the page already shows answers 400 `validation_failed` rather than creating a duplicate row. Send an `Idempotency-Key` header to make retries safe.",
        "tags": [
          "Status Pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "status-pages:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "status_page_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Status page id."
            },
            "required": true,
            "description": "Status page id."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monitor_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The monitor to show."
                  },
                  "display_name": {
                    "description": "Name shown to visitors. Defaults to the monitor's own name.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "display_description": {
                    "description": "Optional line shown under the display name.",
                    "type": "string",
                    "maxLength": 500
                  },
                  "show_uptime_percent": {
                    "description": "Show the uptime percentage for this row. Defaults to false, matching the dashboard.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "monitor_id"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The monitor is now on the page.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageResource"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/status-pages/{status_page_id}/resources/{resource_id}": {
      "delete": {
        "operationId": "detachStatusPageResource",
        "summary": "Stop showing a monitor on a status page",
        "description": "Removes the row from the page. The monitor itself is untouched — it keeps probing and keeps its history.",
        "tags": [
          "Status Pages"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "status-pages:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "status_page_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Status page id."
            },
            "required": true,
            "description": "Status page id."
          },
          {
            "in": "path",
            "name": "resource_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Resource id."
            },
            "required": true,
            "description": "Resource id."
          }
        ],
        "responses": {
          "200": {
            "description": "Resource removed.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageResourceDetached"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/on-call/current": {
      "get": {
        "operationId": "getOnCallCurrent",
        "summary": "Who is on call now",
        "description": "Returns the live-computed current and next roster user for every on-call schedule in the project.",
        "tags": [
          "On-call"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "on-call:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "responses": {
          "200": {
            "description": "Live on-call rosters.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallCurrent"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "getUsage",
        "summary": "Get API usage",
        "description": "Returns the project's plan, monthly API-request consumption and per-key burst allowance. This endpoint never counts against the monthly quota, so it stays readable when the quota is exhausted.",
        "tags": [
          "Usage"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "project:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "responses": {
          "200": {
            "description": "Current usage.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-endpoints": {
      "get": {
        "operationId": "listWebhookEndpoints",
        "summary": "List webhook endpoints",
        "description": "Lists the project's outbound webhook endpoints, newest first. Signing secrets are never included — only a `secret_hint`.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "webhooks:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of items to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of items to return (1-100)."
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.",
              "type": "string"
            },
            "description": "Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of webhook endpoints.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createWebhookEndpoint",
        "summary": "Create a webhook endpoint",
        "description": "Registers an https:// endpoint to receive signed event deliveries (Standard Webhooks). The response carries the signing secret ONCE. URLs must be https on port 443 without embedded credentials, and every delivery additionally re-resolves DNS and refuses private, loopback, link-local and cloud-metadata addresses.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "webhooks:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri",
                    "description": "The https:// URL to POST deliveries to.",
                    "example": "https://hooks.example.com/uptimely"
                  },
                  "event_types": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "monitor.status_changed",
                        "incident.declared",
                        "incident.state_changed",
                        "alert.created",
                        "alert.state_changed"
                      ]
                    },
                    "description": "Event types this endpoint receives. At least one is required; unknown types are rejected.",
                    "example": [
                      "monitor.status_changed",
                      "incident.declared"
                    ]
                  },
                  "description": {
                    "description": "Optional human label shown in the dashboard.",
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "url",
                  "event_types"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Endpoint created; the secret is shown once.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointCreated"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-endpoints/{webhook_endpoint_id}": {
      "get": {
        "operationId": "getWebhookEndpoint",
        "summary": "Get a webhook endpoint",
        "description": "Fetches one webhook endpoint by id.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "webhooks:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "webhook_endpoint_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Id of the webhook endpoint."
            },
            "required": true,
            "description": "Id of the webhook endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "The webhook endpoint.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`. `resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhookEndpoint",
        "summary": "Delete a webhook endpoint",
        "description": "Removes the endpoint. Deliveries already recorded stay in the ledger as an audit trail; nothing further is sent.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "webhooks:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "webhook_endpoint_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Id of the webhook endpoint."
            },
            "required": true,
            "description": "Id of the webhook endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Endpoint removed.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointDeleted"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`. `resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secret": {
      "post": {
        "operationId": "rotateWebhookEndpointSecret",
        "summary": "Rotate a webhook signing secret",
        "description": "Mints a new signing secret and keeps the previous one valid for 24 hours, during which every delivery is signed with BOTH. Roll your verifier inside that window and no event is lost.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "webhooks:write"
        ],
        "x-entitlement": "public_api_write",
        "x-idempotent": true,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "path",
            "name": "webhook_endpoint_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Id of the webhook endpoint."
            },
            "required": true,
            "description": "Id of the webhook endpoint."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Optional client-generated key (1-255 visible ASCII characters; a UUID works) making this POST safely retryable. Retrying with the SAME key and byte-identical body within 24h replays the stored first response. The same key with a different body answers 422 `idempotency_key_reused`; a retry racing the first execution answers 409 `idempotency_in_progress`. Omitting the header executes normally with no idempotency guarantee."
          }
        ],
        "responses": {
          "200": {
            "description": "Secret rotated; the new one is shown once.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                "schema": {
                  "description": "`true` when this response is the stored first response replayed for a repeated Idempotency-Key (nothing re-executed).",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecretRotated"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`. `resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still executing — `idempotency_in_progress`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Idempotency-Key reused with a different request body — `idempotency_key_reused`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-endpoints/{webhook_endpoint_id}/deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "summary": "List recent deliveries",
        "description": "The endpoint's most recent delivery attempt-chains, newest first — what was sent, what your server answered, and why anything failed.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-scopes": [
          "webhooks:read"
        ],
        "x-entitlement": "public_api_read",
        "x-idempotent": false,
        "x-meter": {
          "metric": "API_CALLS",
          "cost": 1
        },
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "description": "Maximum number of deliveries to return (1-100).",
              "example": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of deliveries to return (1-100)."
          },
          {
            "in": "path",
            "name": "webhook_endpoint_id",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Id of the webhook endpoint."
            },
            "required": true,
            "description": "Id of the webhook endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Recent deliveries.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryList"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request — `validation_failed` (see `errors`).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated but denied — `insufficient_scope`, `feature_not_enabled` or `unsupported_credential_type`.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "No such resource in this project — `resource_not_found`. `resource_not_found`: Resource not found.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Over a limit — `rate_limited` (per-key burst, or the lower per-key ceiling that list/history/export endpoints share; retry after `Retry-After`) or `quota_exhausted` (monthly plan allowance; resets at month start).",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              },
              "RateLimit-Policy": {
                "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                "schema": {
                  "description": "IETF draft-11 quota policies, e.g. `\"per-key-minute\";q=300;w=60, \"api-calls-period\";q=100000;w=2678400`.",
                  "type": "string"
                }
              },
              "RateLimit": {
                "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                "schema": {
                  "description": "IETF draft-11 current-window state of the primary policy: remaining requests (`r`) and seconds to reset (`t`).",
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Primary-window request allowance.",
                "schema": {
                  "description": "Primary-window request allowance.",
                  "type": "string"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests remaining in the primary window.",
                "schema": {
                  "description": "Requests remaining in the primary window.",
                  "type": "string"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the primary window resets.",
                "schema": {
                  "description": "Unix epoch seconds when the primary window resets.",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the exceeded window resets.",
                "schema": {
                  "description": "Seconds until the exceeded window resets.",
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error — `internal_error`; quote `request_id` when reporting.",
            "headers": {
              "x-request-id": {
                "required": true,
                "description": "Unique id for this request — present on EVERY response; quote it in support requests.",
                "schema": {
                  "type": "string",
                  "description": "Unique id for this request — present on EVERY response; quote it in support requests."
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MonitorCriteriaInput": {
        "minItems": 1,
        "maxItems": 20,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/MonitorCriteriaInstance"
        },
        "description": "What decides the monitor's status. An ordered list; the FIRST criteria that matches wins, and a check that matches none falls back to Operational, so list the failing case first. Response Header is searched as lower-case name: value lines and Contains is a substring match. Replaces ALL of the monitor's criteria. Worked example, expect a 301 whose Location is https://stealthly.io/ (an API monitor with do_not_follow_redirects true): see the example.",
        "example": [
          {
            "name": "Redirect is missing or wrong",
            "filterCondition": "Any",
            "monitorStatusName": "Offline",
            "createIncidents": true,
            "incidents": [
              {
                "title": "Canonical redirect is not 301 to the right URL"
              }
            ],
            "filters": [
              {
                "checkOn": "Is Online",
                "filterType": "False"
              },
              {
                "checkOn": "Response Status Code",
                "filterType": "Not Equal To",
                "value": 301
              },
              {
                "checkOn": "Response Header",
                "filterType": "Not Contains",
                "value": "location: https://stealthly.io/"
              }
            ]
          },
          {
            "name": "Redirect is correct",
            "filterCondition": "All",
            "monitorStatusName": "Operational",
            "filters": [
              {
                "checkOn": "Response Status Code",
                "filterType": "Equal To",
                "value": 301
              },
              {
                "checkOn": "Response Header",
                "filterType": "Contains",
                "value": "location: https://stealthly.io/"
              }
            ]
          }
        ]
      },
      "MonitorCriteriaInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "name": {
            "type": "string",
            "maxLength": 500,
            "description": "Name of this criteria, shown in the dashboard editor.",
            "example": "Redirect is correct"
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          },
          "filterCondition": {
            "description": "\"All\": every filter must match. \"Any\" (default): one matching filter is enough.",
            "type": "string",
            "enum": [
              "All",
              "Any"
            ]
          },
          "filters": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorCriteriaFilter"
            },
            "description": "At least one filter."
          },
          "monitorStatusId": {
            "description": "Status to set when this criteria matches. Send this or monitorStatusName (required unless changeMonitorStatus is false).",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "monitorStatusName": {
            "description": "The status by name instead of id, e.g. \"Operational\" or \"Offline\". Resolved to the project's status id before saving.",
            "example": "Operational",
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "changeMonitorStatus": {
            "description": "Default true. False keeps the current status when matched.",
            "type": "boolean"
          },
          "createIncidents": {
            "type": "boolean"
          },
          "incidents": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorCriteriaIncident"
            }
          },
          "createAlerts": {
            "type": "boolean"
          },
          "alerts": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorCriteriaAlert"
            }
          },
          "isEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "filters"
        ],
        "additionalProperties": false
      },
      "MonitorCriteriaFilter": {
        "type": "object",
        "properties": {
          "checkOn": {
            "type": "string",
            "enum": [
              "Is Online",
              "Is Request Timeout",
              "Response Time (in ms)",
              "Response Status Code",
              "Response Body",
              "Response Header",
              "Response Header Value",
              "Expires In Hours",
              "Expires In Days",
              "Is Expired Certificate",
              "Is Self Signed Certificate",
              "Is Valid Certificate",
              "Is Not A Valid Certificate",
              "Error",
              "Result Value",
              "Execution Time (in ms)",
              "Disk Usage (in %)",
              "CPU Usage (in %)",
              "Memory Usage (in %)",
              "Load Average (1 minute)",
              "Load Average (5 minute)",
              "Load Average (15 minute)",
              "Swap Usage (in %)",
              "CPU IO Wait (in %)",
              "Server Process Name",
              "Server Process Command",
              "Server Process PID"
            ],
            "description": "What to read from the check, e.g. Response Status Code, Response Header, Is Online. The dashboard editor's list for the monitor type applies.",
            "example": "Response Status Code"
          },
          "filterType": {
            "type": "string",
            "enum": [
              "Equal To",
              "Not Equal To",
              "Greater Than",
              "Less Than",
              "Greater Than Or Equal To",
              "Less Than Or Equal To",
              "Contains",
              "Not Contains",
              "Starts With",
              "Ends With",
              "Is Empty",
              "Is Not Empty",
              "True",
              "False",
              "Is Executing",
              "Is Not Executing"
            ],
            "description": "The comparison, e.g. Equal To, Contains, Not Contains, True. The dashboard editor's list for the check-on applies.",
            "example": "Equal To"
          },
          "value": {
            "description": "What to compare against. Omit for True, False, Is Empty and Is Not Empty.",
            "example": 301,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "evaluateOverTime": {
            "description": "Judge a window of recent checks instead of this one (Is Online, Response Time and Response Status Code only).",
            "type": "boolean"
          },
          "evaluateOverTimeOptions": {
            "type": "object",
            "properties": {
              "timeValueInMinutes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "evaluateOverTimeType": {
                "type": "string",
                "enum": [
                  "Average",
                  "Sum",
                  "Maximum Value",
                  "Minimum Value",
                  "All Values",
                  "Any Value"
                ]
              },
              "onNoDataPolicy": {
                "type": "string",
                "enum": [
                  "Ignore",
                  "Treat As Zero",
                  "Trigger"
                ]
              }
            },
            "additionalProperties": false
          },
          "serverMonitorOptions": {
            "type": "object",
            "properties": {
              "diskPath": {
                "type": "string",
                "maxLength": 500
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "checkOn",
          "filterType"
        ],
        "additionalProperties": false
      },
      "MonitorCriteriaIncident": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "title": {
            "type": "string",
            "maxLength": 500,
            "description": "Title of the incident declared when this criteria matches."
          },
          "description": {
            "type": "string",
            "maxLength": 5000
          },
          "incidentSeverityId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "autoResolveIncident": {
            "description": "Resolve the incident when the monitor recovers. Default true.",
            "type": "boolean"
          },
          "onCallPolicyIds": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "MonitorCriteriaAlert": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "title": {
            "type": "string",
            "maxLength": 500,
            "description": "Title of the alert raised when this criteria matches."
          },
          "description": {
            "type": "string",
            "maxLength": 5000
          },
          "alertSeverityId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "autoResolveAlert": {
            "description": "Resolve the alert when the monitor recovers. Default true.",
            "type": "boolean"
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "DataCheckInput": {
        "type": "object",
        "properties": {
          "op_slug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$",
            "description": "Lowercase upAPI operation slug, such as `google-maps-search`. The request URL is derived from it.",
            "example": "google-maps-search"
          },
          "api_key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "description": "The upAPI API key each check is billed to. Write-only: stored with the monitor and never returned by any endpoint. Unencrypted at rest while the monitor exists.",
            "writeOnly": true
          },
          "request_body": {
            "description": "JSON object POSTed to the operation on every check.",
            "example": {
              "query": "coffee"
            },
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "select": {
            "description": "Dot-separated paths kept before comparing (`*` matches any array index or key). Empty compares the whole response.",
            "example": [
              "results.*.name"
            ],
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "ignore": {
            "description": "Paths stripped before comparing, for fields that change on every call.",
            "example": [
              "results.*.reviewCount"
            ],
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "mode": {
            "description": "`any-change` (default) reports any difference; `added-removed` reports only items that appeared or disappeared from arrays.",
            "type": "string",
            "enum": [
              "any-change",
              "added-removed"
            ]
          }
        },
        "required": [
          "op_slug",
          "api_key"
        ]
      },
      "DataCheckKeyReplacement": {
        "description": "Data Check monitors only: replaces the stored upAPI key. Any other field in this object is refused.",
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "description": "The replacement upAPI API key each check is billed to. Write-only: stored in a new secret that replaces the old one, and never returned by any endpoint. Unencrypted at rest while the monitor exists.",
            "writeOnly": true
          }
        },
        "required": [
          "api_key"
        ],
        "additionalProperties": false
      },
      "MonitorConfig": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "const": 1,
            "description": "Document format version. A file carrying a higher version is refused rather than partially understood.",
            "example": 1
          },
          "monitors": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorConfigEntry"
            },
            "description": "The monitors, sorted by name so the document is diffable. At most 500 per document — a larger fleet imports in batches."
          }
        },
        "required": [
          "version",
          "monitors"
        ],
        "description": "A project's monitors as portable, versioned configuration. Contains no ids, secrets, incidents or status history."
      },
      "MonitorConfigEntry": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Monitor display name. Together with `monitor_type` this is the identity an import de-duplicates on — there is no portable id. Leading and trailing whitespace is trimmed; a name that is only whitespace is refused.",
            "example": "Marketing site"
          },
          "monitor_type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Monitor protocol type, e.g. \"Website\", \"API\", \"Ping\", \"Port\", \"DNS\", \"SSL Certificate\", \"Domain\", \"Incoming Request\".",
            "example": "Website"
          },
          "description": {
            "description": "What this monitor watches.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "description": "Target URL for URL-checked types (Website, API, External Status Page, Synthetic Monitor, Custom JavaScript Code).",
            "example": "https://example.com/health",
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "host": {
            "description": "Target hostname or IP for host-checked types (Ping, IP, Port, DNS, SSL Certificate, Domain, SNMP).",
            "example": "example.com",
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "port": {
            "description": "TCP port (Port monitors).",
            "example": 443,
            "type": "integer",
            "minimum": 1,
            "maximum": 65535
          },
          "dns_record_type": {
            "description": "DNS record type for DNS monitors.",
            "example": "A",
            "type": "string",
            "minLength": 1,
            "maxLength": 20
          },
          "monitoring_interval": {
            "description": "Cron-shaped check cadence. Null means the type has no outbound probe cadence (Manual, Incoming Request, Incoming Email).",
            "example": "*/5 * * * *",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "request_timeout_seconds": {
            "description": "Per-request probe timeout in seconds (Website and API monitors). Absent means the 30-second default.",
            "example": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 60
          },
          "failure_threshold": {
            "description": "Consecutive failed checks required before this monitor declares an incident or alert.",
            "example": 2,
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          },
          "heartbeat_interval_minutes": {
            "description": "How often the job watching an Incoming Request monitor promises to ping it, in minutes.",
            "example": 60,
            "type": "integer",
            "minimum": 1,
            "maximum": 10080
          },
          "heartbeat_grace_minutes": {
            "description": "Extra minutes a late heartbeat ping is allowed before the monitor is declared down.",
            "example": 15,
            "type": "integer",
            "minimum": 0,
            "maximum": 10080
          },
          "labels": {
            "description": "Label NAMES, not ids — a label id means nothing in another project. On import, names matching the destination project's existing labels are attached; names it does not have are reported back rather than created.",
            "example": [
              "production"
            ],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        },
        "required": [
          "name",
          "monitor_type"
        ],
        "description": "One monitor, as portable configuration."
      },
      "MonitorList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Monitor"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "One page of the project's monitors."
      },
      "Monitor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque monitor id.",
            "example": "9f1e6a2c-6a0f-4f4e-9c01-1af1c19a2b3d"
          },
          "name": {
            "type": "string",
            "description": "Monitor display name.",
            "example": "Marketing site"
          },
          "description": {
            "description": "Optional human description.",
            "type": [
              "string",
              "null"
            ]
          },
          "monitor_type": {
            "type": "string",
            "description": "Monitor protocol type, e.g. \"Website\", \"API\", \"Ping\", \"Port\", \"SSL Certificate\".",
            "example": "Website"
          },
          "status": {
            "$ref": "#/components/schemas/MonitorStatusRef"
          },
          "active_monitoring_disabled": {
            "type": "boolean",
            "description": "True when active probing is switched off for this monitor (manually or by maintenance)."
          },
          "failure_threshold": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "How many consecutive failed checks this monitor must record before it declares an incident or alert. 1 alerts on the first failed check. Honoured for monitor types an outbound probe checks and for Server monitors (each overdue or over-limit report is one failed check); a short blip below the threshold still appears on the timeline and status pages, it just does not page anyone.",
            "example": 2
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Creation time, ISO-8601 UTC.",
            "example": "2026-08-01T12:00:00.000Z"
          },
          "updated_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Last update time, ISO-8601 UTC.",
            "example": "2026-08-02T08:30:00.000Z"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "monitor_type",
          "status",
          "active_monitoring_disabled",
          "failure_threshold",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "A monitor and its current status."
      },
      "MonitorStatusRef": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Current status name, e.g. \"Operational\" or \"Offline\".",
            "example": "Operational"
          },
          "color": {
            "description": "Display color of the status (hex), when configured.",
            "example": "#2ab27b",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "color"
        ],
        "additionalProperties": false,
        "description": "The monitor's current status."
      },
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "URI identifying the problem class; resolves to its docs page.",
            "example": "https://getuptimely.com/docs/api/problems/validation-failed"
          },
          "title": {
            "type": "string",
            "description": "Short human-readable summary of the problem class. Never parse it — switch on `code`."
          },
          "status": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "HTTP status code, duplicated from the response.",
            "example": 400
          },
          "detail": {
            "description": "Human-readable explanation specific to this occurrence.",
            "type": "string"
          },
          "code": {
            "type": "string",
            "enum": [
              "missing_credentials",
              "invalid_api_key",
              "invalid_token",
              "unsupported_credential_type",
              "insufficient_scope",
              "feature_not_enabled",
              "validation_failed",
              "resource_not_found",
              "rate_limited",
              "quota_exhausted",
              "idempotency_key_reused",
              "idempotency_in_progress",
              "internal_error"
            ],
            "description": "Stable machine-readable problem code — the value SDKs branch on."
          },
          "request_id": {
            "type": "string",
            "description": "The x-request-id of the failing request — quote it in support requests."
          },
          "errors": {
            "description": "Field-level failures (present on validation_failed).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldError"
            }
          },
          "next": {
            "description": "The MCP tool that resolves this problem (present on insufficient_scope and quota_exhausted).",
            "$ref": "#/components/schemas/ProblemNext"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code",
          "request_id"
        ],
        "additionalProperties": false,
        "description": "RFC 9457 problem document with the Uptimely `code` extension."
      },
      "FieldError": {
        "type": "object",
        "properties": {
          "pointer": {
            "type": "string",
            "description": "RFC 6901 JSON Pointer to the offending request field.",
            "example": "/name"
          },
          "code": {
            "type": "string",
            "description": "Machine-readable per-field validation code.",
            "example": "invalid_type"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation for this field."
          }
        },
        "required": [
          "pointer",
          "code",
          "message"
        ],
        "additionalProperties": false,
        "description": "A single field-level validation failure."
      },
      "ProblemNext": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "description": "Name of the MCP tool to call next.",
            "example": "request_scopes"
          },
          "args": {
            "description": "Arguments to pass to that tool.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "tool"
        ],
        "additionalProperties": false,
        "description": "The MCP tool that resolves a problem, with its arguments."
      },
      "MonitorCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the created monitor."
          },
          "slug": {
            "type": "string",
            "description": "URL slug of the monitor."
          },
          "name": {
            "type": "string"
          },
          "monitor_type": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "monitor_type"
        ],
        "additionalProperties": false,
        "description": "The newly created monitor."
      },
      "MonitorDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the deleted monitor."
          },
          "deleted": {
            "type": "boolean",
            "const": true,
            "description": "Always true — the monitor is gone from every surface."
          }
        },
        "required": [
          "id",
          "deleted"
        ],
        "additionalProperties": false,
        "description": "A deleted monitor."
      },
      "MonitorStatusHistory": {
        "type": "object",
        "properties": {
          "monitor": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "monitor_type": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "monitor_type"
            ],
            "additionalProperties": false,
            "description": "The monitor the history belongs to."
          },
          "window_days": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The look-back window actually applied (1-90)."
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status": {
                  "$ref": "#/components/schemas/MonitorStatusRef"
                },
                "starts_at": {
                  "type": "string",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                  "format": "date-time",
                  "description": "When the monitor entered this status."
                },
                "ends_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "When the status ended; null while it is still current."
                },
                "root_cause": {
                  "description": "Recorded cause of the transition, when available.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "status",
                "starts_at",
                "ends_at",
                "root_cause"
              ],
              "additionalProperties": false
            },
            "description": "Status segments, newest first."
          }
        },
        "required": [
          "monitor",
          "window_days",
          "data"
        ],
        "additionalProperties": false,
        "description": "A monitor's status timeline over a look-back window."
      },
      "MonitorAlertMute": {
        "type": "object",
        "properties": {
          "monitor_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "The monitor that was updated."
          },
          "alerts_muted_until": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the mute expires, ISO-8601 UTC; null when the monitor is not muted."
          }
        },
        "required": [
          "monitor_id",
          "alerts_muted_until"
        ],
        "additionalProperties": false,
        "description": "A monitor's current alert-mute window."
      },
      "MonitorConfigImportResult": {
        "type": "object",
        "properties": {
          "dry_run": {
            "type": "boolean",
            "description": "True when nothing was written and the counts describe what an apply WOULD do."
          },
          "created_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Monitors created — or, in a dry run, the number that would be."
          },
          "skipped_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Entries skipped because a live monitor already has that name and type."
          },
          "invalid_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Entries that cannot describe a monitor."
          },
          "failed_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Entries whose creation was attempted and errored. Always 0 in a dry run."
          },
          "unmatched_labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Label names the document referenced that this project does not have. They are reported, never created — inventing labels during an import would quietly reshape the destination project's taxonomy."
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorConfigImportEntry"
            },
            "description": "Per-entry outcomes, in the order they were considered."
          }
        },
        "required": [
          "dry_run",
          "created_count",
          "skipped_count",
          "invalid_count",
          "failed_count",
          "unmatched_labels",
          "entries"
        ],
        "additionalProperties": false,
        "description": "The plan for, or the result of, importing a config document."
      },
      "MonitorConfigImportEntry": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The entry's name, as supplied."
          },
          "monitor_type": {
            "type": "string",
            "description": "The entry's type, as supplied."
          },
          "outcome": {
            "type": "string",
            "enum": [
              "create",
              "created",
              "skipped_duplicate",
              "invalid",
              "failed"
            ],
            "description": "`create` (dry run: would be created) · `created` (applied) · `skipped_duplicate` (a live monitor already has this name and type) · `invalid` (the entry cannot describe a monitor — see `reason`) · `failed` (the create was attempted and errored)."
          },
          "reason": {
            "description": "Why, in plain language, for every outcome but `create`/`created`. On `create`/`created` it is null, or — for a Server or Incoming Request monitor — the setup step the new monitor still needs: it is minted a new key, so the machine or job that reported to the exported monitor must be pointed at it before its first window ends.",
            "type": [
              "string",
              "null"
            ]
          },
          "monitor_id": {
            "description": "Id of the monitor created for this entry, when one was.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "monitor_type",
          "outcome",
          "reason",
          "monitor_id"
        ],
        "additionalProperties": false,
        "description": "The outcome of one entry in an import."
      },
      "IncidentList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Incident"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "One page of the project's incidents, newest first."
      },
      "Incident": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque incident id."
          },
          "number": {
            "description": "Human-facing sequential incident number.",
            "example": 42,
            "type": [
              "number",
              "null"
            ]
          },
          "title": {
            "type": "string",
            "description": "Incident title."
          },
          "description": {
            "description": "Optional longer description.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/IncidentStateRef"
          },
          "severity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SeverityRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Declaration time, ISO-8601 UTC."
          },
          "updated_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Last update time, ISO-8601 UTC."
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "description",
          "state",
          "severity",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "An incident and its current lifecycle state."
      },
      "IncidentStateRef": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Current lifecycle state name, e.g. \"Identified\".",
            "example": "Identified"
          },
          "color": {
            "description": "Display color of the state (hex), when configured.",
            "type": [
              "string",
              "null"
            ]
          },
          "is_resolved": {
            "type": "boolean",
            "description": "True when this state closes the incident."
          }
        },
        "required": [
          "name",
          "color",
          "is_resolved"
        ],
        "additionalProperties": false,
        "description": "An incident lifecycle state."
      },
      "SeverityRef": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Severity name, e.g. \"Minor\" or \"Major\".",
            "example": "Major"
          },
          "color": {
            "description": "Display color of the severity (hex), when configured.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "color"
        ],
        "additionalProperties": false,
        "description": "A configured severity level."
      },
      "IncidentDeclared": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the declared incident."
          },
          "number": {
            "description": "Human-facing sequential incident number.",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "number"
        ],
        "additionalProperties": false,
        "description": "The newly declared incident."
      },
      "IncidentDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque incident id."
          },
          "number": {
            "description": "Human-facing sequential incident number.",
            "example": 42,
            "type": [
              "number",
              "null"
            ]
          },
          "title": {
            "type": "string",
            "description": "Incident title."
          },
          "description": {
            "description": "Optional longer description.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/IncidentStateRef"
          },
          "severity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SeverityRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Declaration time, ISO-8601 UTC."
          },
          "updated_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Last update time, ISO-8601 UTC."
          },
          "monitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "monitor_type": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "monitor_type"
              ],
              "additionalProperties": false
            },
            "description": "Monitors attached to this incident."
          },
          "state_timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "state": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "color": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "color"
                  ],
                  "additionalProperties": false
                },
                "created_at": {
                  "type": "string",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                  "format": "date-time"
                }
              },
              "required": [
                "state",
                "created_at"
              ],
              "additionalProperties": false
            },
            "description": "The 20 newest state transitions, newest first."
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "description",
          "state",
          "severity",
          "created_at",
          "updated_at",
          "monitors",
          "state_timeline"
        ],
        "additionalProperties": false,
        "description": "An incident with its monitors and recent state timeline."
      },
      "StateChangeResult": {
        "type": "object",
        "properties": {
          "changed": {
            "type": "boolean",
            "description": "True when the transition was applied; false when the resource was already in the target state (safe re-issue)."
          }
        },
        "required": [
          "changed"
        ],
        "additionalProperties": false,
        "description": "Outcome of a state-transition request."
      },
      "PostmortemSaved": {
        "type": "object",
        "properties": {
          "saved": {
            "type": "boolean"
          },
          "published": {
            "type": "boolean",
            "description": "True when this save (re)published the postmortem to subscribers."
          },
          "note_changed": {
            "type": "boolean"
          }
        },
        "required": [
          "saved",
          "published",
          "note_changed"
        ],
        "additionalProperties": false,
        "description": "Outcome of a postmortem save."
      },
      "AlertList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Alert"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "One page of the project's alerts, newest first."
      },
      "Alert": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque alert id."
          },
          "number": {
            "description": "Human-facing sequential alert number.",
            "type": [
              "number",
              "null"
            ]
          },
          "title": {
            "type": "string",
            "description": "Alert title."
          },
          "description": {
            "description": "Optional longer description.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/AlertStateRef"
          },
          "severity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SeverityRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "monitor": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The monitor this alert belongs to."
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Creation time, ISO-8601 UTC."
          },
          "updated_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Last update time, ISO-8601 UTC."
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "description",
          "state",
          "severity",
          "monitor",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "An alert and its current lifecycle state."
      },
      "AlertStateRef": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Current lifecycle state name, e.g. \"Created\"."
          },
          "color": {
            "description": "Display color of the state (hex), when configured.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "color"
        ],
        "additionalProperties": false,
        "description": "An alert lifecycle state."
      },
      "AlertCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the created alert."
          },
          "number": {
            "description": "Human-facing sequential alert number.",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "number"
        ],
        "additionalProperties": false,
        "description": "The newly created alert."
      },
      "ScheduledMaintenanceList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScheduledMaintenance"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "One page of maintenance windows, newest window first."
      },
      "ScheduledMaintenance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque maintenance id."
          },
          "title": {
            "type": "string",
            "description": "Maintenance window title."
          },
          "description": {
            "description": "Optional longer description.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "color": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "color"
            ],
            "additionalProperties": false,
            "description": "Current window state, e.g. \"Scheduled\", \"Ongoing\", \"Completed\"."
          },
          "starts_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Window start, ISO-8601 UTC."
          },
          "ends_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Window end, ISO-8601 UTC."
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Creation time, ISO-8601 UTC."
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "state",
          "starts_at",
          "ends_at",
          "created_at"
        ],
        "additionalProperties": false,
        "description": "A scheduled maintenance window and its current state."
      },
      "StatusPageList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPage"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "One page of the project's status pages."
      },
      "StatusPage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque status-page id."
          },
          "name": {
            "type": "string",
            "description": "Status page name."
          },
          "description": {
            "description": "Optional description.",
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string",
            "description": "URL slug the page is served under."
          },
          "is_public": {
            "type": "boolean",
            "description": "True when the page is publicly reachable."
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Creation time, ISO-8601 UTC."
          },
          "updated_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Last update time, ISO-8601 UTC."
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "slug",
          "is_public",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "A status page."
      },
      "StatusPageDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the deleted status page."
          },
          "deleted": {
            "type": "boolean",
            "const": true,
            "description": "Always true — the page no longer serves."
          },
          "custom_domains_removed": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "How many custom domains were disconnected with the page. Their hostnames stop resolving to it, which is what frees them to be reconnected elsewhere."
          }
        },
        "required": [
          "id",
          "deleted",
          "custom_domains_removed"
        ],
        "additionalProperties": false,
        "description": "A deleted status page."
      },
      "StatusPageResourceList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPageResource"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "One page of the status page's resources, in display order."
      },
      "StatusPageResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque resource id — what you detach with."
          },
          "monitor": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false,
            "description": "The monitor this row shows."
          },
          "display_name": {
            "type": "string",
            "description": "Name shown to visitors (may differ from the monitor's)."
          },
          "display_description": {
            "description": "Optional line shown under the display name.",
            "type": [
              "string",
              "null"
            ]
          },
          "show_uptime_percent": {
            "type": "boolean",
            "description": "Whether the uptime percentage is shown for this row."
          },
          "order": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Position on the page, ascending."
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Creation time, ISO-8601 UTC."
          }
        },
        "required": [
          "id",
          "monitor",
          "display_name",
          "display_description",
          "show_uptime_percent",
          "order",
          "created_at"
        ],
        "additionalProperties": false,
        "description": "One monitor shown on a status page."
      },
      "StatusPageResourceDetached": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the detached resource."
          },
          "deleted": {
            "type": "boolean",
            "const": true,
            "description": "Always true — the row is off the page."
          }
        },
        "required": [
          "id",
          "deleted"
        ],
        "additionalProperties": false,
        "description": "A resource removed from a status page."
      },
      "OnCallCurrent": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OnCallScheduleRoster"
            },
            "description": "One entry per on-call schedule in the project."
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "description": "Live on-call rosters for every schedule."
      },
      "OnCallScheduleRoster": {
        "type": "object",
        "properties": {
          "schedule_id": {
            "type": "string",
            "description": "On-call schedule id."
          },
          "schedule_name": {
            "type": "string",
            "description": "Schedule name."
          },
          "description": {
            "description": "Optional schedule description.",
            "type": [
              "string",
              "null"
            ]
          },
          "current_user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OnCallUserRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who is on call right now; null when nobody is."
          },
          "next_user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OnCallUserRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who takes over next; null when unknown."
          },
          "handoff_at": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the current roster hands off, ISO-8601 UTC."
          },
          "next_start_at": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the next roster begins, ISO-8601 UTC."
          }
        },
        "required": [
          "schedule_id",
          "schedule_name",
          "description",
          "current_user",
          "next_user",
          "handoff_at",
          "next_start_at"
        ],
        "additionalProperties": false,
        "description": "The live roster of one on-call schedule."
      },
      "OnCallUserRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "User id."
          },
          "name": {
            "description": "Display name.",
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": "string",
            "description": "Email address."
          }
        },
        "required": [
          "id",
          "name",
          "email"
        ],
        "additionalProperties": false,
        "description": "A user on an on-call roster."
      },
      "Usage": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "description": "The project's plan, e.g. \"FREE\" or \"PRO\".",
            "example": "PRO"
          },
          "period_start": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Start of the current UTC calendar-month period."
          },
          "period_end": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "When the monthly allowance resets, ISO-8601 UTC."
          },
          "api_requests": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Metered requests consumed this period."
              },
              "limit": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The plan's monthly request allowance."
              },
              "remaining": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Requests left this period."
              }
            },
            "required": [
              "used",
              "limit",
              "remaining"
            ],
            "additionalProperties": false,
            "description": "The monthly request meter."
          },
          "burst_per_minute": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Per-API-key burst allowance (requests per minute)."
          }
        },
        "required": [
          "plan",
          "period_start",
          "period_end",
          "api_requests",
          "burst_per_minute"
        ],
        "additionalProperties": false,
        "description": "The project's API allowances and current consumption."
      },
      "WebhookEndpointList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEndpoint"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "One page of the project's webhook endpoints."
      },
      "WebhookEndpoint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable opaque endpoint id."
          },
          "url": {
            "type": "string",
            "description": "The https:// URL deliveries are POSTed to."
          },
          "description": {
            "description": "Optional human label.",
            "type": [
              "string",
              "null"
            ]
          },
          "event_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "monitor.status_changed",
                "incident.declared",
                "incident.state_changed",
                "alert.created",
                "alert.state_changed"
              ]
            },
            "description": "Event types this endpoint is subscribed to."
          },
          "enabled": {
            "type": "boolean",
            "description": "False when paused by you, or auto-disabled after sustained delivery failures (see `disabled_reason`)."
          },
          "disabled_reason": {
            "description": "Why the endpoint was automatically disabled, when it was. Null otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "consecutive_failures": {
            "type": "number",
            "description": "Deliveries that failed terminally in a row. Resets to 0 on any success."
          },
          "secret_hint": {
            "type": "string",
            "description": "Last 4 characters of the signing secret — enough to identify it, useless as a key. The full secret is shown only at create and rotate time."
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "url",
          "description",
          "event_types",
          "enabled",
          "disabled_reason",
          "consecutive_failures",
          "secret_hint",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "A registered outbound webhook endpoint."
      },
      "WebhookEndpointCreated": {
        "type": "object",
        "properties": {
          "endpoint": {
            "$ref": "#/components/schemas/WebhookEndpoint"
          },
          "secret": {
            "type": "string",
            "description": "The signing secret (`whsec_…`). SHOWN ONCE — it is never retrievable again. Store it before you discard this response."
          }
        },
        "required": [
          "endpoint",
          "secret"
        ],
        "additionalProperties": false,
        "description": "A newly created endpoint and its one-time signing secret."
      },
      "WebhookEndpointDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "id",
          "deleted"
        ],
        "additionalProperties": false,
        "description": "Confirmation that the endpoint was removed."
      },
      "WebhookSecretRotated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "secret": {
            "type": "string",
            "description": "The NEW signing secret (`whsec_…`). Shown once."
          },
          "previous_secret_expires_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time",
            "description": "Until this moment BOTH the previous and the new secret sign every delivery (two `v1,…` entries in one `webhook-signature` header), so you can roll your verifier without dropping an event."
          }
        },
        "required": [
          "id",
          "secret",
          "previous_secret_expires_at"
        ],
        "additionalProperties": false,
        "description": "A rotated signing secret and its overlap window."
      },
      "WebhookDeliveryList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            },
            "description": "The current page of results."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page exists after this one."
          },
          "next_cursor": {
            "description": "Opaque cursor for the next page (pass as `after`); null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false,
        "description": "Recent deliveries for one endpoint, newest first."
      },
      "WebhookDelivery": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "webhook_event_id": {
            "type": "string",
            "description": "The value sent in the `webhook-id` header — stable across retries, and the dedup key on your side."
          },
          "event_type": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "pending | delivering | succeeded | failed."
          },
          "attempt": {
            "type": "number",
            "description": "Attempts made so far."
          },
          "response_status": {
            "description": "HTTP status your endpoint answered, when it answered.",
            "type": [
              "number",
              "null"
            ]
          },
          "error": {
            "description": "Why the last attempt failed, in plain language.",
            "type": [
              "string",
              "null"
            ]
          },
          "next_attempt_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time"
          },
          "last_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivered_at": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "webhook_event_id",
          "event_type",
          "status",
          "attempt",
          "response_status",
          "error",
          "next_attempt_at",
          "last_attempt_at",
          "delivered_at",
          "created_at"
        ],
        "additionalProperties": false,
        "description": "One delivery attempt-chain for a single event."
      },
      "MonitorConfigOutput": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "const": 1,
            "description": "Document format version. A file carrying a higher version is refused rather than partially understood.",
            "example": 1
          },
          "monitors": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorConfigEntryOutput"
            },
            "description": "The monitors, sorted by name so the document is diffable. At most 500 per document — a larger fleet imports in batches."
          }
        },
        "required": [
          "version",
          "monitors"
        ],
        "additionalProperties": false,
        "description": "A project's monitors as portable, versioned configuration. Contains no ids, secrets, incidents or status history."
      },
      "MonitorConfigEntryOutput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Monitor display name. Together with `monitor_type` this is the identity an import de-duplicates on — there is no portable id. Leading and trailing whitespace is trimmed; a name that is only whitespace is refused.",
            "example": "Marketing site"
          },
          "monitor_type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Monitor protocol type, e.g. \"Website\", \"API\", \"Ping\", \"Port\", \"DNS\", \"SSL Certificate\", \"Domain\", \"Incoming Request\".",
            "example": "Website"
          },
          "description": {
            "description": "What this monitor watches.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "description": "Target URL for URL-checked types (Website, API, External Status Page, Synthetic Monitor, Custom JavaScript Code).",
            "example": "https://example.com/health",
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "host": {
            "description": "Target hostname or IP for host-checked types (Ping, IP, Port, DNS, SSL Certificate, Domain, SNMP).",
            "example": "example.com",
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "port": {
            "description": "TCP port (Port monitors).",
            "example": 443,
            "type": "integer",
            "minimum": 1,
            "maximum": 65535
          },
          "dns_record_type": {
            "description": "DNS record type for DNS monitors.",
            "example": "A",
            "type": "string",
            "minLength": 1,
            "maxLength": 20
          },
          "monitoring_interval": {
            "description": "Cron-shaped check cadence. Null means the type has no outbound probe cadence (Manual, Incoming Request, Incoming Email).",
            "example": "*/5 * * * *",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "request_timeout_seconds": {
            "description": "Per-request probe timeout in seconds (Website and API monitors). Absent means the 30-second default.",
            "example": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 60
          },
          "failure_threshold": {
            "description": "Consecutive failed checks required before this monitor declares an incident or alert.",
            "example": 2,
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          },
          "heartbeat_interval_minutes": {
            "description": "How often the job watching an Incoming Request monitor promises to ping it, in minutes.",
            "example": 60,
            "type": "integer",
            "minimum": 1,
            "maximum": 10080
          },
          "heartbeat_grace_minutes": {
            "description": "Extra minutes a late heartbeat ping is allowed before the monitor is declared down.",
            "example": 15,
            "type": "integer",
            "minimum": 0,
            "maximum": 10080
          },
          "labels": {
            "description": "Label NAMES, not ids — a label id means nothing in another project. On import, names matching the destination project's existing labels are attached; names it does not have are reported back rather than created.",
            "example": [
              "production"
            ],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        },
        "required": [
          "name",
          "monitor_type"
        ],
        "additionalProperties": false,
        "description": "One monitor, as portable configuration."
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "An `uptimely_live_` project API key (Settings → API Keys)."
      }
    }
  }
}
