{
  "openapi": "3.1.0",
  "info": {
    "title": "Incidents API",
    "version": "1.4.6",
    "description": "Monitors, heartbeats, incidents, on-call, escalation policies, status pages, catalog, metadata, and the alert integrations."
  },
  "servers": [
    {
      "url": "https://uptime.betterstack.com"
    },
    {
      "url": "https://incidents.betterstack.com",
      "description": "Alias host serving the same API."
    }
  ],
  "x-cli-token-env": "BETTERSTACK_GLOBAL_API_TOKEN",
  "x-cli-examples": [
    {
      "title": "List incidents, then fetch the second page",
      "commands": [
        "incident list",
        "incident list --page 2 --per-page 20"
      ]
    },
    {
      "title": "Create a monitor",
      "commands": [
        "monitor create --monitor-type status --url https://example.com"
      ]
    },
    {
      "title": "See who's on call now",
      "commands": [
        "on-call-schedule list"
      ]
    },
    {
      "title": "List your status pages",
      "commands": [
        "status-page list"
      ]
    }
  ],
  "security": [
    {
      "teamApiToken": []
    },
    {
      "globalApiToken": []
    },
    {
      "userOauth": []
    }
  ],
  "tags": [
    {
      "name": "catalog_attribute",
      "description": "A named field in a catalog relation, such as `Team` or `Owner`. Every record in the relation can hold a value for it."
    },
    {
      "name": "catalog_record",
      "description": "A catalog record is one entry in a catalog relation, with values for its attributes."
    },
    {
      "name": "catalog_relation",
      "description": "A catalog relation is a table in your on-call catalog, such as your services or teams. When an incident's metadata matches a record's primary attributes, the incident gets the record's other attributes as metadata."
    },
    {
      "name": "escalation_policy",
      "description": "An escalation policy decides who we notify about an incident, in what order, and how long we wait between steps."
    },
    {
      "name": "escalation_policy_group",
      "description": "An escalation policy group keeps related escalation policies together."
    },
    {
      "name": "file_upload",
      "description": "A file you send once and then attach by its ID, in an incident comment's `attachment_upload_ids` or a status page's `logo_upload_id`."
    },
    {
      "name": "heartbeat",
      "description": "A heartbeat watches a cron job or background service. Your job requests the heartbeat's URL on a schedule, and we alert you when a request doesn't arrive in time."
    },
    {
      "name": "heartbeat_group",
      "description": "A group that organizes related heartbeats together."
    },
    {
      "name": "holiday_mode",
      "description": "A team member's holiday mode, as under **Holiday mode** in the web app's account settings. Until the holiday ends, the team member stays on their on-call schedules in every organization they're in, but we don't alert them. With OAuth, the holiday mode is your own. With an organization API token, `user_id` names the team member. The holiday mode's `id` is the team member's user ID, such as `u123`."
    },
    {
      "name": "incident",
      "description": "A record of a service disruption or performance issue that alerts your team."
    },
    {
      "name": "incident_comment",
      "description": "A comment posted on an incident's timeline."
    },
    {
      "name": "incident_group",
      "description": "An incident group keeps similar incidents together, as they appear grouped in the incidents list."
    },
    {
      "name": "incident_grouping_change",
      "description": "A record of a team member grouping incidents together, or removing incidents from a group."
    },
    {
      "name": "incidents_amazon_sns_integration",
      "description": "An Amazon SNS integration opens incidents from the notifications your Amazon SNS topic sends. Rules you set decide which notifications open, acknowledge or resolve an incident.",
      "x-wire-type": "amazon_sns_integration"
    },
    {
      "name": "incidents_aws_cloudwatch_integration",
      "description": "Receives alerts from AWS CloudWatch and opens Better Stack incidents.",
      "x-wire-type": "aws_cloudwatch_integration"
    },
    {
      "name": "incidents_azure_integration",
      "description": "An Azure integration turns alerts from Azure into incidents.",
      "x-wire-type": "azure_integration"
    },
    {
      "name": "incidents_datadog_integration",
      "description": "Receives alerts from Datadog and opens Better Stack incidents.",
      "x-wire-type": "datadog_integration"
    },
    {
      "name": "incidents_elastic_integration",
      "description": "An Elastic integration turns alerts from Elastic into incidents.",
      "x-wire-type": "elastic_integration"
    },
    {
      "name": "incidents_google_monitoring_integration",
      "description": "Receives alerts from Google Monitoring and opens Better Stack incidents.",
      "x-wire-type": "google_monitoring_integration"
    },
    {
      "name": "incidents_grafana_integration",
      "description": "A Grafana integration turns alerts from Grafana into incidents.",
      "x-wire-type": "grafana_integration"
    },
    {
      "name": "incidents_incoming_email_integration",
      "description": "An e-mail address that opens incidents from the e-mails it receives. Fields you set pick values such as the cause out of each e-mail, and rules decide whether an e-mail opens, acknowledges or resolves an incident.",
      "x-wire-type": "email_integration"
    },
    {
      "name": "incidents_incoming_webhook_integration",
      "description": "A webhook URL that opens incidents from the requests it receives. Fields you set pick values such as the cause out of each request, and rules decide whether a request opens, acknowledges or resolves an incident.",
      "x-wire-type": "incoming_webhook"
    },
    {
      "name": "incidents_integration_authorization",
      "description": "A link that connects Slack, Linear or Jira to your team. A person who can manage your team's integrations opens it in a browser and signs in with the provider. Once the sign-in finishes, the integration is connected and its ID is shown here.",
      "x-wire-type": "integration_authorization"
    },
    {
      "name": "incidents_jira_integration",
      "description": "A Jira integration creates Jira issues for your incidents and keeps them in sync.",
      "x-wire-type": "jira_integration"
    },
    {
      "name": "incidents_linear_integration",
      "description": "A Linear integration creates Linear issues for your incidents.",
      "x-wire-type": "linear_integration"
    },
    {
      "name": "incidents_new_relic_integration",
      "description": "Receives alerts from New Relic and opens Better Stack incidents.",
      "x-wire-type": "new_relic_integration"
    },
    {
      "name": "incidents_outgoing_email_integration",
      "description": "Sends e-mails about your incidents to addresses outside Better Stack, such as a customer's distribution list. You can write your own subject, title and body for each stage of an incident.",
      "x-wire-type": "outgoing_email"
    },
    {
      "name": "incidents_outgoing_pagerduty_integration",
      "description": "Forwards Better Stack incidents to a PagerDuty service.",
      "x-wire-type": "pagerduty_integration"
    },
    {
      "name": "incidents_outgoing_webhook_integration",
      "description": "An outgoing webhook integration sends a request to your URL when an incident, an on-call shift or a monitor changes.",
      "x-wire-type": "outgoing_webhook"
    },
    {
      "name": "incidents_prometheus_integration",
      "description": "A Prometheus integration turns alerts from Prometheus into incidents.",
      "x-wire-type": "prometheus_integration"
    },
    {
      "name": "incidents_slack_integration",
      "description": "A connected Slack channel that receives incident notifications.",
      "x-wire-type": "slack_integration"
    },
    {
      "name": "incidents_splunk_on_call_integration",
      "description": "A Splunk On-Call integration sends your incidents to Splunk On-Call, formerly VictorOps.",
      "x-wire-type": "splunk_on_call_integration"
    },
    {
      "name": "ip_list",
      "description": "List the IP addresses to allow in your firewall so Better Stack monitors can reach your services, grouped by cluster."
    },
    {
      "name": "metadata",
      "description": "Metadata is a key with one or more values that you attach to a monitor, heartbeat, incident or integration, such as the team that owns it."
    },
    {
      "name": "monitor",
      "description": "An uptime monitor that periodically checks a URL, host, or service and alerts on failures."
    },
    {
      "name": "monitor_group",
      "description": "A group that organizes related monitors together."
    },
    {
      "name": "on_call_event",
      "description": "Read and change individual on-call shifts directly, and create overrides. We recommend an [on-call rotation](/docs/uptime/api/create-on-call-calendar-rotation/) instead, set up with the API or Terraform."
    },
    {
      "name": "on_call_override",
      "description": "Read and change the overrides on an on-call schedule. An override puts the people it names on call in place of the rotation's shifts for its time."
    },
    {
      "name": "on_call_rotation",
      "description": "An on-call rotation puts the users of an on-call schedule on call in turns, with shifts of a set length."
    },
    {
      "name": "on_call_schedule",
      "description": "An on-call schedule says who on your team is on call and when. A schedule has a rotation that puts people on call in turns, and overrides that put someone else on call for a while."
    },
    {
      "name": "severity",
      "description": "A named alerting level, such as low or high, that sets how people are alerted when an escalation policy step uses it."
    },
    {
      "name": "severity_group",
      "description": "A severity group keeps related severities together."
    },
    {
      "name": "status_page",
      "description": "A public or private status page that communicates service health to your users."
    },
    {
      "name": "status_page_group",
      "description": "A group of related status pages. Status page groups belong to your organization, not to one team."
    },
    {
      "name": "status_page_resource",
      "description": "A monitor, heartbeat, or group shown on a status page."
    },
    {
      "name": "status_page_section",
      "description": "A section that groups resources on a status page."
    },
    {
      "name": "status_page_subscriber",
      "description": "A status page subscriber gets your status page's updates by e-mail."
    },
    {
      "name": "status_report",
      "description": "An incident or maintenance report published on a status page."
    },
    {
      "name": "status_update",
      "description": "A timestamped message posted to a status report, such as an update on an incident's progress."
    },
    {
      "name": "team_maintenance",
      "description": "Team-wide maintenance, which puts every monitor and heartbeat in a team into maintenance for a while and then resumes monitoring. The maintenance's `id` is the team's ID, such as `t123`, from [List teams](/docs/uptime/api/teams/list/)."
    },
    {
      "name": "third_party_service",
      "description": "A third-party service you can add to your status pages, such as AWS, Cloudflare or GitHub, with its current status and its status changes."
    }
  ],
  "paths": {
    "/api/v2/catalog/relations/{catalog_relation_id}/attributes": {
      "get": {
        "operationId": "list_catalog_attribute",
        "summary": "List a catalog relation's attributes, ordered by position, all in one response.",
        "tags": [
          "catalog_attribute"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/catalog/relations/:catalog_relation_id/attributes",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_catalog_attributes": {
                "summary": "List catalog attributes",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of catalog_attribute objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogAttributeList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it. Get the relation ID via [List catalog relations](/docs/uptime/api/list-all-catalog-relations/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "primary",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "primary",
          "position"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_attribute.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_catalog_attribute",
        "summary": "Add an attribute to a catalog relation.",
        "description": "Set `primary` to match records to incidents by this attribute.",
        "tags": [
          "catalog_attribute"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/catalog/relations/:catalog_relation_id/attributes",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_a_catalog_attribute": {
                "summary": "Create a catalog attribute",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single catalog_attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogAttributeDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CatalogAttributeCreate"
              },
              "examples": {
                "create_a_catalog_attribute": {
                  "summary": "Create a catalog attribute",
                  "value": {
                    "name": "Test"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "primary",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "primary",
          "position"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_attribute.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/catalog/relations/{catalog_relation_id}/attributes/{id}": {
      "delete": {
        "operationId": "delete_catalog_attribute",
        "summary": "Delete a catalog attribute and its values from every record in the relation.",
        "tags": [
          "catalog_attribute"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/catalog/relations/:catalog_relation_id/attributes/:id",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_catalog_attribute": {
                "summary": "Delete a catalog attribute",
                "value": "37"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_catalog_attribute": {
                "summary": "Delete a catalog attribute",
                "value": "56"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog attribute doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_catalog_attribute",
        "summary": "Get a catalog attribute, one column of a catalog relation.",
        "tags": [
          "catalog_attribute"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/catalog/relations/:catalog_relation_id/attributes/:id",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_catalog_attribute": {
                "summary": "Get a catalog attribute",
                "value": "37"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_catalog_attribute": {
                "summary": "Get a catalog attribute",
                "value": "56"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single catalog_attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogAttributeDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog attribute doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "primary",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "primary",
          "position"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_attribute.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_catalog_attribute",
        "summary": "Update a catalog attribute's name, primary flag or position.",
        "description": "Send `name` on every update, plus the fields you change.",
        "tags": [
          "catalog_attribute"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/catalog/relations/:catalog_relation_id/attributes/:id",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_catalog_attribute": {
                "summary": "Update a catalog attribute",
                "value": "37"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_catalog_attribute": {
                "summary": "Update a catalog attribute",
                "value": "56"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single catalog_attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogAttributeDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog attribute doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CatalogAttributeUpdate"
              },
              "examples": {
                "update_a_catalog_attribute": {
                  "summary": "Update a catalog attribute",
                  "value": {
                    "name": "Owner"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "primary",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "primary",
          "position"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_attribute.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/integration-authorizations/{id}": {
      "get": {
        "operationId": "get_incidents_integration_authorization",
        "summary": "Check whether connecting an Incidents integration finished.",
        "description": "Once `status` is `completed`, `integration_id` is the connected integration's ID. The authorization is deleted a day after its link expires.",
        "tags": [
          "incidents_integration_authorization"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/integration-authorizations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_integration_authorization": {
                "summary": "Get an integration authorization",
                "value": "hD0Ms9nZ2Yd4mVq1pX7bL8cT3rF6wK5jA0eS9uG2iNy"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The integration authorization doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "integration_type",
          "status",
          "integration_id",
          "expires_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "integration_type",
          "status",
          "status_reason",
          "authorization_url",
          "expires_at",
          "integration_id",
          "team_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_integration_authorization.get"
        },
        "x-cli-wait": {
          "observe": "get_incidents_integration_authorization",
          "bindings": {
            "id": {
              "source": "params",
              "path": [
                "id"
              ]
            }
          },
          "success": {
            "path": [
              "status"
            ],
            "expected": {
              "source": "literal",
              "value": "completed"
            }
          },
          "failure": [
            {
              "path": [
                "status"
              ],
              "in": [
                "failed",
                "expired"
              ]
            }
          ],
          "messages": [
            "status_reason"
          ],
          "description": "The integration is connected."
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/jira-integrations": {
      "get": {
        "operationId": "list_incidents_jira_integration",
        "summary": "List your Jira integrations, which create Jira issues for your incidents.",
        "tags": [
          "incidents_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/jira-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_jira_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsJiraIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Jira integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "jira_project_key",
          "automatic_issue_creation"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "automatic_issue_creation",
          "jira_project_key",
          "jira_issue_type_id",
          "jira_fields",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_jira_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_jira_integration",
        "summary": "Create a Jira integration for incidents.",
        "description": "You'll get a link back to open in your browser and finish setting up the integration.",
        "tags": [
          "incidents_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/jira-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "202": {
            "description": "A single incidents_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Jira integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "503": {
            "description": "Jira couldn't be connected right now. Nothing is created. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-request-body": "none",
        "x-cli-default-fields": [
          "id",
          "integration_type",
          "status",
          "integration_id",
          "expires_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "integration_type",
          "status",
          "status_reason",
          "authorization_url",
          "expires_at",
          "integration_id",
          "team_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_integration_authorization.get"
        },
        "x-cli-wait": {
          "observe": "get_incidents_integration_authorization",
          "bindings": {
            "id": {
              "source": "result",
              "path": [
                "id"
              ]
            }
          },
          "success": {
            "path": [
              "status"
            ],
            "expected": {
              "source": "literal",
              "value": "completed"
            }
          },
          "failure": [
            {
              "path": [
                "status"
              ],
              "in": [
                "failed",
                "expired"
              ]
            }
          ],
          "messages": [
            "status_reason"
          ],
          "result": {
            "operation": "get_incidents_jira_integration",
            "bindings": {
              "id": {
                "source": "observed",
                "path": [
                  "integration_id"
                ]
              }
            }
          },
          "description": "Jira is connected."
        },
        "x-cli-open-url": "authorization_url",
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/jira-integrations/{id}": {
      "get": {
        "operationId": "get_incidents_jira_integration",
        "summary": "Get a Jira integration and how it creates Jira issues for your incidents.",
        "tags": [
          "incidents_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/jira-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_jira_integration": {
                "summary": "Get a Jira integration",
                "value": "13760"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_jira_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsJiraIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Jira integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "jira_project_key",
          "automatic_issue_creation"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "automatic_issue_creation",
          "jira_project_key",
          "jira_issue_type_id",
          "jira_fields",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_jira_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_jira_integration",
        "summary": "Update a Jira integration's project, issue type, extra issue fields or whether it creates an issue for every incident.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "incidents_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/jira-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "rename_the_integration": {
                "summary": "Rename the integration",
                "value": "13755"
              },
              "update_jira_issue_fields": {
                "summary": "Update Jira issue fields",
                "value": "13755"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_jira_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsJiraIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Jira integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `jira_fields` attribute has fields that are unsupported, unknown, missing or invalid for the fields the Jira project has now. The message names the fields. The request has an unknown field, the project key wasn't found, or a request to Jira failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsJiraIntegrationUpdate"
              },
              "examples": {
                "rename_the_integration": {
                  "summary": "Rename the integration",
                  "value": {
                    "name": "Different name"
                  }
                },
                "update_jira_issue_fields": {
                  "summary": "Update Jira issue fields",
                  "value": {
                    "jira_fields": {
                      "labels": [
                        {
                          "label": "outage",
                          "value": "outage"
                        }
                      ],
                      "assignee": {
                        "label": "John Doe",
                        "value": "5b10ac8d82e05b22cc7d4ef5"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "jira_project_key",
          "automatic_issue_creation"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "automatic_issue_creation",
          "jira_project_key",
          "jira_issue_type_id",
          "jira_fields",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_jira_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/linear-integrations": {
      "get": {
        "operationId": "list_incidents_linear_integration",
        "summary": "List your Linear integrations with their settings.",
        "tags": [
          "incidents_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/linear-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_linear_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsLinearIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Linear integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "linear_priority",
          "automatic_issue_creation"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "linear_team_id",
          "linear_assignee_id",
          "linear_priority",
          "linear_status_id",
          "linear_project_id",
          "linear_labels",
          "automatic_issue_creation",
          "automatic_issue_closure",
          "linear_resolved_status_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_linear_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_linear_integration",
        "summary": "Create a Linear integration for incidents.",
        "description": "You'll get a link back to open in your browser and finish setting up the integration.",
        "tags": [
          "incidents_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/linear-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "202": {
            "description": "A single incidents_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Linear integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "503": {
            "description": "Linear couldn't be connected right now. Nothing is created. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-request-body": "none",
        "x-cli-default-fields": [
          "id",
          "integration_type",
          "status",
          "integration_id",
          "expires_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "integration_type",
          "status",
          "status_reason",
          "authorization_url",
          "expires_at",
          "integration_id",
          "team_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_integration_authorization.get"
        },
        "x-cli-wait": {
          "observe": "get_incidents_integration_authorization",
          "bindings": {
            "id": {
              "source": "result",
              "path": [
                "id"
              ]
            }
          },
          "success": {
            "path": [
              "status"
            ],
            "expected": {
              "source": "literal",
              "value": "completed"
            }
          },
          "failure": [
            {
              "path": [
                "status"
              ],
              "in": [
                "failed",
                "expired"
              ]
            }
          ],
          "messages": [
            "status_reason"
          ],
          "description": "Linear is connected."
        },
        "x-cli-open-url": "authorization_url",
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/linear-integrations/{id}": {
      "get": {
        "operationId": "get_incidents_linear_integration",
        "summary": "Get a Linear integration with its settings.",
        "tags": [
          "incidents_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/linear-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_linear_integration": {
                "summary": "Get a Linear integration",
                "value": "66367"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_linear_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsLinearIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Linear integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "linear_priority",
          "automatic_issue_creation"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "linear_team_id",
          "linear_assignee_id",
          "linear_priority",
          "linear_status_id",
          "linear_project_id",
          "linear_labels",
          "automatic_issue_creation",
          "automatic_issue_closure",
          "linear_resolved_status_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_linear_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_linear_integration",
        "summary": "Change a Linear integration's settings.",
        "description": "Only the settings sent change. Every Linear ID sent is checked against the integration's Linear workspace.",
        "tags": [
          "incidents_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/linear-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "move_issues_to_another_linear_team": {
                "summary": "Move issues to another Linear team",
                "value": "66367"
              },
              "close_issues_when_incidents_are_resolved": {
                "summary": "Close issues when incidents are resolved",
                "value": "66367"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_linear_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsLinearIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Linear integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "A Linear ID sent isn't in the integration's Linear team. The message names each one. When `linear_team_id` changes, the assignee, statuses, project and labels kept from the old team are checked against the new team too. The integration's Linear authorization has expired, or Linear refused it. Re-install it from [Better Stack → Integrations](https://uptime.betterstack.com/team/0/integrations) to change its settings. Two labels from one Linear label group are refused. `automatic_issue_closure` without a `linear_resolved_status_id` is refused. An unknown priority or field is refused too.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsLinearIntegrationUpdate"
              },
              "examples": {
                "move_issues_to_another_linear_team": {
                  "summary": "Move issues to another Linear team",
                  "value": {
                    "linear_team_id": "0a058344-2e3c-4ae6-a0a9-cff783744f6a",
                    "linear_status_id": "4e8e4830-4059-4cf5-a1a8-9445835ed0b3",
                    "linear_labels": [
                      {
                        "id": "6db1c13f-a4a5-41c6-b9f3-67748203e8d6"
                      }
                    ]
                  }
                },
                "close_issues_when_incidents_are_resolved": {
                  "summary": "Close issues when incidents are resolved",
                  "value": {
                    "automatic_issue_closure": true,
                    "linear_resolved_status_id": "df16acd5-9e27-4eef-bb3c-ab09787f163b"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "linear_priority",
          "automatic_issue_creation"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "linear_team_id",
          "linear_assignee_id",
          "linear_priority",
          "linear_status_id",
          "linear_project_id",
          "linear_labels",
          "automatic_issue_creation",
          "automatic_issue_closure",
          "linear_resolved_status_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_linear_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-page-groups": {
      "get": {
        "operationId": "list_status_page_group",
        "summary": "List the status page groups.",
        "description": "Groups are ordered by `sort_index`, then creation time.",
        "tags": [
          "status_page_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-page-groups",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_page_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_status_page_group",
        "summary": "Create a status page group for organizing status pages.",
        "description": "The organization can't be changed later.",
        "tags": [
          "status_page_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/status-page-groups",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_page_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `name` attribute is missing, an attribute is unknown, the token can't access the organization in `organization_id`, or you signed in with OAuth, can access more than one organization and named none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageGroupCreate"
              },
              "examples": {
                "create_a_status_page_group": {
                  "summary": "Create a status page group",
                  "value": {
                    "name": "Production Status Pages",
                    "sort_index": 1
                  }
                },
                "in_a_chosen_organization": {
                  "summary": "In a chosen organization",
                  "value": {
                    "name": "Customer status pages",
                    "organization_id": 123456
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-page-groups/{id}": {
      "delete": {
        "operationId": "delete_status_page_group",
        "summary": "Delete a status page group permanently.",
        "description": "The status pages in it are kept, without a group.",
        "tags": [
          "status_page_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/status-page-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_page_group": {
                "summary": "Delete a status page group",
                "value": "1372854"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_status_page_group",
        "summary": "Get a status page group.",
        "description": "List the status pages in it via [List status pages in a group](/docs/uptime/api/listing-status-pages-in-status-page-group/).",
        "tags": [
          "status_page_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-page-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "1372854"
              ]
            },
            "description": "Get the ID via [List status page groups](/docs/uptime/api/list-all-status-page-groups/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page_group": {
                "summary": "Get a status page group",
                "value": "1372854"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_status_page_group",
        "summary": "Rename a status page group or change its position in the list.",
        "tags": [
          "status_page_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/status-page-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_page_group": {
                "summary": "Update a status page group",
                "value": "1372854"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageGroupUpdate"
              },
              "examples": {
                "update_a_status_page_group": {
                  "summary": "Update a status page group",
                  "value": {
                    "name": "Production Pages (Renamed)",
                    "sort_index": 0
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-page-groups/{id}/status-pages": {
      "get": {
        "operationId": "status_pages_status_page_group",
        "summary": "List the status pages in a status page group.",
        "tags": [
          "status_page_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-page-groups/:id/status-pages",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_status_pages_in_a_group": {
                "summary": "List status pages in a group",
                "value": "42"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_page objects.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The status_page's id."
                          },
                          "type": {
                            "type": "string",
                            "const": "status_page"
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "organization_id": {
                                "type": "integer",
                                "format": "int64",
                                "description": "The ID of the organization the page belongs to, such as `123`. Get the ID from `organization_id` in [List teams](/docs/uptime/api/teams/list/)."
                              },
                              "company_name": {
                                "type": "string",
                                "description": "Company name shown on the page."
                              },
                              "company_url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Company website URL."
                              },
                              "subdomain": {
                                "type": "string",
                                "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores."
                              },
                              "timezone": {
                                "type": "string",
                                "format": "time-zone",
                                "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name."
                              },
                              "custom_domain": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.",
                                "examples": [
                                  "status.example.com"
                                ]
                              },
                              "contact_url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`."
                              },
                              "logo_url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The logo shown in light mode. Responses return the URL of the stored logo.",
                                "examples": [
                                  "https://example.com/logo.png"
                                ]
                              },
                              "dark_logo_url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The logo shown in dark mode. Responses return the URL of the stored logo.",
                                "examples": [
                                  "https://example.com/logo-dark.png"
                                ]
                              },
                              "logo_remote_url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The URL the light mode logo was fetched from."
                              },
                              "dark_logo_remote_url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The URL the dark mode logo was fetched from."
                              },
                              "custom_css": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Custom CSS added to the page."
                              },
                              "custom_javascript": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Custom JavaScript added to the page."
                              },
                              "google_analytics_id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`."
                              },
                              "min_incident_length": {
                                "type": "integer",
                                "format": "int64",
                                "description": "Shortest incident the page shows, in seconds. `0` shows every incident.",
                                "default": 0
                              },
                              "subscribable": {
                                "type": "boolean",
                                "description": "Whether visitors can subscribe to updates.",
                                "default": false
                              },
                              "hide_from_search_engines": {
                                "type": "boolean",
                                "description": "Whether to hide the page from search engines with a `noindex` tag.",
                                "default": false
                              },
                              "password_enabled": {
                                "type": "boolean",
                                "description": "Whether visitors need a password to view the page. Off unless you turn it on or set `password`."
                              },
                              "require_sso": {
                                "type": "boolean",
                                "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with `password_enabled`.",
                                "default": false
                              },
                              "published": {
                                "type": "boolean",
                                "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows.",
                                "default": true
                              },
                              "history": {
                                "type": "integer",
                                "format": "int64",
                                "description": "Number of days of history the page shows, from 7 to 365.",
                                "default": 90
                              },
                              "design": {
                                "type": "string",
                                "enum": [
                                  "v1",
                                  "v2"
                                ],
                                "description": "Page design.",
                                "x-enum-descriptions": {
                                  "v1": "The classic design.",
                                  "v2": "The modern design."
                                },
                                "default": "v1"
                              },
                              "theme": {
                                "type": "string",
                                "enum": [
                                  "light",
                                  "dark",
                                  "system"
                                ],
                                "description": "Color theme. Only the `v2` design uses it.",
                                "default": "light"
                              },
                              "layout": {
                                "type": "string",
                                "enum": [
                                  "vertical",
                                  "horizontal"
                                ],
                                "description": "Header layout of the page. Only the `v2` design uses it.",
                                "default": "vertical"
                              },
                              "automatic_reports": {
                                "type": "boolean",
                                "description": "Whether status page reports are created automatically for new incidents.",
                                "default": false
                              },
                              "status_page_group_id": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "format": "int64",
                                "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](/docs/uptime/api/list-all-status-page-groups/).",
                                "examples": [
                                  42
                                ]
                              },
                              "whitelabeled": {
                                "type": "boolean",
                                "description": "Whether to remove Better Stack branding from the page.",
                                "default": false
                              },
                              "announcement": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Announcement banner text."
                              },
                              "announcement_embed_visible": {
                                "type": "boolean",
                                "description": "Whether the embeddable widget shows the announcement.",
                                "default": true
                              },
                              "announcement_embed_link": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Link the announcement points to on the embeddable widget.",
                                "examples": [
                                  "https://example.com/blog/maintenance"
                                ]
                              },
                              "announcement_embed_css": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Your own CSS for the announcement on the embeddable widget."
                              },
                              "navigation_links": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "text": {
                                      "type": "string",
                                      "description": "The link's text, such as `Maintenance`."
                                    },
                                    "href": {
                                      "type": "string",
                                      "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages."
                                    }
                                  }
                                },
                                "description": "Up to four links in the page's navigation, each with `text` and `href`. Only the `v2` design shows them. An empty list removes them all.",
                                "examples": [
                                  [
                                    {
                                      "text": "Website",
                                      "href": "https://example.com"
                                    }
                                  ]
                                ]
                              },
                              "ip_allowlist": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments."
                              },
                              "aggregate_state": {
                                "type": "string",
                                "enum": [
                                  "operational",
                                  "degraded",
                                  "downtime",
                                  "maintenance"
                                ],
                                "description": "The page's overall status.",
                                "x-enum-descriptions": {
                                  "operational": "No resource on the page is down, degraded or in maintenance.",
                                  "degraded": "A resource is degraded and none is down.",
                                  "downtime": "A resource is down.",
                                  "maintenance": "A resource is in maintenance and none is down or degraded."
                                },
                                "readOnly": true,
                                "examples": [
                                  "operational"
                                ]
                              },
                              "created_at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "When the status page was created.",
                                "readOnly": true
                              },
                              "updated_at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "When the status page was last updated.",
                                "readOnly": true
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/PaginationPageNumber"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "company_name",
          "subdomain",
          "custom_domain",
          "published",
          "aggregate_state"
        ],
        "x-cli-name-fields": [
          "company_name",
          "subdomain"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "organization_id",
          "company_name",
          "company_url",
          "subdomain",
          "timezone",
          "custom_domain",
          "contact_url",
          "logo_url",
          "dark_logo_url",
          "logo_remote_url",
          "dark_logo_remote_url",
          "custom_css",
          "custom_javascript",
          "google_analytics_id",
          "min_incident_length",
          "subscribable",
          "hide_from_search_engines",
          "password_enabled",
          "require_sso",
          "published",
          "history",
          "design",
          "theme",
          "layout",
          "automatic_reports",
          "status_page_group_id",
          "whitelabeled",
          "announcement",
          "announcement_embed_visible",
          "announcement_embed_link",
          "announcement_embed_css",
          "navigation_links",
          "ip_allowlist",
          "aggregate_state",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_group.status_pages"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/sections": {
      "get": {
        "operationId": "list_status_page_section",
        "summary": "List a status page's sections, in ID order.",
        "tags": [
          "status_page_section"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/sections",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_status_page_sections": {
                "summary": "List status page sections",
                "value": "123"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_page_section objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSectionList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "position",
          "status_page_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_section.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_status_page_section",
        "summary": "Add a section that groups resources on a status page.",
        "description": "Move a resource into it with [Update a status page resource](/docs/uptime/api/update-an-existing-status-page-resource/), setting its `status_page_section_id`.",
        "tags": [
          "status_page_section"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/status-pages/:status_page_id/sections",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_a_status_page_section": {
                "summary": "Create a status page section",
                "value": "123"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_page_section.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSectionDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageSectionCreate"
              },
              "examples": {
                "create_a_status_page_section": {
                  "summary": "Create a status page section",
                  "value": {
                    "name": "EU Datacenter",
                    "position": 0
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "position",
          "status_page_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_section.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/sections/{id}": {
      "delete": {
        "operationId": "delete_status_page_section",
        "summary": "Delete a status page section and the resources placed in it.",
        "description": "The monitors and heartbeats those resources show aren't affected.",
        "tags": [
          "status_page_section"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/status-pages/:status_page_id/sections/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_page_section": {
                "summary": "Delete a status page section",
                "value": "123"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_page_section": {
                "summary": "Delete a status page section",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page section doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_status_page_section",
        "summary": "Get a status page section, the heading that groups resources on a status page.",
        "tags": [
          "status_page_section"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/sections/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page_section": {
                "summary": "Get a status page section",
                "value": "123"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page_section": {
                "summary": "Get a status page section",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_section.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSectionDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page section doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "position",
          "status_page_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_section.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_status_page_section",
        "summary": "Rename or reposition a status page section.",
        "tags": [
          "status_page_section"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/status-pages/:status_page_id/sections/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_page_section": {
                "summary": "Update a status page section",
                "value": "123"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_page_section": {
                "summary": "Update a status page section",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_section.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSectionDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page section doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageSectionUpdate"
              },
              "examples": {
                "update_a_status_page_section": {
                  "summary": "Update a status page section",
                  "value": {
                    "name": "EU datacenter 2"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "position"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "position",
          "status_page_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_section.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/status-reports": {
      "get": {
        "operationId": "list_status_report",
        "summary": "List a status page's incident and maintenance reports, in ID order unless sorted.",
        "description": "Filter by `resource_id` for one resource's reports.",
        "tags": [
          "status_report"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/status-reports",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_status_reports": {
                "summary": "List status reports",
                "value": "123456"
              }
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "-starts_at"
              ]
            },
            "description": "Sort by `created_at`, `updated_at` or `starts_at`. Put `-` before the field for descending order."
          },
          {
            "name": "resource_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "Only reports whose `affected_resources` includes this status page resource ID, including resources that have since resolved. An ID that isn't a resource of this page matches nothing."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_report objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusReportList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "title",
          "report_type",
          "aggregate_state",
          "starts_at"
        ],
        "x-cli-name-fields": [
          "title"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "title",
          "report_type",
          "starts_at",
          "ends_at",
          "affected_resources",
          "aggregate_state",
          "status_updates"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_report.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_status_report",
        "summary": "Publish an incident or scheduled maintenance report on a status page.",
        "description": "Give it a title, the `affected_resources` and their status, and for maintenance a `starts_at` and `ends_at` window. The first status update is created from the same request.",
        "tags": [
          "status_report"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/status-pages/:status_page_id/status-reports",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "manual_status_report": {
                "summary": "Manual status report",
                "value": "123456"
              },
              "maintenance": {
                "summary": "Maintenance",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusReportDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "An `affected_resources` entry names a resource that isn't on this status page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or `report_type` or an affected status is unsupported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusReportCreate"
              },
              "examples": {
                "manual_status_report": {
                  "summary": "Manual status report",
                  "value": {
                    "title": "Status report title",
                    "message": "Status update message",
                    "report_type": "manual",
                    "affected_resources": [
                      {
                        "status_page_resource_id": "12345",
                        "status": "downtime"
                      }
                    ]
                  }
                },
                "maintenance": {
                  "summary": "Maintenance",
                  "value": {
                    "title": "Maintenance title",
                    "message": "Maintenance message",
                    "report_type": "maintenance",
                    "starts_at": "2027-01-10T02:00:00Z",
                    "ends_at": "2027-01-10T04:00:00Z",
                    "affected_resources": [
                      {
                        "status_page_resource_id": "12345",
                        "status": "maintenance"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "title",
          "report_type",
          "aggregate_state",
          "starts_at"
        ],
        "x-cli-name-fields": [
          "title"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "title",
          "report_type",
          "starts_at",
          "ends_at",
          "affected_resources",
          "aggregate_state",
          "status_updates"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_report.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/status-reports/{id}": {
      "delete": {
        "operationId": "delete_status_report",
        "summary": "Delete a status report and its updates from the page permanently.",
        "tags": [
          "status_report"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/status-pages/:status_page_id/status-reports/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_report": {
                "summary": "Delete a status report",
                "value": "123456"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_report": {
                "summary": "Delete a status report",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status report doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_status_report",
        "summary": "Get a status report, an incident or maintenance notice on a status page.",
        "tags": [
          "status_report"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/status-reports/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_report": {
                "summary": "Get a status report",
                "value": "123456"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_report": {
                "summary": "Get a status report",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusReportDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status report doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "title",
          "report_type",
          "aggregate_state",
          "starts_at"
        ],
        "x-cli-name-fields": [
          "title"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "title",
          "report_type",
          "starts_at",
          "ends_at",
          "affected_resources",
          "aggregate_state",
          "status_updates"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_report.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_status_report",
        "summary": "Update a status report's title or timing.",
        "description": "For a maintenance report, it can also change `affected_resources`. Only provide the fields you want to change. `status_page_id` and `report_type` can't be changed. To change a manual report's `affected_resources`, post a [status update](/docs/uptime/api/create-a-new-status-update/) with their new statuses.",
        "tags": [
          "status_report"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/status-pages/:status_page_id/status-reports/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_report": {
                "summary": "Update a status report",
                "value": "123456"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_report": {
                "summary": "Update a status report",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusReportDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status report doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusReportUpdate"
              },
              "examples": {
                "update_a_status_report": {
                  "summary": "Update a status report",
                  "value": {
                    "title": "Updated status report title"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "title",
          "report_type",
          "aggregate_state",
          "starts_at"
        ],
        "x-cli-name-fields": [
          "title"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "title",
          "report_type",
          "starts_at",
          "ends_at",
          "affected_resources",
          "aggregate_state",
          "status_updates"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_report.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/status-reports/{status_report_id}/status-updates": {
      "get": {
        "operationId": "list_status_update",
        "summary": "List a status report's status updates, oldest first.",
        "tags": [
          "status_update"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/status-reports/:status_report_id/status-updates",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_status_updates": {
                "summary": "List Status updates",
                "value": "123456"
              }
            }
          },
          {
            "name": "status_report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_status_updates": {
                "summary": "List Status updates",
                "value": "12345"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_update objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusUpdateList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status report doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "published_at",
          "notify_subscribers",
          "message"
        ],
        "x-cli-name-fields": [
          "message"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_report_id",
          "message",
          "affected_resources",
          "published_at",
          "published_at_timezone",
          "notify_subscribers"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_update.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_status_update",
        "summary": "Post a status update to a status report, with a message and the new state.",
        "description": "Subscribers are notified if `notify_subscribers` is on.",
        "tags": [
          "status_update"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/status-pages/:status_page_id/status-reports/:status_report_id/status-updates",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_a_status_update": {
                "summary": "Create a Status update",
                "value": "123456"
              }
            }
          },
          {
            "name": "status_report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_a_status_update": {
                "summary": "Create a Status update",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_update.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusUpdateDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page or status report doesn't exist or the token can't access it, or an `affected_resources` entry names a resource that isn't on the report's status page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or an affected status is unsupported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusUpdateCreate"
              },
              "examples": {
                "create_a_status_update": {
                  "summary": "Create a Status update",
                  "value": {
                    "message": "First status update message",
                    "affected_resources": [
                      {
                        "status_page_resource_id": "12345",
                        "status": "degraded"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "published_at",
          "notify_subscribers",
          "message"
        ],
        "x-cli-name-fields": [
          "message"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_report_id",
          "message",
          "affected_resources",
          "published_at",
          "published_at_timezone",
          "notify_subscribers"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_update.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/status-reports/{status_report_id}/status-updates/{id}": {
      "delete": {
        "operationId": "delete_status_update",
        "summary": "Delete a status update from the status page permanently.",
        "description": "Deleting a report's last update deletes the report with it.",
        "tags": [
          "status_update"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/status-pages/:status_page_id/status-reports/:status_report_id/status-updates/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_update": {
                "summary": "Delete a Status update",
                "value": "123456"
              }
            }
          },
          {
            "name": "status_report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_update": {
                "summary": "Delete a Status update",
                "value": "12345"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_update": {
                "summary": "Delete a Status update",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status update doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_status_update",
        "summary": "Get a single status update, one message in a status report.",
        "tags": [
          "status_update"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/status-reports/:status_report_id/status-updates/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_update": {
                "summary": "Get a Status update",
                "value": "123456"
              }
            }
          },
          {
            "name": "status_report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_update": {
                "summary": "Get a Status update",
                "value": "12345"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_update": {
                "summary": "Get a Status update",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_update.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusUpdateDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status update doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "published_at",
          "notify_subscribers",
          "message"
        ],
        "x-cli-name-fields": [
          "message"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_report_id",
          "message",
          "affected_resources",
          "published_at",
          "published_at_timezone",
          "notify_subscribers"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_update.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_status_update",
        "summary": "Edit a status update's message, state, or publication time.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "status_update"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/status-pages/:status_page_id/status-reports/:status_report_id/status-updates/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_update": {
                "summary": "Update a Status update",
                "value": "123456"
              }
            }
          },
          {
            "name": "status_report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_update": {
                "summary": "Update a Status update",
                "value": "12345"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_update": {
                "summary": "Update a Status update",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_update.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusUpdateDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status update doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusUpdateUpdate"
              },
              "examples": {
                "update_a_status_update": {
                  "summary": "Update a Status update",
                  "value": {
                    "message": "Updated status update message"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "published_at",
          "notify_subscribers",
          "message"
        ],
        "x-cli-name-fields": [
          "message"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_report_id",
          "message",
          "affected_resources",
          "published_at",
          "published_at_timezone",
          "notify_subscribers"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_update.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/subscribers": {
      "delete": {
        "operationId": "delete_by_email_status_page_subscriber",
        "summary": "Remove a subscriber by e-mail address.",
        "description": "The subscriber stops getting updates and is marked as unsubscribed.",
        "tags": [
          "status_page_subscriber"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/status-pages/:status_page_id/subscribers",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "remove_by_e_mail": {
                "summary": "Remove by e-mail",
                "value": "987654321"
              }
            }
          },
          {
            "name": "email",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "customer@example.com"
              ]
            },
            "description": "E-mail of the subscriber to remove, matched ignoring case.",
            "examples": {
              "remove_by_e_mail": {
                "summary": "Remove by e-mail",
                "value": "customer@example.com"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The address isn't subscribed to this page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `email` parameter wasn't given.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "list_status_page_subscriber",
        "summary": "List a status page's e-mail subscribers, in ID order.",
        "description": "Addresses that unsubscribed aren't included.",
        "tags": [
          "status_page_subscriber"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/subscribers",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_status_page_subscribers": {
                "summary": "List status page subscribers",
                "value": "987654321"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_page_subscriber objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSubscriberList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API. The status page doesn't have subscriptions turned on.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "email",
          "confirmed_at"
        ],
        "x-cli-name-fields": [
          "email"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "email",
          "status_page_resource_ids",
          "confirmed_at",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_subscriber.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_status_page_subscriber",
        "summary": "Subscribe an e-mail address to a status page's updates, for every resource or only specific ones.",
        "description": "When an address that unsubscribed earlier subscribes again, its old subscriber comes back with the same ID.",
        "tags": [
          "status_page_subscriber"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v2/status-pages/:status_page_id/subscribers",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "subscribe_to_all_resources": {
                "summary": "Subscribe to all resources",
                "value": "987654321"
              },
              "subscribe_to_specific_resources": {
                "summary": "Subscribe to specific resources",
                "value": "987654321"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_page_subscriber.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSubscriberDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The status page doesn't have subscriptions turned on.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `email` attribute is missing, the address is already subscribed, the organization's subscriber limit is reached, or a `status_page_resource_ids` entry isn't a resource of this page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageSubscriberCreate"
              },
              "examples": {
                "subscribe_to_all_resources": {
                  "summary": "Subscribe to all resources",
                  "value": {
                    "email": "customer@example.com",
                    "status_page_resource_ids": []
                  }
                },
                "subscribe_to_specific_resources": {
                  "summary": "Subscribe to specific resources",
                  "value": {
                    "email": "customer@example.com",
                    "status_page_resource_ids": [
                      112233,
                      112234
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "email",
          "confirmed_at"
        ],
        "x-cli-name-fields": [
          "email"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "email",
          "status_page_resource_ids",
          "confirmed_at",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_subscriber.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/status-pages/{status_page_id}/subscribers/{id}": {
      "delete": {
        "operationId": "delete_status_page_subscriber",
        "summary": "Remove a subscriber from the status page by ID.",
        "description": "The subscriber stops getting updates and is marked as unsubscribed.",
        "tags": [
          "status_page_subscriber"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/status-pages/:status_page_id/subscribers/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "remove_by_id": {
                "summary": "Remove by ID",
                "value": "987654321"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "remove_by_id": {
                "summary": "Remove by ID",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page subscriber doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_status_page_subscriber",
        "summary": "Get a status page subscriber, someone who gets your status page's updates.",
        "tags": [
          "status_page_subscriber"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/status-pages/:status_page_id/subscribers/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page_subscriber": {
                "summary": "Get a status page subscriber",
                "value": "987654321"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page_subscriber": {
                "summary": "Get a status page subscriber",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_subscriber.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSubscriberDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page subscriber doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "email",
          "confirmed_at"
        ],
        "x-cli-name-fields": [
          "email"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "email",
          "status_page_resource_ids",
          "confirmed_at",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_subscriber.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_status_page_subscriber",
        "summary": "Change which resources a subscriber follows.",
        "description": "`status_page_resource_ids` is required and replaces the previous selection. The e-mail address can't be changed.",
        "tags": [
          "status_page_subscriber"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/status-pages/:status_page_id/subscribers/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_page_subscriber": {
                "summary": "Update a status page subscriber",
                "value": "987654321"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_page_subscriber": {
                "summary": "Update a status page subscriber",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_subscriber.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageSubscriberDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page subscriber doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageSubscriberUpdate"
              },
              "examples": {
                "update_a_status_page_subscriber": {
                  "summary": "Update a status page subscriber",
                  "value": {
                    "status_page_resource_ids": [
                      112233,
                      112234
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "email",
          "confirmed_at"
        ],
        "x-cli-name-fields": [
          "email"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_id",
          "email",
          "status_page_resource_ids",
          "confirmed_at",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_subscriber.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/team-maintenance": {
      "delete": {
        "operationId": "delete_team_maintenance",
        "summary": "End [team-wide maintenance](/docs/uptime/team-wide-maintenance/) now and resume monitoring.",
        "description": "Your team's Slack and Microsoft Teams get a message that maintenance ended. A team that isn't in maintenance is left as it is.",
        "tags": [
          "team_maintenance"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/team-maintenance",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The team maintenance doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The token can access more than one team and the request named none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_team_maintenance",
        "summary": "Get whether the team is in maintenance, and until when.",
        "tags": [
          "team_maintenance"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/team-maintenance",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single team_maintenance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamMaintenanceDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The team maintenance doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The token can access more than one team and the request named none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "team_name",
          "maintenance",
          "maintenance_to"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "maintenance",
          "maintenance_to",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.team_maintenance.get"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_team_maintenance",
        "summary": "Start [team-wide maintenance](/docs/uptime/team-wide-maintenance/), or move the end of the current one.",
        "description": "Pass exactly one of `duration` or `until`. Starting maintenance announces it in your team's Slack and Microsoft Teams, and so does its end. Moving the end is silent.",
        "tags": [
          "team_maintenance"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v2/team-maintenance",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single team_maintenance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamMaintenanceDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The team maintenance doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Neither or both of `duration` and `until` were sent, the value is out of range or unparseable, an attribute is unknown, or a token with access to more than one team didn't name a team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "duration": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Seconds from now until maintenance ends, as a positive whole number, such as `1800` for 30 minutes. At most 1000 years, which is 31556952000 seconds.",
                    "examples": [
                      1800
                    ]
                  },
                  "until": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When maintenance ends, as an ISO 8601 time in the future, at most 1000 years from now.",
                    "examples": [
                      "2027-06-01T18:30:00Z"
                    ]
                  }
                },
                "anyOf": [
                  {
                    "required": [
                      "duration"
                    ]
                  },
                  {
                    "required": [
                      "until"
                    ]
                  }
                ]
              },
              "examples": {
                "for_30_minutes": {
                  "summary": "For 30 minutes",
                  "value": {
                    "duration": 1800
                  }
                },
                "until_a_time": {
                  "summary": "Until a time",
                  "value": {
                    "until": "2027-06-01T18:30:00Z"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "team_name",
          "maintenance",
          "maintenance_to"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "maintenance",
          "maintenance_to",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.team_maintenance.get"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/third-party-services": {
      "get": {
        "operationId": "list_third_party_service",
        "summary": "List the third-party services you can display on your status pages, such as your cloud provider or payment processor, so your visitors see their current status alongside yours.",
        "tags": [
          "third_party_service"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/third-party-services",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "aws"
              ]
            },
            "description": "Only vendors whose name or an alias contains this, ignoring case."
          },
          {
            "name": "not_operational",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                true
              ]
            },
            "description": "Only vendors whose headline status or a service isn't operational.",
            "examples": {
              "services_not_fully_operational": {
                "summary": "Services not fully operational",
                "value": true
              }
            }
          },
          {
            "name": "on_status_pages",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                true
              ]
            },
            "description": "Only vendors your status pages show."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of third_party_service objects.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The third_party_service's id."
                          },
                          "type": {
                            "type": "string",
                            "const": "third_party_service"
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "The vendor's name.",
                                "readOnly": true,
                                "examples": [
                                  "AWS"
                                ]
                              },
                              "aliases": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Other names the vendor goes by. The list's `name` filter and the `id` of a single vendor match them too.",
                                "readOnly": true,
                                "examples": [
                                  [
                                    "Amazon"
                                  ]
                                ]
                              },
                              "category": {
                                "type": "string",
                                "description": "The kind of service, as the status page editor groups vendors.",
                                "readOnly": true,
                                "examples": [
                                  "Cloud"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "description": "The vendor's headline status, as its own status page states it, such as `operational`, `degraded` or `downtime`. A vendor can read `operational` with a few services down, which `services_not_operational` shows.",
                                "readOnly": true,
                                "examples": [
                                  "degraded"
                                ]
                              },
                              "services_not_operational": {
                                "type": "integer",
                                "format": "int64",
                                "description": "How many of the services or locations the vendor lists aren't operational now.",
                                "readOnly": true,
                                "examples": [
                                  3
                                ]
                              },
                              "status_page_url": {
                                "type": "string",
                                "description": "The vendor's own status page.",
                                "readOnly": true,
                                "examples": [
                                  "https://health.aws.amazon.com/health/status"
                                ]
                              },
                              "status_unknown": {
                                "type": "boolean",
                                "description": "`true` when Better Stack couldn't read the vendor's status page lately, or hasn't yet.",
                                "readOnly": true,
                                "examples": [
                                  false
                                ]
                              },
                              "status_read_at": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "When Better Stack last read the vendor's status page. `null` before the first read.",
                                "readOnly": true,
                                "examples": [
                                  "2026-11-22T10:41:00Z"
                                ]
                              },
                              "status_page_rows": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "status_page_id": {
                                      "type": "string",
                                      "description": "The ID of the status page that shows the row."
                                    },
                                    "status_page_name": {
                                      "type": "string",
                                      "description": "The status page's company name."
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "The row's name, such as `AWS: us-east-1`."
                                    },
                                    "status": {
                                      "type": "string",
                                      "description": "The status the row shows, such as `operational`, `degraded` or `downtime`."
                                    }
                                  }
                                },
                                "description": "The rows the organization's own status pages show for this vendor, each with the status the page shows for it.",
                                "readOnly": true,
                                "examples": [
                                  [
                                    {
                                      "status_page_id": "123",
                                      "status_page_name": "Acme status",
                                      "name": "AWS: us-east-1",
                                      "status": "operational"
                                    }
                                  ]
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/PaginationPageNumber"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The third-party service doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "status",
          "services_not_operational",
          "status_unknown"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "aliases",
          "category",
          "status",
          "services_not_operational",
          "status_page_url",
          "status_unknown",
          "status_read_at",
          "status_page_rows"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.third_party_service.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/third-party-services/{id}": {
      "get": {
        "operationId": "get_third_party_service",
        "summary": "Get one vendor's status changes in a time window, optionally narrowed to a region or service.",
        "tags": [
          "third_party_service"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/third-party-services/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "aws"
              ]
            },
            "description": "The vendor's `id` from the list, such as `aws`, its name, or one of its aliases.",
            "x-path-wildcard": false,
            "examples": {
              "get_a_third_party_service": {
                "summary": "Get a third-party service",
                "value": "aws"
              },
              "one_region_in_a_time_window": {
                "summary": "One region in a time window",
                "value": "aws"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "2026-11-22T09:30:00Z"
              ]
            },
            "description": "Start of the window, an ISO 8601 time with a time zone. Defaults to 24 hours before `to`.",
            "examples": {
              "one_region_in_a_time_window": {
                "summary": "One region in a time window",
                "value": "2026-11-22T09:30:00Z"
              }
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "2026-11-22T10:30:00Z"
              ]
            },
            "description": "End of the window, an ISO 8601 time with a time zone. Defaults to now.",
            "examples": {
              "one_region_in_a_time_window": {
                "summary": "One region in a time window",
                "value": "2026-11-22T10:30:00Z"
              }
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "us-east-1"
              ]
            },
            "description": "A region or group to narrow to, such as `us-east-1`. Narrow AWS, Azure and Cloudflare, which report a change somewhere on most days.",
            "examples": {
              "one_region_in_a_time_window": {
                "summary": "One region in a time window",
                "value": "us-east-1"
              }
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "EC2"
              ]
            },
            "description": "Words every service's name must contain, such as `EC2`. A change's `service` shows the names to match."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single third_party_service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThirdPartyServiceDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "No vendor's `id`, name or alias matches the ID exactly. The message lists the tracked vendors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `from` or `to` parameter isn't an ISO 8601 time with a time zone, or `to` isn't after `from`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "status",
          "services_not_operational",
          "status_unknown"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "aliases",
          "category",
          "status",
          "services_not_operational",
          "status_page_url",
          "status_unknown",
          "status_read_at",
          "status_page_rows",
          "from",
          "to",
          "region",
          "service",
          "services_total",
          "services_matched",
          "groups",
          "changes_total",
          "changes_truncated",
          "changes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.third_party_service.get"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/amazon-sns-integrations": {
      "get": {
        "operationId": "list_incidents_amazon_sns_integration",
        "summary": "List your Amazon SNS integrations, which open incidents from Amazon SNS messages.",
        "tags": [
          "incidents_amazon_sns_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/amazon-sns-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_amazon_sns_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Amazon SNS integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "subscription_state",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "topic_arn",
          "subscription_state",
          "name",
          "escalation_policy_id",
          "url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "sample_query_string",
          "sample_headers",
          "sample_body",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_amazon_sns_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_amazon_sns_integration",
        "summary": "Create an Amazon SNS integration.",
        "description": "Subscribe your SNS topic to the `url` in the response, as the [Amazon SNS integration guide](/docs/uptime/integrations/integrating-with-better-uptime/amazon-sns/) shows. Notifications sent to that URL open incidents, as the extraction fields and rules you give decide. A new integration gets the incident title from the SNS `Subject`, and the cause and alert ID from the whole message.",
        "tags": [
          "incidents_amazon_sns_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/amazon-sns-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_amazon_sns_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Amazon SNS integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Amazon SNS integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, or the request has an unknown field. A channel your plan doesn't include counts as an unknown field. If the plan doesn't include escalation policies, `escalation_policy_id` is listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationCreate"
              },
              "examples": {
                "create_an_amazon_sns_integration": {
                  "summary": "Create an Amazon SNS integration",
                  "value": {
                    "name": "Backend alerts"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "subscription_state",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "topic_arn",
          "subscription_state",
          "name",
          "escalation_policy_id",
          "url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "sample_query_string",
          "sample_headers",
          "sample_body",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_amazon_sns_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/amazon-sns-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_amazon_sns_integration",
        "summary": "Delete an Amazon SNS integration permanently.",
        "description": "The integration's URL stops accepting notifications. Remove the subscription from your SNS topic in AWS too.",
        "tags": [
          "incidents_amazon_sns_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/amazon-sns-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_amazon_sns_integration": {
                "summary": "Delete an Amazon SNS integration",
                "value": "5"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Amazon SNS integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_amazon_sns_integration",
        "summary": "Get an Amazon SNS integration, such as to find its receiving URL.",
        "tags": [
          "incidents_amazon_sns_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/amazon-sns-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_amazon_sns_integration": {
                "summary": "Get an Amazon SNS integration",
                "value": "4"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_amazon_sns_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Amazon SNS integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "subscription_state",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "topic_arn",
          "subscription_state",
          "name",
          "escalation_policy_id",
          "url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "sample_query_string",
          "sample_headers",
          "sample_body",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_amazon_sns_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_amazon_sns_integration",
        "summary": "Update an Amazon SNS integration's channels, escalation policy, or extraction.",
        "description": "Only provide the fields you want to change. An extraction field or list you send replaces the current one.",
        "tags": [
          "incidents_amazon_sns_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/amazon-sns-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_amazon_sns_integration": {
                "summary": "Update an Amazon SNS integration",
                "value": "4"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_amazon_sns_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Amazon SNS integrations, so the integration can't be unpaused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Amazon SNS integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, or the request has an unknown field. A channel your plan doesn't include counts as an unknown field. If the plan doesn't include escalation policies, `escalation_policy_id` is listed in `unauthorized_attributes`. Nothing is saved. Removing the policy, or sending the one already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationUpdate"
              },
              "examples": {
                "update_an_amazon_sns_integration": {
                  "summary": "Update an Amazon SNS integration",
                  "value": {
                    "name": "Production alerts"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "subscription_state",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "topic_arn",
          "subscription_state",
          "name",
          "escalation_policy_id",
          "url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "sample_query_string",
          "sample_headers",
          "sample_body",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_amazon_sns_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/aws-cloudwatch-integrations": {
      "get": {
        "operationId": "list_incidents_aws_cloudwatch_integration",
        "summary": "List your AWS CloudWatch integrations, which turn AWS CloudWatch alerts into incidents.",
        "tags": [
          "incidents_aws_cloudwatch_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/aws-cloudwatch-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_aws_cloudwatch_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The AWS CloudWatch integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_aws_cloudwatch_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_aws_cloudwatch_integration",
        "summary": "Create an AWS CloudWatch integration.",
        "description": "The response includes the `webhook_url` to paste into AWS CloudWatch. Alerts AWS CloudWatch sends to that URL open incidents and alert the escalation policy or channels you choose.",
        "tags": [
          "incidents_aws_cloudwatch_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/aws-cloudwatch-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_aws_cloudwatch_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include AWS CloudWatch integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The AWS CloudWatch integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationCreate"
              },
              "examples": {
                "create_an_aws_cloudwatch_integration": {
                  "summary": "Create an AWS CloudWatch integration",
                  "value": {
                    "name": "AWS CloudWatch alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_aws_cloudwatch_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/aws-cloudwatch-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_aws_cloudwatch_integration",
        "summary": "Delete an AWS CloudWatch integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_aws_cloudwatch_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/aws-cloudwatch-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_aws_cloudwatch_integration": {
                "summary": "Delete an AWS CloudWatch integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The AWS CloudWatch integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_aws_cloudwatch_integration",
        "summary": "Get an AWS CloudWatch integration, such as to find its receiving URL.",
        "tags": [
          "incidents_aws_cloudwatch_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/aws-cloudwatch-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List AWS CloudWatch integrations](/docs/uptime/api/list-all-aws-cloudwatch-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_aws_cloudwatch_integration": {
                "summary": "Get an AWS CloudWatch integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_aws_cloudwatch_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The AWS CloudWatch integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_aws_cloudwatch_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_aws_cloudwatch_integration",
        "summary": "Update an AWS CloudWatch integration's settings.",
        "description": "Change its name, escalation policy, channels, timing or paused state. Only provide the fields you want to change.",
        "tags": [
          "incidents_aws_cloudwatch_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/aws-cloudwatch-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_aws_cloudwatch_integration": {
                "summary": "Update an AWS CloudWatch integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_aws_cloudwatch_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes AWS CloudWatch integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The AWS CloudWatch integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationUpdate"
              },
              "examples": {
                "update_an_aws_cloudwatch_integration": {
                  "summary": "Update an AWS CloudWatch integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_aws_cloudwatch_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/azure-integrations": {
      "get": {
        "operationId": "list_incidents_azure_integration",
        "summary": "List your Azure integrations, which open incidents from Azure alerts.",
        "tags": [
          "incidents_azure_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/azure-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_azure_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAzureIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Azure integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_azure_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_azure_integration",
        "summary": "Create an Azure integration.",
        "description": "The response includes the `webhook_url` to paste into Azure. Alerts sent to that URL open incidents, and we notify you through the channels you choose.",
        "tags": [
          "incidents_azure_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/azure-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_azure_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAzureIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Azure integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Azure integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsAzureIntegrationCreate"
              },
              "examples": {
                "create_an_azure_integration": {
                  "summary": "Create an Azure integration",
                  "value": {
                    "name": "Azure alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_azure_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/azure-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_azure_integration",
        "summary": "Delete an Azure integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_azure_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/azure-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_azure_integration": {
                "summary": "Delete an Azure integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Azure integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_azure_integration",
        "summary": "Get an Azure integration, such as to find its receiving URL.",
        "tags": [
          "incidents_azure_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/azure-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List Azure integrations](/docs/uptime/api/list-all-azure-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_azure_integration": {
                "summary": "Get an Azure integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_azure_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAzureIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Azure integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_azure_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_azure_integration",
        "summary": "Update an Azure integration.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "incidents_azure_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/azure-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_azure_integration": {
                "summary": "Update an Azure integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_azure_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsAzureIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes Azure integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Azure integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsAzureIntegrationUpdate"
              },
              "examples": {
                "update_an_azure_integration": {
                  "summary": "Update an Azure integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_azure_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/catalog/relations": {
      "get": {
        "operationId": "list_catalog_relation",
        "summary": "List the relations in your on-call catalog, such as your services or teams.",
        "tags": [
          "catalog_relation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/catalog/relations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of catalog_relation objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRelationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "match_mode",
          "records_count"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "description",
          "match_mode",
          "records_count",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_relation.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_catalog_relation",
        "summary": "Create a catalog relation with its attributes.",
        "description": "Add rows to the relation as catalog records once it's created.",
        "tags": [
          "catalog_relation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/catalog/relations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single catalog_relation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRelationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include catalog relations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes are a missing `attributes` list or one with no primary attribute, a repeated or blank attribute name, an attribute ID from outside the relation, an unknown field in the request, or a `match_mode` other than `any` or `all`. The request also fails when `organization_id` names an unknown organization, or when you sign in with OAuth, can access more than one organization and send no `organization_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CatalogRelationCreate"
              },
              "examples": {
                "track_who_owns_each_service": {
                  "summary": "Track who owns each service",
                  "value": {
                    "name": "Services",
                    "attributes": [
                      {
                        "name": "Service",
                        "primary": true
                      },
                      {
                        "name": "Owner"
                      }
                    ]
                  }
                },
                "match_alerts_by_service_and_environment_together": {
                  "summary": "Match alerts by service and environment together",
                  "value": {
                    "name": "Service environments",
                    "description": "Who owns each service in each environment",
                    "match_mode": "all",
                    "attributes": [
                      {
                        "name": "Service",
                        "primary": true
                      },
                      {
                        "name": "Environment",
                        "primary": true
                      },
                      {
                        "name": "Owner"
                      },
                      {
                        "name": "Escalation policy"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "match_mode",
          "records_count"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "description",
          "match_mode",
          "records_count",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_relation.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/catalog/relations/{id}": {
      "delete": {
        "operationId": "delete_catalog_relation",
        "summary": "Delete a catalog relation permanently, including all its attributes and records.",
        "description": "Deleting a relation can't be undone.",
        "tags": [
          "catalog_relation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/catalog/relations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_catalog_relation": {
                "summary": "Delete a catalog relation",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_catalog_relation",
        "summary": "Get a catalog relation.",
        "description": "A relation's columns are catalog attributes, and its rows are catalog records.",
        "tags": [
          "catalog_relation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/catalog/relations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List catalog relations](/docs/uptime/api/list-all-catalog-relations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_catalog_relation": {
                "summary": "Get a catalog relation",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single catalog_relation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRelationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "match_mode",
          "records_count"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "description",
          "match_mode",
          "records_count",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_relation.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_catalog_relation",
        "summary": "Update a catalog relation's name, description, `match_mode` or attributes.",
        "description": "Send only the fields you want to change.",
        "tags": [
          "catalog_relation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/catalog/relations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_catalog_relation": {
                "summary": "Update a catalog relation",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single catalog_relation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRelationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed and nothing is changed. Common causes are an `attributes` list with no primary attribute, a repeated or blank attribute name, an attribute ID from outside the relation, or an unknown field in the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CatalogRelationUpdate"
              },
              "examples": {
                "update_a_catalog_relation": {
                  "summary": "Update a catalog relation",
                  "value": {
                    "name": "Service owners"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "match_mode",
          "records_count"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "description",
          "match_mode",
          "records_count",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_relation.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/datadog-integrations": {
      "get": {
        "operationId": "list_incidents_datadog_integration",
        "summary": "List your Datadog integrations, which turn Datadog alerts into incidents.",
        "tags": [
          "incidents_datadog_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/datadog-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_datadog_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsDatadogIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Datadog integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_datadog_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_datadog_integration",
        "summary": "Create a Datadog integration.",
        "description": "The response includes the `webhook_url` to paste into Datadog. Alerts Datadog sends to that URL open incidents and alert the escalation policy or channels you choose.",
        "tags": [
          "incidents_datadog_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/datadog-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_datadog_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsDatadogIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Datadog integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Datadog integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsDatadogIntegrationCreate"
              },
              "examples": {
                "create_a_datadog_integration": {
                  "summary": "Create a Datadog integration",
                  "value": {
                    "name": "Datadog alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_datadog_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/datadog-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_datadog_integration",
        "summary": "Delete a Datadog integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_datadog_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/datadog-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_datadog_integration": {
                "summary": "Delete a Datadog integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Datadog integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_datadog_integration",
        "summary": "Get a Datadog integration, such as to find its receiving URL.",
        "tags": [
          "incidents_datadog_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/datadog-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List Datadog integrations](/docs/uptime/api/list-all-datadog-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_datadog_integration": {
                "summary": "Get a Datadog integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_datadog_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsDatadogIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Datadog integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_datadog_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_datadog_integration",
        "summary": "Update a Datadog integration's settings.",
        "description": "Change its name, escalation policy, channels, timing or paused state. Only provide the fields you want to change.",
        "tags": [
          "incidents_datadog_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/datadog-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_datadog_integration": {
                "summary": "Update a Datadog integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_datadog_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsDatadogIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes Datadog integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Datadog integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, `alerting_rule` isn't `alert` or `alert_and_warn`, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsDatadogIntegrationUpdate"
              },
              "examples": {
                "update_a_datadog_integration": {
                  "summary": "Update a Datadog integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_datadog_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/elastic-integrations": {
      "get": {
        "operationId": "list_incidents_elastic_integration",
        "summary": "List your Elastic integrations, which open incidents from Elastic alerts.",
        "tags": [
          "incidents_elastic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/elastic-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_elastic_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsElasticIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Elastic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_elastic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_elastic_integration",
        "summary": "Create an Elastic integration.",
        "description": "The response includes the `webhook_url` to paste into Elastic. Alerts sent to that URL open incidents, and we notify you through the channels you choose.",
        "tags": [
          "incidents_elastic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/elastic-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_elastic_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsElasticIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Elastic integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Elastic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsElasticIntegrationCreate"
              },
              "examples": {
                "create_an_elastic_integration": {
                  "summary": "Create an Elastic integration",
                  "value": {
                    "name": "Elastic alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_elastic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/elastic-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_elastic_integration",
        "summary": "Delete an Elastic integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_elastic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/elastic-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_elastic_integration": {
                "summary": "Delete an Elastic integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Elastic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_elastic_integration",
        "summary": "Get an Elastic integration, such as to find its receiving URL.",
        "tags": [
          "incidents_elastic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/elastic-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List Elastic integrations](/docs/uptime/api/list-all-elastic-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_elastic_integration": {
                "summary": "Get an Elastic integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_elastic_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsElasticIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Elastic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_elastic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_elastic_integration",
        "summary": "Update an Elastic integration.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "incidents_elastic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/elastic-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_elastic_integration": {
                "summary": "Update an Elastic integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_elastic_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsElasticIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes Elastic integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Elastic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsElasticIntegrationUpdate"
              },
              "examples": {
                "update_an_elastic_integration": {
                  "summary": "Update an Elastic integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_elastic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/escalation-policy-groups": {
      "get": {
        "operationId": "list_escalation_policy_group",
        "summary": "List escalation policy groups, sorted by position, then by creation time.",
        "description": "Groups without a position come last.",
        "tags": [
          "escalation_policy_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/escalation-policy-groups",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of escalation_policy_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_escalation_policy_group",
        "summary": "Create an escalation policy group for organizing escalation policies.",
        "tags": [
          "escalation_policy_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/escalation-policy-groups",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single escalation_policy_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you can access more than one team and didn't send `team_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EscalationPolicyGroupCreate"
              },
              "examples": {
                "create_an_escalation_policy_group": {
                  "summary": "Create an escalation policy group",
                  "value": {
                    "name": "Platform on-call"
                  }
                },
                "listed_first": {
                  "summary": "Listed first",
                  "value": {
                    "name": "Critical escalations",
                    "sort_index": 0
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/escalation-policy-groups/{id}": {
      "delete": {
        "operationId": "delete_escalation_policy_group",
        "summary": "Delete an escalation policy group permanently.",
        "description": "The escalation policies inside it are kept, without a group.",
        "tags": [
          "escalation_policy_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/escalation-policy-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_escalation_policy_group": {
                "summary": "Delete an escalation policy group",
                "value": "1234567"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_escalation_policy_group",
        "summary": "Get an escalation policy group.",
        "description": "List the escalation policies inside it via [List escalation policies in a group](/docs/uptime/listing-policies-in-policy-group/).",
        "tags": [
          "escalation_policy_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/escalation-policy-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "1234567"
              ]
            },
            "description": "Get the ID via [List escalation policy groups](/docs/uptime/api/list-all-existing-escalation-policy-groups/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_escalation_policy_group": {
                "summary": "Get an escalation policy group",
                "value": "1234567"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single escalation_policy_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_escalation_policy_group",
        "summary": "Rename an escalation policy group, or change where it sorts.",
        "description": "The escalation policies inside it are untouched.",
        "tags": [
          "escalation_policy_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/escalation-policy-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_escalation_policy_group": {
                "summary": "Update an escalation policy group",
                "value": "1234567"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single escalation_policy_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EscalationPolicyGroupUpdate"
              },
              "examples": {
                "update_an_escalation_policy_group": {
                  "summary": "Update an escalation policy group",
                  "value": {
                    "name": "Example"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/file-uploads": {
      "post": {
        "operationId": "create_file_upload",
        "summary": "Get a single-use URL to upload a file such as a log, a screenshot or a trace.",
        "description": "Then attach the file by its upload ID, for example in `attachment_upload_ids` on an incident comment. The response includes a `curl` command that uploads the file. Run it in a shell, then pass the upload ID. Each upload holds one file of up to 10 MB, and you can create 10 uploads a minute. The `upload_url` expires after 15 minutes and the upload after a day. Only your organization can attach the file.",
        "tags": [
          "file_upload"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/file-uploads",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single file_upload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUploadDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The file upload doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `filename` has a path, double quotes or control characters, `content_type` isn't a MIME type, an attribute is unknown, or you signed in with OAuth, can access more than one organization and sent no `organization_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "More than 10 uploads were created with this token in the last minute. Try again in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadCreate"
              },
              "examples": {
                "upload_a_log_file": {
                  "summary": "Upload a log file",
                  "value": {
                    "filename": "checkout-errors.log",
                    "content_type": "text/plain"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "filename",
          "status",
          "expires_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "organization_id",
          "filename",
          "content_type",
          "status",
          "size",
          "upload_url",
          "upload_url_expires_at",
          "upload_command",
          "expires_at",
          "created_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.file_upload.create"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/file-uploads/{id}": {
      "get": {
        "operationId": "get_file_upload",
        "summary": "Get a file upload, such as to check that its file arrived.",
        "tags": [
          "file_upload"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/file-uploads/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_upload": {
                "summary": "Get an upload",
                "value": "123"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single file_upload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUploadDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The upload doesn't exist, expired, was already attached, or belongs to another organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "filename",
          "status",
          "expires_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "organization_id",
          "filename",
          "content_type",
          "status",
          "size",
          "upload_url",
          "upload_url_expires_at",
          "upload_command",
          "expires_at",
          "created_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.file_upload.create"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/google-monitoring-integrations": {
      "get": {
        "operationId": "list_incidents_google_monitoring_integration",
        "summary": "List your Google Monitoring integrations, which turn Google Monitoring alerts into incidents.",
        "tags": [
          "incidents_google_monitoring_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/google-monitoring-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_google_monitoring_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Google Monitoring integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_google_monitoring_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_google_monitoring_integration",
        "summary": "Create a Google Monitoring integration.",
        "description": "The response includes the `webhook_url` to paste into Google Monitoring. Alerts Google Monitoring sends to that URL open incidents and alert the escalation policy or channels you choose.",
        "tags": [
          "incidents_google_monitoring_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/google-monitoring-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_google_monitoring_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Google Monitoring integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Google Monitoring integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationCreate"
              },
              "examples": {
                "create_a_google_monitoring_integration": {
                  "summary": "Create a Google Monitoring integration",
                  "value": {
                    "name": "Google Monitoring alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_google_monitoring_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/google-monitoring-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_google_monitoring_integration",
        "summary": "Delete a Google Monitoring integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_google_monitoring_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/google-monitoring-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_google_monitoring_integration": {
                "summary": "Delete a Google Monitoring integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Google Monitoring integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_google_monitoring_integration",
        "summary": "Get a Google Monitoring integration, such as to find its receiving URL.",
        "tags": [
          "incidents_google_monitoring_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/google-monitoring-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List Google Monitoring integrations](/docs/uptime/api/list-all-google-monitoring-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_google_monitoring_integration": {
                "summary": "Get a Google Monitoring integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_google_monitoring_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Google Monitoring integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_google_monitoring_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_google_monitoring_integration",
        "summary": "Update a Google Monitoring integration's settings.",
        "description": "Change its name, escalation policy, channels, timing or paused state. Only provide the fields you want to change.",
        "tags": [
          "incidents_google_monitoring_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/google-monitoring-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_google_monitoring_integration": {
                "summary": "Update a Google Monitoring integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_google_monitoring_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes Google Monitoring integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Google Monitoring integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationUpdate"
              },
              "examples": {
                "update_a_google_monitoring_integration": {
                  "summary": "Update a Google Monitoring integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_google_monitoring_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/grafana-integrations": {
      "get": {
        "operationId": "list_incidents_grafana_integration",
        "summary": "List your Grafana integrations, which open incidents from Grafana alerts.",
        "tags": [
          "incidents_grafana_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/grafana-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_grafana_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGrafanaIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Grafana integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_grafana_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_grafana_integration",
        "summary": "Create a Grafana integration.",
        "description": "The response includes the `webhook_url` to paste into Grafana. Alerts sent to that URL open incidents, and we notify you through the channels you choose.",
        "tags": [
          "incidents_grafana_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/grafana-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_grafana_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGrafanaIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Grafana integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Grafana integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsGrafanaIntegrationCreate"
              },
              "examples": {
                "create_a_grafana_integration": {
                  "summary": "Create a Grafana integration",
                  "value": {
                    "name": "Grafana alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_grafana_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/grafana-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_grafana_integration",
        "summary": "Delete a Grafana integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_grafana_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/grafana-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_grafana_integration": {
                "summary": "Delete a Grafana integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Grafana integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_grafana_integration",
        "summary": "Get a Grafana integration, such as to find its receiving URL.",
        "tags": [
          "incidents_grafana_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/grafana-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List Grafana integrations](/docs/uptime/api/list-all-grafana-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_grafana_integration": {
                "summary": "Get a Grafana integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_grafana_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGrafanaIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Grafana integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_grafana_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_grafana_integration",
        "summary": "Update a Grafana integration.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "incidents_grafana_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/grafana-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_grafana_integration": {
                "summary": "Update a Grafana integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_grafana_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsGrafanaIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes Grafana integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Grafana integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsGrafanaIntegrationUpdate"
              },
              "examples": {
                "update_a_grafana_integration": {
                  "summary": "Update a Grafana integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_grafana_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/heartbeat-groups": {
      "get": {
        "operationId": "list_heartbeat_group",
        "summary": "List your heartbeat groups.",
        "description": "Groups are ordered by `sort_index`, then creation time.",
        "tags": [
          "heartbeat_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/heartbeat-groups",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of heartbeat_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_heartbeat_group",
        "summary": "Create a heartbeat group for organizing related heartbeats in the dashboard.",
        "tags": [
          "heartbeat_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/heartbeat-groups",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single heartbeat_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or a token with access to more than one team didn't name a team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HeartbeatGroupCreate"
              },
              "examples": {
                "create_a_heartbeat_group": {
                  "summary": "Create a heartbeat group",
                  "value": {
                    "name": "Backend services"
                  }
                },
                "listed_first": {
                  "summary": "Listed first",
                  "value": {
                    "name": "Database backups",
                    "sort_index": 0
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/heartbeat-groups/{id}": {
      "delete": {
        "operationId": "delete_heartbeat_group",
        "summary": "Delete a heartbeat group permanently.",
        "description": "The heartbeats in it are kept, without a group.",
        "tags": [
          "heartbeat_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/heartbeat-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_heartbeat_group": {
                "summary": "Delete a heartbeat group",
                "value": "95251342"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_heartbeat_group",
        "summary": "Get a heartbeat group.",
        "description": "List the heartbeats in it via [List heartbeats in a group](/docs/uptime/listing-heartbeats-in-heartbeat-group/).",
        "tags": [
          "heartbeat_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/heartbeat-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Get the ID via [List heartbeat groups](/docs/uptime/api/list-all-existing-heartbeat-groups/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_heartbeat_group": {
                "summary": "Get a heartbeat group",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single heartbeat_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_heartbeat_group",
        "summary": "Rename, reorder, or pause a heartbeat group.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "heartbeat_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/heartbeat-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "change_name_only": {
                "summary": "Change name only",
                "value": "95251342"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single heartbeat_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Unpausing would put the organization over the number of heartbeats its plan includes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's heartbeat quota is in progress. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HeartbeatGroupUpdate"
              },
              "examples": {
                "change_name_only": {
                  "summary": "Change name only",
                  "value": {
                    "name": "Backend services 2"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/heartbeat-groups/{id}/heartbeats": {
      "get": {
        "operationId": "heartbeats_heartbeat_group",
        "summary": "List the heartbeats in this group, sorted by ID.",
        "tags": [
          "heartbeat_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/heartbeat-groups/:id/heartbeats",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_the_group_s_heartbeats": {
                "summary": "List the group's heartbeats",
                "value": "123456"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of heartbeat objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "status",
          "period",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "status",
          "paused",
          "period",
          "grace",
          "heartbeat_group_id",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "server_timezone",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "paused_at",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/heartbeats": {
      "get": {
        "operationId": "list_heartbeat",
        "summary": "List your heartbeats, which alert you when a cron job or background service stops checking in.",
        "tags": [
          "heartbeat"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/heartbeats",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "-created_at"
              ]
            },
            "description": "Sort by `name`, `created_at` or `updated_at`. Put `-` before the field for descending order, like `-created_at`. Any other value is ignored. Defaults to ID order, oldest first."
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "nightly"
              ]
            },
            "description": "Only heartbeats whose name contains this text. Letter case doesn't matter."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "paused",
                "pending",
                "maintenance",
                "up",
                "validating",
                "down"
              ],
              "examples": [
                "down"
              ]
            },
            "description": "Only heartbeats currently in this status."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of heartbeat objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `status` parameter isn't one of the listed values, or `name` isn't a single string.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "status",
          "period",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "status",
          "paused",
          "period",
          "grace",
          "heartbeat_group_id",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "server_timezone",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "paused_at",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_heartbeat",
        "summary": "Create a heartbeat.",
        "description": "A heartbeat opens an incident when your cron job or service doesn't request its URL within `period` plus `grace` seconds.",
        "tags": [
          "heartbeat"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/heartbeats",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single heartbeat.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The organization has used all the heartbeats its plan includes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, such as a missing `name`, or `server_timezone` set with a period under 3600 seconds. A feature the plan doesn't include was set. `unauthorized_attributes` maps each attribute to what the plan allows. Nothing is saved. The request has an unknown field, or you can access more than one team and didn't send `team_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's heartbeat quota is in progress. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HeartbeatCreate"
              },
              "examples": {
                "create_a_heartbeat": {
                  "summary": "Create a heartbeat",
                  "value": {
                    "name": "Testing heartbeat",
                    "period": 10800,
                    "grace": 300
                  }
                },
                "with_metadata": {
                  "summary": "With metadata",
                  "value": {
                    "name": "Testing heartbeat",
                    "period": 10800,
                    "grace": 300,
                    "metadata": {
                      "Environment": [
                        {
                          "value": "production"
                        }
                      ],
                      "Owner": [
                        {
                          "type": "Team",
                          "name": "Platform"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "status",
          "period",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "status",
          "paused",
          "period",
          "grace",
          "heartbeat_group_id",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "server_timezone",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "paused_at",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/heartbeats/{id}": {
      "delete": {
        "operationId": "delete_heartbeat",
        "summary": "Delete a heartbeat permanently.",
        "description": "The heartbeat's ping URL stops working, it's removed from every status page that shows it, its metadata is deleted, and its open incidents resolve. Deleting a heartbeat can't be undone.",
        "tags": [
          "heartbeat"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/heartbeats/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_heartbeat": {
                "summary": "Delete a heartbeat",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_heartbeat",
        "summary": "Get a heartbeat's settings and current status.",
        "tags": [
          "heartbeat"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/heartbeats/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_heartbeat": {
                "summary": "Get a heartbeat",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single heartbeat.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "status",
          "period",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "status",
          "paused",
          "period",
          "grace",
          "heartbeat_group_id",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "server_timezone",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "paused_at",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_heartbeat",
        "summary": "Update a heartbeat's configuration.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "heartbeat"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/heartbeats/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_heartbeat": {
                "summary": "Update a heartbeat",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single heartbeat.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Unpausing would put the organization over the number of heartbeats its plan includes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or a feature the plan doesn't include was set. Setting `server_timezone` with a period under 3600 seconds fails validation. `unauthorized_attributes` maps each feature the plan doesn't include to what the plan allows. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's heartbeat quota is in progress. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HeartbeatUpdate"
              },
              "examples": {
                "update_a_heartbeat": {
                  "summary": "Update a heartbeat",
                  "value": {
                    "name": "Testing heartbeat, with an update"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "status",
          "period",
          "paused"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "status",
          "paused",
          "period",
          "grace",
          "heartbeat_group_id",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "server_timezone",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "paused_at",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/heartbeats/{id}/availability": {
      "get": {
        "operationId": "availability_heartbeat",
        "summary": "Get a heartbeat's availability and SLA summary for a date range.",
        "description": "The range defaults to the heartbeat's whole lifetime.",
        "tags": [
          "heartbeat"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/heartbeats/:id/availability",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "heartbeat_availability": {
                "summary": "Heartbeat availability",
                "value": "123456789"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "examples": [
                "2021-01-26"
              ]
            },
            "description": "First day of the range, as a date like `2021-01-26`. The range starts at midnight UTC that day. Required when you send `to`.",
            "examples": {
              "heartbeat_availability": {
                "summary": "Heartbeat availability",
                "value": "2021-01-26"
              }
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "examples": [
                "2021-01-27"
              ]
            },
            "description": "Last day of the range, as a date like `2021-01-27`. The range ends at the end of that day in UTC. Defaults to now.",
            "examples": {
              "heartbeat_availability": {
                "summary": "Heartbeat availability",
                "value": "2021-01-27"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the heartbeat's availability summary.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the heartbeat.",
                          "examples": [
                            "824910"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "examples": [
                            "heartbeat_availability"
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "availability": {
                              "type": "number",
                              "description": "Percentage of the range the heartbeat was up, from 0 to 100, rounded to four decimal places.",
                              "examples": [
                                99.98
                              ]
                            },
                            "total_downtime": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Downtime within the range, in whole seconds.",
                              "examples": [
                                600
                              ]
                            },
                            "number_of_incidents": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Number of incidents that overlap the range.",
                              "examples": [
                                3
                              ]
                            },
                            "longest_incident": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Downtime of the longest incident within the range, in whole seconds.",
                              "examples": [
                                300
                              ]
                            },
                            "average_incident": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Average downtime per incident within the range, in whole seconds. `0` when there were no incidents.",
                              "examples": [
                                200
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The `from` date can't be parsed or is after today, `to` is sent without `from`, or `to` is before `from`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The heartbeat doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-response-fields": [
          "id",
          "type",
          "availability",
          "total_downtime",
          "number_of_incidents",
          "longest_incident",
          "average_incident"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.heartbeat.availability"
        }
      }
    },
    "/api/v3/holiday-mode": {
      "delete": {
        "operationId": "delete_holiday_mode",
        "summary": "Turn a team member's holiday mode off now.",
        "description": "Nothing changes when it's already off.",
        "tags": [
          "holiday_mode"
        ],
        "security": [
          {
            "userOauth": []
          },
          {
            "globalApiToken": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/holiday-mode",
        "parameters": [
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$",
              "examples": [
                "u123"
              ]
            },
            "description": "The team member whose holiday mode this is, as `u123` or their e-mail address. Required with an organization API token. With OAuth, leave it out to use your own holiday mode. Get the user ID via [List team members](/docs/uptime/api/team-members/list/). Letter case doesn't matter in an e-mail address."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. A team API token can't be used, and an OAuth token can't name someone else in `user_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The holiday mode doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An organization API token sent no `user_id`, or it names no team member of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_holiday_mode",
        "summary": "Get whether a team member's holiday mode is on, and when it ends.",
        "tags": [
          "holiday_mode"
        ],
        "security": [
          {
            "userOauth": []
          },
          {
            "globalApiToken": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/holiday-mode",
        "parameters": [
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$",
              "examples": [
                "u123"
              ]
            },
            "description": "The team member whose holiday mode this is, as `u123` or their e-mail address. Required with an organization API token. With OAuth, leave it out to use your own holiday mode. Get the user ID via [List team members](/docs/uptime/api/team-members/list/). Letter case doesn't matter in an e-mail address."
          }
        ],
        "responses": {
          "200": {
            "description": "A single holiday_mode.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HolidayModeDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API. A team API token can't be used, and an OAuth token can't name someone else in `user_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The holiday mode doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An organization API token sent no `user_id`, or it names no team member of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "on_holiday",
          "holiday_ends_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "on_holiday",
          "holiday_ends_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.holiday_mode.get"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_holiday_mode",
        "summary": "Turn a team member's holiday mode on until a time, or move the end of their current holiday.",
        "tags": [
          "holiday_mode"
        ],
        "security": [
          {
            "userOauth": []
          },
          {
            "globalApiToken": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/holiday-mode",
        "parameters": [],
        "responses": {
          "200": {
            "description": "A single holiday_mode.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HolidayModeDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. A team API token can't be used, and an OAuth token can't name someone else in `user_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The holiday mode doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `holiday_ends_at` value is missing, isn't an ISO 8601 time or has already passed, an attribute is unknown, or an organization API token's `user_id` is missing or names no team member of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string",
                    "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$",
                    "description": "The team member whose holiday mode this is, as `u123` or their e-mail address. Required with an organization API token. With OAuth, leave it out to use your own holiday mode. Get the user ID via [List team members](/docs/uptime/api/team-members/list/). Letter case doesn't matter in an e-mail address.",
                    "examples": [
                      "u123"
                    ]
                  },
                  "holiday_ends_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When the holiday ends. Accepts an ISO 8601 time in the future.",
                    "examples": [
                      "2026-12-24T09:00:00Z"
                    ]
                  }
                },
                "required": [
                  "holiday_ends_at"
                ]
              },
              "examples": {
                "turn_on_holiday_mode": {
                  "summary": "Turn on holiday mode",
                  "value": {
                    "holiday_ends_at": "2026-12-24T09:00:00Z"
                  }
                },
                "turn_on_a_team_member_s_holiday_mode": {
                  "summary": "Turn on a team member's holiday mode",
                  "value": {
                    "user_id": "u123",
                    "holiday_ends_at": "2026-12-24T09:00:00Z"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "on_holiday",
          "holiday_ends_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "on_holiday",
          "holiday_ends_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.holiday_mode.get"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/incoming-email-integrations": {
      "get": {
        "operationId": "list_incidents_incoming_email_integration",
        "summary": "List your e-mail integrations, the addresses that open incidents from the e-mails they receive.",
        "tags": [
          "incidents_incoming_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/incoming-email-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_incoming_email_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "email_address",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "email_address",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_incoming_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_incoming_email_integration",
        "summary": "Create an e-mail integration.",
        "description": "The response includes the `email_address` to forward alert e-mails to. E-mails sent to it open, acknowledge and resolve incidents as the fields and rules you set describe.",
        "tags": [
          "incidents_incoming_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/incoming-email-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_incoming_email_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include e-mail integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or an attribute is unknown. A channel the plan doesn't include counts as unknown. If the plan doesn't include escalation policies, `escalation_policy_id` is listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationCreate"
              },
              "examples": {
                "create_an_incoming_e_mail_integration": {
                  "summary": "Create an incoming e-mail integration",
                  "value": {
                    "name": "Backend e-mail alerts"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "email_address",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "email_address",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_incoming_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/incoming-email-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_incoming_email_integration",
        "summary": "Delete an e-mail integration permanently.",
        "description": "The integration's inbound address stops accepting e-mail.",
        "tags": [
          "incidents_incoming_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/incoming-email-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_incoming_e_mail_integration": {
                "summary": "Delete an incoming e-mail integration",
                "value": "13760"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_incoming_email_integration",
        "summary": "Get an e-mail integration, such as to find the address that opens incidents.",
        "tags": [
          "incidents_incoming_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/incoming-email-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "13760"
              ]
            },
            "description": "Get the ID via [List e-mail integrations](/docs/uptime/api/list-all-email-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_incoming_e_mail_integration": {
                "summary": "Get an incoming e-mail integration",
                "value": "13760"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_incoming_email_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "email_address",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "email_address",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_incoming_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_incoming_email_integration",
        "summary": "Update an e-mail integration's channels, escalation policy, or extraction.",
        "description": "Only provide the fields you want to change. An extraction field or list you send replaces the current one.",
        "tags": [
          "incidents_incoming_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/incoming-email-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_incoming_e_mail_integration": {
                "summary": "Update an incoming e-mail integration",
                "value": "13755"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_incoming_email_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes e-mail integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or an attribute is unknown. A channel the plan doesn't include counts as unknown. If the plan doesn't include escalation policies, `escalation_policy_id` is listed in `unauthorized_attributes`. Nothing is saved. Removing the policy, or sending the one already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationUpdate"
              },
              "examples": {
                "update_an_incoming_e_mail_integration": {
                  "summary": "Update an incoming e-mail integration",
                  "value": {
                    "name": "Production e-mail alerts"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "email_address",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "email_address",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "recovery_period",
          "started_rule_type",
          "acknowledged_rule_type",
          "resolved_rule_type",
          "cause_field",
          "title_field",
          "started_alert_id_field",
          "acknowledged_alert_id_field",
          "resolved_alert_id_field",
          "other_started_fields",
          "other_acknowledged_fields",
          "other_resolved_fields",
          "started_rules",
          "acknowledged_rules",
          "resolved_rules",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_incoming_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/incoming-webhook-integrations": {
      "get": {
        "operationId": "list_incidents_incoming_webhook_integration",
        "summary": "List your incoming webhook integrations, the URLs that open incidents from the requests they receive.",
        "tags": [
          "incidents_incoming_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "GET /api/v3/incoming-webhook-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_incoming_webhook_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create_incidents_incoming_webhook_integration",
        "summary": "Create an incoming webhook integration.",
        "description": "The response includes the `url` to send requests to. Requests sent to it open, acknowledge and resolve incidents as the fields and rules you set describe.",
        "tags": [
          "incidents_incoming_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "POST /api/v3/incoming-webhook-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_incoming_webhook_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include incoming webhooks.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or an attribute is unknown. A channel the plan doesn't include counts as unknown. If the plan doesn't include escalation policies, `escalation_policy_id` is listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationCreate"
              },
              "examples": {
                "create_an_incoming_webhook_integration": {
                  "summary": "Create an incoming webhook integration",
                  "value": {
                    "name": "Backend service"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        }
      }
    },
    "/api/v3/incoming-webhook-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_incoming_webhook_integration",
        "summary": "Delete an incoming webhook integration permanently.",
        "description": "The integration's URL stops accepting payloads.",
        "tags": [
          "incidents_incoming_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "DELETE /api/v3/incoming-webhook-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_incoming_webhook_integration": {
                "summary": "Delete an incoming webhook integration",
                "value": "5"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_incoming_webhook_integration",
        "summary": "Get an incoming webhook integration, such as to find its receiving URL.",
        "tags": [
          "incidents_incoming_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "GET /api/v3/incoming-webhook-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_incoming_webhook_integration": {
                "summary": "Get an incoming webhook integration",
                "value": "4"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_incoming_webhook_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "update_incidents_incoming_webhook_integration",
        "summary": "Update an incoming webhook integration's channels, escalation policy, or extraction.",
        "description": "Only provide the fields you want to change. An extraction field or list you send replaces the current one.",
        "tags": [
          "incidents_incoming_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "PATCH /api/v3/incoming-webhook-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_incoming_webhook_integration": {
                "summary": "Update an incoming webhook integration",
                "value": "4"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_incoming_webhook_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes incoming webhooks.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incoming webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or an attribute is unknown. A channel the plan doesn't include counts as unknown. If the plan doesn't include escalation policies, `escalation_policy_id` is listed in `unauthorized_attributes`. Nothing is saved. Removing the policy, or sending the one already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationUpdate"
              },
              "examples": {
                "update_an_incoming_webhook_integration": {
                  "summary": "Update an incoming webhook integration",
                  "value": {
                    "name": "Production service"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        }
      }
    },
    "/api/v3/monitor-groups": {
      "get": {
        "operationId": "list_monitor_group",
        "summary": "List your monitor groups.",
        "description": "Groups are ordered by `sort_index`, then creation time.",
        "tags": [
          "monitor_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/monitor-groups",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of monitor_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_monitor_group",
        "summary": "Create a monitor group for organizing related monitors in the dashboard.",
        "tags": [
          "monitor_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/monitor-groups",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single monitor_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or a token with access to more than one team didn't name a team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorGroupCreate"
              },
              "examples": {
                "create_a_monitor_group": {
                  "summary": "Create a monitor group",
                  "value": {
                    "name": "Backend services"
                  }
                },
                "listed_first": {
                  "summary": "Listed first",
                  "value": {
                    "name": "Customer-facing websites",
                    "sort_index": 0
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/monitor-groups/{id}": {
      "delete": {
        "operationId": "delete_monitor_group",
        "summary": "Delete a monitor group permanently.",
        "description": "The monitors in it are kept, without a group.",
        "tags": [
          "monitor_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/monitor-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_monitor_group": {
                "summary": "Delete a monitor group",
                "value": "95251342"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_monitor_group",
        "summary": "Get a monitor group.",
        "description": "List the monitors in it via [List monitors in a group](/docs/uptime/api/get-all-monitors-of-a-monitor-group/).",
        "tags": [
          "monitor_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/monitor-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "95251342"
              ]
            },
            "description": "Get the ID via [List monitor groups](/docs/uptime/api/list-all-existing-monitor-groups/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_monitor_group": {
                "summary": "Get a monitor group",
                "value": "95251342"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single monitor_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_monitor_group",
        "summary": "Rename, reorder, or pause a monitor group.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "monitor_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/monitor-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_monitor_group": {
                "summary": "Update a monitor group",
                "value": "95251342"
              },
              "pause_every_monitor_in_the_group": {
                "summary": "Pause every monitor in the group",
                "value": "95251342"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single monitor_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Unpausing would put the organization over the number of monitors its plan includes, or the plan no longer includes a type of monitor in the group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's monitor quota is in progress. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorGroupUpdate"
              },
              "examples": {
                "update_a_monitor_group": {
                  "summary": "Update a monitor group",
                  "value": {
                    "name": "Backend services 2"
                  }
                },
                "pause_every_monitor_in_the_group": {
                  "summary": "Pause every monitor in the group",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "paused",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/monitor-groups/{id}/monitors": {
      "get": {
        "operationId": "monitors_monitor_group",
        "summary": "List the monitors in this group, sorted by ID.",
        "tags": [
          "monitor_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/monitor-groups/:id/monitors",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_monitors_in_a_group": {
                "summary": "List monitors in a group",
                "value": "12345"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of monitor objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "pronounceable_name",
          "url",
          "monitor_type",
          "status",
          "paused"
        ],
        "x-cli-name-fields": [
          "pronounceable_name",
          "scenario_name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "url",
          "monitor_type",
          "pronounceable_name",
          "monitor_group_id",
          "paused",
          "check_frequency",
          "effective_check_frequency",
          "effective_check_frequency_reason",
          "request_timeout",
          "recovery_period",
          "confirmation_period",
          "required_keyword",
          "http_method",
          "request_body",
          "request_headers",
          "expected_status_codes",
          "follow_redirects",
          "remember_cookies",
          "verify_ssl",
          "auth_username",
          "regions",
          "ip_version",
          "port",
          "proxy_host",
          "proxy_port",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "expiration_escalation_policy_id",
          "ssl_expiration",
          "domain_expiration",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "playwright_script",
          "scenario_name",
          "environment_variables",
          "status",
          "last_checked_at",
          "paused_at",
          "checks_version",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/monitors": {
      "get": {
        "operationId": "list_monitor",
        "summary": "List your monitors.",
        "description": "Filter by `url` or `pronounceable_name` to find a specific monitor, or by `status` or `paused`.",
        "tags": [
          "monitor"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/monitors",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "-created_at"
              ]
            },
            "description": "Sort by `name`, `created_at` or `updated_at`, with `-` in front for descending order, like `-created_at`. `name` sorts by `pronounceable_name`. Defaults to the oldest monitors first."
          },
          {
            "name": "url",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "https://google.com"
              ]
            },
            "description": "Only monitors whose URL matches exactly.",
            "examples": {
              "filter_by_url": {
                "summary": "Filter by URL",
                "value": "https://google.com"
              }
            }
          },
          {
            "name": "pronounceable_name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "Uptime homepage"
              ]
            },
            "description": "Only monitors whose pronounceable name matches exactly."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "paused",
                "pending",
                "maintenance",
                "up",
                "validating",
                "down"
              ],
              "examples": [
                "down"
              ]
            },
            "description": "Only monitors currently in this status."
          },
          {
            "name": "paused",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                false
              ]
            },
            "description": "Only paused monitors when `true`, or only monitors that aren't paused when `false`."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of monitor objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `status` parameter isn't one of the listed values, or `paused` isn't `true` or `false`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "pronounceable_name",
          "url",
          "monitor_type",
          "status",
          "paused"
        ],
        "x-cli-name-fields": [
          "pronounceable_name",
          "scenario_name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "url",
          "monitor_type",
          "pronounceable_name",
          "monitor_group_id",
          "paused",
          "check_frequency",
          "effective_check_frequency",
          "effective_check_frequency_reason",
          "request_timeout",
          "recovery_period",
          "confirmation_period",
          "required_keyword",
          "http_method",
          "request_body",
          "request_headers",
          "expected_status_codes",
          "follow_redirects",
          "remember_cookies",
          "verify_ssl",
          "auth_username",
          "regions",
          "ip_version",
          "port",
          "proxy_host",
          "proxy_port",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "expiration_escalation_policy_id",
          "ssl_expiration",
          "domain_expiration",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "playwright_script",
          "scenario_name",
          "environment_variables",
          "status",
          "last_checked_at",
          "paused_at",
          "checks_version",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      },
      "post": {
        "operationId": "create_monitor",
        "summary": "Create a monitor.",
        "description": "For HTTP checks, pass the full URL. For `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns` monitors, `url` is the bare host, such as `example.com`. Playwright monitors accept `scenario_name` and `playwright_script` instead of `url`.",
        "tags": [
          "monitor"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/monitors",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single monitor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The organization has used all the monitors its plan includes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, such as an invalid `url`. `errors` lists the messages by attribute, with messages about the whole monitor under `base`. A feature the plan doesn't include was set, or `check_frequency` is below the plan's shortest interval. `unauthorized_attributes` maps each attribute to what the plan allows. Nothing is saved. An attribute is unknown or unsupported, or a token with access to more than one team didn't name a team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's monitor quota is in progress. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorCreate"
              },
              "examples": {
                "create_a_monitor": {
                  "summary": "Create a monitor",
                  "value": {
                    "monitor_type": "status",
                    "url": "https://facebook.com",
                    "pronounceable_name": "Facebook homepage",
                    "email": true,
                    "sms": true,
                    "call": true,
                    "check_frequency": 30,
                    "request_headers": [
                      {
                        "name": "X-Custom-Header",
                        "value": "custom header value"
                      }
                    ]
                  }
                },
                "with_metadata": {
                  "summary": "With metadata",
                  "value": {
                    "monitor_type": "status",
                    "url": "https://facebook.com",
                    "pronounceable_name": "Facebook homepage",
                    "metadata": {
                      "Environment": [
                        {
                          "value": "production"
                        }
                      ],
                      "Owner": [
                        {
                          "type": "Team",
                          "name": "Platform"
                        }
                      ]
                    }
                  }
                },
                "two_custom_headers": {
                  "summary": "Two custom headers",
                  "value": {
                    "monitor_type": "status",
                    "url": "https://facebook.com",
                    "pronounceable_name": "Facebook homepage",
                    "email": true,
                    "sms": true,
                    "call": true,
                    "check_frequency": 30,
                    "request_headers": [
                      {
                        "name": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "name": "X-Api-Key",
                        "value": "secret"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "pronounceable_name",
          "url",
          "monitor_type",
          "status",
          "paused"
        ],
        "x-cli-name-fields": [
          "pronounceable_name",
          "scenario_name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "url",
          "monitor_type",
          "pronounceable_name",
          "monitor_group_id",
          "paused",
          "check_frequency",
          "effective_check_frequency",
          "effective_check_frequency_reason",
          "request_timeout",
          "recovery_period",
          "confirmation_period",
          "required_keyword",
          "http_method",
          "request_body",
          "request_headers",
          "expected_status_codes",
          "follow_redirects",
          "remember_cookies",
          "verify_ssl",
          "auth_username",
          "regions",
          "ip_version",
          "port",
          "proxy_host",
          "proxy_port",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "expiration_escalation_policy_id",
          "ssl_expiration",
          "domain_expiration",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "playwright_script",
          "scenario_name",
          "environment_variables",
          "status",
          "last_checked_at",
          "paused_at",
          "checks_version",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      }
    },
    "/api/v3/monitors/{id}": {
      "delete": {
        "operationId": "delete_monitor",
        "summary": "Delete a monitor permanently.",
        "description": "The monitor's checks stop, it's removed from your monitors and from every status page that shows it, its metadata is deleted, and its open incidents resolve. Deleting a monitor can't be undone.",
        "tags": [
          "monitor"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/monitors/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_monitor": {
                "summary": "Delete a monitor",
                "value": "225493"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_monitor",
        "summary": "Get a monitor's configuration and current status.",
        "tags": [
          "monitor"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/monitors/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_monitor": {
                "summary": "Get a monitor",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single monitor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "pronounceable_name",
          "url",
          "monitor_type",
          "status",
          "paused"
        ],
        "x-cli-name-fields": [
          "pronounceable_name",
          "scenario_name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "url",
          "monitor_type",
          "pronounceable_name",
          "monitor_group_id",
          "paused",
          "check_frequency",
          "effective_check_frequency",
          "effective_check_frequency_reason",
          "request_timeout",
          "recovery_period",
          "confirmation_period",
          "required_keyword",
          "http_method",
          "request_body",
          "request_headers",
          "expected_status_codes",
          "follow_redirects",
          "remember_cookies",
          "verify_ssl",
          "auth_username",
          "regions",
          "ip_version",
          "port",
          "proxy_host",
          "proxy_port",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "expiration_escalation_policy_id",
          "ssl_expiration",
          "domain_expiration",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "playwright_script",
          "scenario_name",
          "environment_variables",
          "status",
          "last_checked_at",
          "paused_at",
          "checks_version",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      },
      "patch": {
        "operationId": "update_monitor",
        "summary": "Update a monitor's configuration.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "monitor"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/monitors/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_monitor": {
                "summary": "Update a monitor",
                "value": "225493"
              },
              "pause_monitoring": {
                "summary": "Pause monitoring",
                "value": "225493"
              },
              "two_custom_headers": {
                "summary": "Two custom headers",
                "value": "225493"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single monitor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Unpausing would put the organization over the number of monitors its plan includes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, such as an invalid `url`. `errors` lists the messages by attribute, with messages about the whole monitor under `base`. A feature the plan doesn't include was set, or `check_frequency` was changed to a value below the plan's shortest interval. `unauthorized_attributes` maps each attribute to what the plan allows. Nothing is saved. Turning a feature off, or sending the value already set, always works. An attribute is unknown or unsupported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's monitor quota is in progress. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorUpdate"
              },
              "examples": {
                "update_a_monitor": {
                  "summary": "Update a monitor",
                  "value": {
                    "check_frequency": 60
                  }
                },
                "pause_monitoring": {
                  "summary": "Pause monitoring",
                  "value": {
                    "paused": true
                  }
                },
                "two_custom_headers": {
                  "summary": "Two custom headers",
                  "value": {
                    "request_headers": [
                      {
                        "name": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "name": "X-Api-Key",
                        "value": "secret"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "pronounceable_name",
          "url",
          "monitor_type",
          "status",
          "paused"
        ],
        "x-cli-name-fields": [
          "pronounceable_name",
          "scenario_name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "url",
          "monitor_type",
          "pronounceable_name",
          "monitor_group_id",
          "paused",
          "check_frequency",
          "effective_check_frequency",
          "effective_check_frequency_reason",
          "request_timeout",
          "recovery_period",
          "confirmation_period",
          "required_keyword",
          "http_method",
          "request_body",
          "request_headers",
          "expected_status_codes",
          "follow_redirects",
          "remember_cookies",
          "verify_ssl",
          "auth_username",
          "regions",
          "ip_version",
          "port",
          "proxy_host",
          "proxy_port",
          "email",
          "sms",
          "call",
          "push",
          "critical_alert",
          "team_wait",
          "escalation_policy_id",
          "expiration_escalation_policy_id",
          "ssl_expiration",
          "domain_expiration",
          "maintenance_from",
          "maintenance_to",
          "maintenance_timezone",
          "maintenance_days",
          "playwright_script",
          "scenario_name",
          "environment_variables",
          "status",
          "last_checked_at",
          "paused_at",
          "checks_version",
          "created_at",
          "updated_at",
          "team_id",
          "team_name",
          "metadata"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      }
    },
    "/api/v3/monitors/{id}/response-times": {
      "get": {
        "operationId": "response_times_monitor",
        "summary": "Get a monitor's response-time samples from the last 24 hours, per check region.",
        "tags": [
          "monitor"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/monitors/:id/response-times",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "monitor_response_times": {
                "summary": "Monitor response times",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the monitor's response time samples, grouped by region.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the monitor.",
                          "examples": [
                            "2"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "examples": [
                            "monitor_response_times"
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "regions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "region": {
                                    "type": "string",
                                    "description": "The check region, one of `us`, `eu`, `as` or `au`. `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns` monitors return a single `eu` entry."
                                  },
                                  "response_times": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "at": {
                                          "type": "string",
                                          "format": "date-time",
                                          "description": "When the check ran."
                                        },
                                        "response_time": {
                                          "type": "number",
                                          "description": "The check's total response time."
                                        },
                                        "name_lookup_time": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "description": "Time spent resolving the domain name, or `null` when it wasn't measured."
                                        },
                                        "connection_time": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "description": "Time spent opening the connection, or `null` when it wasn't measured."
                                        },
                                        "tls_handshake_time": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "description": "Time spent on the TLS handshake, or `null` when it wasn't measured."
                                        },
                                        "data_transfer_time": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "description": "Time spent transferring the response, or `null` when it wasn't measured."
                                        }
                                      }
                                    },
                                    "description": "The region's samples."
                                  }
                                }
                              },
                              "description": "Response-time samples per check region.",
                              "examples": [
                                [
                                  {
                                    "region": "us",
                                    "response_times": [
                                      {
                                        "at": "2026-11-21T10:00:00.000Z",
                                        "response_time": 0.412,
                                        "name_lookup_time": 0.012,
                                        "connection_time": 0.035,
                                        "tls_handshake_time": 0.081,
                                        "data_transfer_time": 0.284
                                      }
                                    ]
                                  }
                                ]
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-response-fields": [
          "id",
          "type",
          "regions"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor.response_times"
        }
      }
    },
    "/api/v3/monitors/{id}/sla": {
      "get": {
        "operationId": "availability_monitor",
        "summary": "Get a monitor's availability and SLA summary for a date range.",
        "description": "The range defaults to the monitor's whole lifetime.",
        "tags": [
          "monitor"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/monitors/:id/sla",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "monitor_availability": {
                "summary": "Monitor availability",
                "value": "123456789"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "examples": [
                "2021-01-26"
              ]
            },
            "description": "First day of the range, as a date like `2021-01-26`. The range starts at midnight UTC that day. Required when you send `to`.",
            "examples": {
              "monitor_availability": {
                "summary": "Monitor availability",
                "value": "2021-01-26"
              }
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "examples": [
                "2021-01-27"
              ]
            },
            "description": "Last day of the range, as a date like `2021-01-27`. The range ends at the end of that day in UTC. Defaults to now.",
            "examples": {
              "monitor_availability": {
                "summary": "Monitor availability",
                "value": "2021-01-27"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the monitor's availability summary.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the monitor.",
                          "examples": [
                            "258338"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "examples": [
                            "monitor_sla"
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "availability": {
                              "type": "number",
                              "description": "Percentage of the range the monitor was up, from 0 to 100, rounded to four decimal places.",
                              "examples": [
                                99.98
                              ]
                            },
                            "total_downtime": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Downtime within the range, in whole seconds.",
                              "examples": [
                                600
                              ]
                            },
                            "number_of_incidents": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Number of incidents that overlap the range.",
                              "examples": [
                                3
                              ]
                            },
                            "longest_incident": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Downtime of the longest incident within the range, in whole seconds.",
                              "examples": [
                                300
                              ]
                            },
                            "average_incident": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Average downtime per incident within the range, in whole seconds. `0` when there were no incidents.",
                              "examples": [
                                200
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The `from` date can't be parsed or is after today, `to` is sent without `from`, or `to` is before `from`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The monitor doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-response-fields": [
          "id",
          "type",
          "availability",
          "total_downtime",
          "number_of_incidents",
          "longest_incident",
          "average_incident"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.monitor.availability"
        }
      }
    },
    "/api/v3/new-relic-integrations": {
      "get": {
        "operationId": "list_incidents_new_relic_integration",
        "summary": "List your New Relic integrations, which turn New Relic alerts into incidents.",
        "tags": [
          "incidents_new_relic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/new-relic-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_new_relic_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsNewRelicIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The New Relic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_new_relic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_new_relic_integration",
        "summary": "Create a New Relic integration.",
        "description": "The response includes the `webhook_url` to paste into New Relic. Alerts New Relic sends to that URL open incidents and alert the escalation policy or channels you choose.",
        "tags": [
          "incidents_new_relic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/new-relic-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_new_relic_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsNewRelicIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include New Relic integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The New Relic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsNewRelicIntegrationCreate"
              },
              "examples": {
                "create_a_new_relic_integration": {
                  "summary": "Create a New Relic integration",
                  "value": {
                    "name": "New Relic alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_new_relic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/new-relic-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_new_relic_integration",
        "summary": "Delete a New Relic integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_new_relic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/new-relic-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_new_relic_integration": {
                "summary": "Delete a New Relic integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The New Relic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_new_relic_integration",
        "summary": "Get a New Relic integration, such as to find its receiving URL.",
        "tags": [
          "incidents_new_relic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/new-relic-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List New Relic integrations](/docs/uptime/api/list-all-new-relic-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_new_relic_integration": {
                "summary": "Get a New Relic integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_new_relic_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsNewRelicIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The New Relic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_new_relic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_new_relic_integration",
        "summary": "Update a New Relic integration's settings.",
        "description": "Change its name, escalation policy, channels, timing or paused state. Only provide the fields you want to change.",
        "tags": [
          "incidents_new_relic_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/new-relic-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_new_relic_integration": {
                "summary": "Update a New Relic integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_new_relic_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsNewRelicIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes New Relic integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The New Relic integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, `alerting_rule` isn't `alert` or `alert_and_warn`, or the plan doesn't include the escalation policy or the `call`, `sms`, `push` or `critical_alert` channel that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsNewRelicIntegrationUpdate"
              },
              "examples": {
                "update_a_new_relic_integration": {
                  "summary": "Update a New Relic integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "alerting_rule",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_new_relic_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/on-call-schedules": {
      "get": {
        "operationId": "list_on_call_schedule",
        "summary": "List your on-call schedules.",
        "description": "Each also says who is on call, now or from `from` to `to`.",
        "tags": [
          "on_call_schedule"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/on-call-schedules",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-10-26T08:00:00Z"
              ]
            },
            "description": "List who is on call from this time, as an ISO 8601 time. Defaults to now. `on_call_users` then lists who is on call at this time."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-10-27T08:00:00Z"
              ]
            },
            "description": "List who is on call until this time, at most 31 days after `from`. Defaults to `from`, which lists only the shift running at that moment."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of on_call_schedule objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallScheduleList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call schedule doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `from` or `to` parameter isn't an ISO 8601 time, `to` is before `from` or more than 31 days after it, or the request sent `date` instead of `from`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "default_schedule",
          "on_call_users",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "default_schedule",
          "slack_group_handle",
          "use_existing_slack_group",
          "slack_groups",
          "on_call_users",
          "shifts",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_schedule.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_on_call_schedule",
        "summary": "Create an on-call schedule.",
        "description": "Set up who is on call with [On-call rotations](/docs/uptime/api/create-on-call-calendar-rotation/) and [On-call events](/docs/uptime/api/list-on-call-calendar-events/).",
        "tags": [
          "on_call_schedule"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/on-call-schedules",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single on_call_schedule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallScheduleDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan includes only your team's primary on-call schedule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call schedule doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, a field is unknown or missing, `slack_group_handle` or `use_existing_slack_group` has the wrong type, or you can access more than one team and didn't send `team_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnCallScheduleCreate"
              },
              "examples": {
                "tag_who_is_on_call_with_a_new_slack_user_group": {
                  "summary": "Tag who is on call with a new Slack user group",
                  "value": {
                    "name": "Backend on-call",
                    "slack_group_handle": "backend-oncall"
                  }
                },
                "tag_who_is_on_call_with_an_existing_slack_user_group": {
                  "summary": "Tag who is on call with an existing Slack user group",
                  "value": {
                    "name": "Platform on-call",
                    "slack_group_handle": "platform-team",
                    "use_existing_slack_group": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "default_schedule",
          "on_call_users",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "default_schedule",
          "slack_group_handle",
          "use_existing_slack_group",
          "slack_groups",
          "on_call_users",
          "shifts",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_schedule.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/on-call-schedules/{id}": {
      "delete": {
        "operationId": "delete_on_call_schedule",
        "summary": "Delete an on-call schedule permanently, including its rotation and events.",
        "description": "Deleting a schedule can't be undone.",
        "tags": [
          "on_call_schedule"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/on-call-schedules/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "ID of the on-call schedule, as [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/) returns it.",
            "x-path-wildcard": false,
            "examples": {
              "delete_an_on_call_schedule": {
                "summary": "Delete an on-call schedule",
                "value": "56"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call schedule doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_on_call_schedule",
        "summary": "Get an on-call schedule and who is on call, now or from `from` to `to`.",
        "description": "Pass `default` as the ID to get the schedule marked as your team's default.",
        "tags": [
          "on_call_schedule"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/on-call-schedules/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_on_call_schedule": {
                "summary": "Get an on-call schedule",
                "value": "default"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-10-26T08:00:00Z"
              ]
            },
            "description": "List who is on call from this time, as an ISO 8601 time. Defaults to now. `on_call_users` then lists who is on call at this time."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-10-27T08:00:00Z"
              ]
            },
            "description": "List who is on call until this time, at most 31 days after `from`. Defaults to `from`, which lists only the shift running at that moment."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_schedule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallScheduleDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call schedule doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `from` or `to` parameter isn't an ISO 8601 time, `to` is before `from` or more than 31 days after it, or the request sent `date` instead of `from`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "default_schedule",
          "on_call_users",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "default_schedule",
          "slack_group_handle",
          "use_existing_slack_group",
          "slack_groups",
          "on_call_users",
          "shifts",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_schedule.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_on_call_schedule",
        "summary": "Rename an on-call schedule or change its Slack user group.",
        "description": "Change its rotation and shifts via [On-call rotations](/docs/uptime/api/create-on-call-calendar-rotation/) and [On-call events](/docs/uptime/api/list-on-call-calendar-events/).",
        "tags": [
          "on_call_schedule"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/on-call-schedules/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "ID of the on-call schedule, as [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/) returns it.",
            "x-path-wildcard": false,
            "examples": {
              "update_an_on_call_schedule": {
                "summary": "Update an on-call schedule",
                "value": "56"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_schedule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallScheduleDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call schedule doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or `slack_group_handle` or `use_existing_slack_group` has the wrong type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnCallScheduleUpdate"
              },
              "examples": {
                "update_an_on_call_schedule": {
                  "summary": "Update an on-call schedule",
                  "value": {
                    "name": "New name"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "default_schedule",
          "on_call_users",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "default_schedule",
          "slack_group_handle",
          "use_existing_slack_group",
          "slack_groups",
          "on_call_users",
          "shifts",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_schedule.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/on-call-schedules/{id}/events": {
      "get": {
        "operationId": "list_on_call_event",
        "summary": "List the shifts and overrides on an on-call schedule, earliest start first.",
        "tags": [
          "on_call_event"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/on-call-schedules/:id/events",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "list_on_call_events": {
                "summary": "List on-call events",
                "value": "default"
              },
              "with_a_time_range": {
                "summary": "With a time range",
                "value": "default"
              }
            }
          },
          {
            "name": "starts_at",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2027-01-04T22:00:00Z"
              ]
            },
            "description": "Only events starting at or after this time.",
            "examples": {
              "with_a_time_range": {
                "summary": "With a time range",
                "value": "2027-01-04T22:00:00Z"
              }
            }
          },
          {
            "name": "ends_at",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2027-01-06T22:00:00Z"
              ]
            },
            "description": "Only events ending at or before this time.",
            "examples": {
              "with_a_time_range": {
                "summary": "With a time range",
                "value": "2027-01-06T22:00:00Z"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of on_call_event objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallEventList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call event doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "starts_at",
          "ends_at",
          "override",
          "users"
        ],
        "x-cli-response-fields": [
          "id",
          "users",
          "starts_at",
          "ends_at",
          "override"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_event.list"
        },
        "x-response-envelope": {
          "list_path": [
            "events"
          ],
          "attributes_path": [],
          "id_path": [
            "id"
          ]
        }
      },
      "post": {
        "operationId": "create_on_call_event",
        "summary": "Add a shift or an override to an on-call schedule.",
        "description": "With `override: true` it's an override, which leaves the schedule's rotation in place. Adding a shift removes the schedule's rotation, but the shifts the rotation already made stay. A schedule synced from an external calendar can't get new events.",
        "tags": [
          "on_call_event"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "POST /api/v3/on-call-schedules/:id/events",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "regular_on_call_event": {
                "summary": "Regular on-call event",
                "value": "default"
              },
              "override_event": {
                "summary": "Override event",
                "value": "default"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallEventDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan doesn't include on-call scheduling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call event doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown or missing, `users` names someone who isn't a responder in the schedule's team, or validation failed. The schedule is synced from an external calendar.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnCallEventCreate"
              },
              "examples": {
                "regular_on_call_event": {
                  "summary": "Regular on-call event",
                  "value": {
                    "starts_at": "2027-01-01T09:00:00Z",
                    "ends_at": "2027-01-01T17:00:00Z",
                    "users": [
                      "tomas@example.com"
                    ]
                  }
                },
                "override_event": {
                  "summary": "Override event",
                  "value": {
                    "starts_at": "2027-01-01T09:00:00Z",
                    "ends_at": "2027-01-01T17:00:00Z",
                    "users": [
                      "tomas@example.com"
                    ],
                    "override": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        }
      },
      "put": {
        "operationId": "replace_on_call_event",
        "summary": "Replace every shift from today on with the events you send.",
        "description": "Past events and all overrides, past and future, are kept. The schedule's rotation is removed. A schedule synced from an external calendar can't be replaced. Set up each schedule either with its rotation or with this bulk replace, never both.",
        "tags": [
          "on_call_event"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "PUT /api/v3/on-call-schedules/:id/events",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "replace_on_call_events": {
                "summary": "Replace on-call events",
                "value": "default"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of on_call_event objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallEventList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan doesn't include on-call scheduling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call event doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The schedule is synced from an external calendar. The `events` attribute is missing or empty, or one of its entries has an unknown or missing key, an unknown user, or fails validation. A failed validation, such as an event starting before today at 00:00 UTC, lists the messages under `allowed_values.event`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "events": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "users": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "E-mail addresses of the people on call for this event."
                        },
                        "starts_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the event starts."
                        },
                        "ends_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the event ends."
                        },
                        "override": {
                          "type": "boolean",
                          "description": "Whether this event is an override. An override stays when the rotation changes or the events are replaced in bulk."
                        }
                      }
                    },
                    "description": "The schedule's complete new set of future events. Each entry needs `users`, `starts_at` and `ends_at`.",
                    "examples": [
                      [
                        {
                          "users": [
                            "tomas@example.com"
                          ],
                          "starts_at": "2027-01-04T22:00:00Z",
                          "ends_at": "2027-01-05T22:00:00Z"
                        },
                        {
                          "users": [
                            "simon@example.com"
                          ],
                          "starts_at": "2027-01-05T22:00:00Z",
                          "ends_at": "2027-01-06T22:00:00Z",
                          "override": true
                        }
                      ]
                    ]
                  },
                  "last_start_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Sets the schedule's default rotation start time, in your own time zone. Only an OAuth token can send it.",
                    "examples": [
                      "2027-01-04T22:00:00Z"
                    ]
                  }
                },
                "required": [
                  "events"
                ]
              },
              "examples": {
                "replace_on_call_events": {
                  "summary": "Replace on-call events",
                  "value": {
                    "events": [
                      {
                        "users": [
                          "tomas@example.com"
                        ],
                        "starts_at": "2027-01-04T22:00:00Z",
                        "ends_at": "2027-01-05T22:00:00Z"
                      },
                      {
                        "users": [
                          "simon@example.com"
                        ],
                        "starts_at": "2027-01-05T22:00:00Z",
                        "ends_at": "2027-01-06T22:00:00Z"
                      },
                      {
                        "users": [
                          "tomas@example.com"
                        ],
                        "starts_at": "2027-01-06T22:00:00Z",
                        "ends_at": "2027-01-07T22:00:00Z",
                        "override": true
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        }
      }
    },
    "/api/v3/on-call-schedules/{id}/events/overrides": {
      "get": {
        "operationId": "list_on_call_override",
        "summary": "List the overrides on an on-call schedule, earliest start first.",
        "description": "To see shifts too, use [List on-call events](/docs/uptime/api/list-on-call-calendar-events/).",
        "tags": [
          "on_call_override"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/on-call-schedules/:id/events/overrides",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "list_on_call_overrides": {
                "summary": "List on-call overrides",
                "value": "default"
              }
            }
          },
          {
            "name": "starts_at",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2024-09-04T22:00:00Z"
              ]
            },
            "description": "Only overrides starting at or after this time."
          },
          {
            "name": "ends_at",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2024-09-06T22:00:00Z"
              ]
            },
            "description": "Only overrides ending at or before this time."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of on_call_override objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallOverrideList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call schedule override doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "starts_at",
          "ends_at",
          "users"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "users",
          "starts_at",
          "ends_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_override.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_on_call_override",
        "summary": "Create an override on an on-call schedule.",
        "description": "The people it names are on call for its time instead of the shifts under it, and the schedule's rotation stays in place.",
        "tags": [
          "on_call_override"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/on-call-schedules/:id/events/overrides",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "ID of the on-call schedule, as [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/) returns it.",
            "x-path-wildcard": false,
            "examples": {
              "create_an_on_call_override": {
                "summary": "Create an on-call override",
                "value": "123"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single on_call_override.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallOverrideDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan doesn't include on-call scheduling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The schedule doesn't exist, or the ID is `default`. Use the schedule's ID from [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown or missing, `users` names someone who isn't a responder or higher in the schedule's team, a time has no time zone or is before today at 00:00 UTC, `ends_at` isn't after `starts_at`, or the schedule syncs from an external calendar.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnCallOverrideCreate"
              },
              "examples": {
                "create_an_on_call_override": {
                  "summary": "Create an on-call override",
                  "value": {
                    "users": [
                      "tomas@example.com"
                    ],
                    "starts_at": "2027-01-01T09:00:00Z",
                    "ends_at": "2027-01-01T17:00:00Z"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "starts_at",
          "ends_at",
          "users"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "users",
          "starts_at",
          "ends_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_override.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/on-call-schedules/{id}/events/overrides/{override_id}": {
      "delete": {
        "operationId": "delete_on_call_override",
        "summary": "Delete an override.",
        "description": "Deleting it puts the shifts under it back in effect.",
        "tags": [
          "on_call_override"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/on-call-schedules/:id/events/overrides/:override_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "ID of the on-call schedule, as [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/) returns it.",
            "x-path-wildcard": false,
            "examples": {
              "delete_an_on_call_override": {
                "summary": "Delete an on-call override",
                "value": "123"
              }
            }
          },
          {
            "name": "override_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "ID of the override.",
            "x-path-wildcard": false,
            "examples": {
              "delete_an_on_call_override": {
                "summary": "Delete an on-call override",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The schedule has no override with this ID. Get override IDs via [List on-call schedule overrides](/docs/uptime/api/list-on-call-schedule-overrides/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The override ended before today at 00:00 UTC and can no longer be deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_on_call_override",
        "summary": "Get an override on an on-call schedule with its users and time range.",
        "tags": [
          "on_call_override"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/on-call-schedules/:id/events/overrides/:override_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "get_an_on_call_override": {
                "summary": "Get an on-call override",
                "value": "default"
              }
            }
          },
          {
            "name": "override_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "ID of the override.",
            "x-path-wildcard": false,
            "examples": {
              "get_an_on_call_override": {
                "summary": "Get an on-call override",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_override.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallOverrideDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The schedule has no override with this ID. Get override IDs via [List on-call schedule overrides](/docs/uptime/api/list-on-call-schedule-overrides/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "starts_at",
          "ends_at",
          "users"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "users",
          "starts_at",
          "ends_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_override.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_on_call_override",
        "summary": "Update an override's users or time range.",
        "description": "Only provide the fields you want to change. The override keeps its ID, and an override that has started can still be extended or cut short through `ends_at`.",
        "tags": [
          "on_call_override"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/on-call-schedules/:id/events/overrides/:override_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "ID of the on-call schedule, as [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/) returns it.",
            "x-path-wildcard": false,
            "examples": {
              "update_an_on_call_override": {
                "summary": "Update an on-call override",
                "value": "123"
              }
            }
          },
          {
            "name": "override_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "ID of the override.",
            "x-path-wildcard": false,
            "examples": {
              "update_an_on_call_override": {
                "summary": "Update an on-call override",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_override.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallOverrideDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan doesn't include on-call scheduling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The schedule has no override with this ID. Get override IDs via [List on-call schedule overrides](/docs/uptime/api/list-on-call-schedule-overrides/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The override ended before today at 00:00 UTC and can no longer be changed, an attribute is unknown, `users` names someone who isn't a responder or higher in the schedule's team, a time has no time zone or is before today at 00:00 UTC, `ends_at` isn't after `starts_at`, or the schedule syncs from an external calendar.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnCallOverrideUpdate"
              },
              "examples": {
                "update_an_on_call_override": {
                  "summary": "Update an on-call override",
                  "value": {
                    "ends_at": "2027-01-01T19:00:00Z"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "starts_at",
          "ends_at",
          "users"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "users",
          "starts_at",
          "ends_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_override.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/on-call-schedules/{id}/events/{event_id}": {
      "delete": {
        "operationId": "delete_on_call_event",
        "summary": "Delete an on-call event.",
        "description": "Deleting an override puts the shifts under it back in effect. Deleting a shift leaves a gap for its time and removes the schedule's rotation, though its other shifts stay. On a schedule synced from an external calendar, only overrides can be deleted.",
        "tags": [
          "on_call_event"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "DELETE /api/v3/on-call-schedules/:id/events/:event_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "delete_an_on_call_event": {
                "summary": "Delete an on-call event",
                "value": "default"
              }
            }
          },
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "ID of the on-call event.",
            "x-path-wildcard": false,
            "examples": {
              "delete_an_on_call_event": {
                "summary": "Delete an on-call event",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call event doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The event ended before 00:00 UTC today and can no longer be changed. The event is a shift on a schedule synced from an external calendar. The next sync would bring it back.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_on_call_event",
        "summary": "Get a single on-call shift or override with its users and time range.",
        "tags": [
          "on_call_event"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/on-call-schedules/:id/events/:event_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "get_an_on_call_event": {
                "summary": "Get an on-call event",
                "value": "default"
              }
            }
          },
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "ID of the on-call event.",
            "x-path-wildcard": false,
            "examples": {
              "get_an_on_call_event": {
                "summary": "Get an on-call event",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallEventDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The schedule has no event with this ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "starts_at",
          "ends_at",
          "override",
          "users"
        ],
        "x-cli-response-fields": [
          "id",
          "users",
          "starts_at",
          "ends_at",
          "override"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_event.list"
        },
        "x-response-envelope": {
          "item_path": [],
          "attributes_path": [],
          "id_path": [
            "id"
          ]
        }
      },
      "patch": {
        "operationId": "update_on_call_event",
        "summary": "Update an on-call event's users or time range.",
        "description": "Only provide the fields you want to change. Changing users applies to this event only. Other events that shared its users keep them. Changing a shift removes the schedule's rotation, though its other shifts stay. Changing an override leaves the rotation in place. Events on a schedule synced from an external calendar can't be changed.",
        "tags": [
          "on_call_event"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": false,
        "x-endpoint": "PATCH /api/v3/on-call-schedules/:id/events/:event_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule.",
            "x-path-wildcard": false,
            "examples": {
              "update_an_on_call_event": {
                "summary": "Update an on-call event",
                "value": "default"
              }
            }
          },
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "ID of the on-call event.",
            "x-path-wildcard": false,
            "examples": {
              "update_an_on_call_event": {
                "summary": "Update an on-call event",
                "value": "12345678"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallEventDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan doesn't include on-call scheduling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call event doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The event ended before 00:00 UTC today and can no longer be changed, `users` names someone who isn't a responder in the schedule's team, or validation failed. An event that started before 00:00 UTC today can't be changed either. The schedule is synced from an external calendar.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnCallEventUpdate"
              },
              "examples": {
                "update_an_on_call_event": {
                  "summary": "Update an on-call event",
                  "value": {
                    "starts_at": "2027-01-01T09:45:00Z"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        }
      }
    },
    "/api/v3/on-call-schedules/{id}/rotation": {
      "delete": {
        "operationId": "delete_on_call_rotation",
        "summary": "Remove an on-call schedule's rotation.",
        "description": "The rotation's shifts are cleared from today on, or from the rotation's start when that's later. No new shifts are generated. Past shifts and overrides are kept.",
        "tags": [
          "on_call_rotation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/on-call-schedules/:id/rotation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule. Get the ID via [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/).",
            "x-path-wildcard": false,
            "examples": {
              "delete_an_on_call_rotation": {
                "summary": "Delete an on-call rotation",
                "value": "default"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call rotation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "Another change to this on-call schedule is in progress. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_on_call_rotation",
        "summary": "Get an on-call schedule's rotation, the order people are on call in and when shifts change.",
        "tags": [
          "on_call_rotation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/on-call-schedules/:id/rotation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule. Get the ID via [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_on_call_rotation": {
                "summary": "Get an on-call rotation",
                "value": "default"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single on_call_rotation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallRotationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The schedule has no rotation, or no longer follows it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The schedule is synced from an external calendar URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "users",
          "rotation_length",
          "rotation_interval",
          "start_rotations_at"
        ],
        "x-cli-response-fields": [
          "id",
          "users",
          "rotation_length",
          "rotation_interval",
          "start_rotations_at",
          "end_rotations_at",
          "timezone",
          "effective_timezone",
          "working_hours",
          "team_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_rotation.get"
        },
        "x-response-envelope": {
          "item_path": [],
          "attributes_path": [],
          "id_path": [
            "id"
          ]
        }
      },
      "post": {
        "operationId": "create_on_call_rotation",
        "summary": "Set up an on-call schedule's rotation, replacing any rotation it already has.",
        "description": "Future shifts are replaced with the new rotation's shifts, from `apply_from` if you send it, otherwise from `start_rotations_at` or now, whichever is later, including shifts after `end_rotations_at`. Overrides are kept. Shifts set by hand or by a bulk replace of on-call events are replaced too. Set up each schedule either with a rotation or with on-call events, never both. Creating, changing or deleting a shift by hand, or replacing on-call events in bulk, removes the rotation.",
        "tags": [
          "on_call_rotation"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/on-call-schedules/:id/rotation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "default"
              ]
            },
            "description": "ID of the on-call schedule. Also accepts `default`, your team's default schedule. Get the ID via [List on-call schedules](/docs/uptime/api/list-all-existing-on-call-calendars/).",
            "x-path-wildcard": false,
            "examples": {
              "hand_over_daily_paging_only_in_prague_business_hours": {
                "summary": "Hand over daily, paging only in Prague business hours",
                "value": "default"
              },
              "hand_over_weekly_paging_around_the_clock": {
                "summary": "Hand over weekly, paging around the clock",
                "value": "default"
              },
              "switch_to_12_hour_shifts_from_a_later_date": {
                "summary": "Switch to 12-hour shifts from a later date",
                "value": "default"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single on_call_rotation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnCallRotationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan doesn't include on-call scheduling.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The on-call rotation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "Another change to this on-call schedule is in progress. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The schedule is synced from an external calendar URL, a field is unknown or missing, `users` names someone who isn't a responder in the schedule's team, `timezone` or `working_hours` is invalid, or validation failed. A failed validation returns `errors` as a list of messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnCallRotationCreate"
              },
              "examples": {
                "hand_over_daily_paging_only_in_prague_business_hours": {
                  "summary": "Hand over daily, paging only in Prague business hours",
                  "value": {
                    "users": [
                      "bob@example.com",
                      "alice@example.com"
                    ],
                    "rotation_length": 1,
                    "rotation_interval": "day",
                    "start_rotations_at": "2026-02-02T00:00:00Z",
                    "end_rotations_at": "2028-02-02T00:00:00Z",
                    "timezone": "Europe/Prague",
                    "working_hours": [
                      {
                        "day": "monday",
                        "start_time": "09:00",
                        "end_time": "17:00"
                      },
                      {
                        "day": "tuesday",
                        "start_time": "09:00",
                        "end_time": "17:00"
                      },
                      {
                        "day": "wednesday",
                        "start_time": "09:00",
                        "end_time": "17:00"
                      },
                      {
                        "day": "thursday",
                        "start_time": "09:00",
                        "end_time": "17:00"
                      },
                      {
                        "day": "friday",
                        "start_time": "09:00",
                        "end_time": "17:00"
                      }
                    ]
                  }
                },
                "hand_over_weekly_paging_around_the_clock": {
                  "summary": "Hand over weekly, paging around the clock",
                  "value": {
                    "users": [
                      "alice@example.com",
                      "bob@example.com",
                      "carol@example.com"
                    ],
                    "rotation_length": 1,
                    "rotation_interval": "week",
                    "start_rotations_at": "2026-12-07T14:00:00Z",
                    "timezone": "America/New_York"
                  }
                },
                "switch_to_12_hour_shifts_from_a_later_date": {
                  "summary": "Switch to 12-hour shifts from a later date",
                  "value": {
                    "users": [
                      "alice@example.com",
                      "bob@example.com"
                    ],
                    "rotation_length": 12,
                    "rotation_interval": "hour",
                    "start_rotations_at": "2026-12-07T08:00:00Z",
                    "apply_from": "2026-12-14T08:00:00Z"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "users",
          "rotation_length",
          "rotation_interval",
          "start_rotations_at"
        ],
        "x-cli-response-fields": [
          "id",
          "users",
          "rotation_length",
          "rotation_interval",
          "start_rotations_at",
          "end_rotations_at",
          "timezone",
          "effective_timezone",
          "working_hours",
          "team_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.on_call_rotation.get"
        },
        "x-response-envelope": {
          "item_path": [],
          "attributes_path": [],
          "id_path": [
            "id"
          ]
        }
      }
    },
    "/api/v3/outgoing-email-integrations": {
      "get": {
        "operationId": "list_incidents_outgoing_email_integration",
        "summary": "List your outgoing e-mail integrations, which send incident updates to external e-mail addresses.",
        "tags": [
          "incidents_outgoing_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/outgoing-email-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_outgoing_email_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "recipients",
          "templates",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_outgoing_email_integration",
        "summary": "Create an outgoing e-mail integration.",
        "description": "Give its recipients, the incident events to e-mail about, and optional templates for each stage.",
        "tags": [
          "incidents_outgoing_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/outgoing-email-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_outgoing_email_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include outgoing e-mail integrations, or the organization is billed through Heroku or DigitalOcean.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown, or validation failed. For example, there is no recipient, an address is invalid, there are too many recipients or attributes, or no event is turned on.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationCreate"
              },
              "examples": {
                "e_mail_a_client_s_team_with_a_custom_subject": {
                  "summary": "E-mail a client's team with a custom subject",
                  "value": {
                    "name": "Client distribution list",
                    "recipients": [
                      {
                        "email": "noc@client.com"
                      },
                      {
                        "email": "ops@client.com"
                      }
                    ],
                    "on_incident_started": true,
                    "on_incident_resolved": true,
                    "templates": [
                      {
                        "incident_stage": "started",
                        "subject": "Incident: $NAME"
                      }
                    ]
                  }
                },
                "e_mail_executives_only_when_incidents_start_and_are_resolved": {
                  "summary": "E-mail executives only when incidents start and are resolved",
                  "value": {
                    "name": "Executive updates",
                    "recipients": [
                      {
                        "email": "cto@example.com"
                      },
                      {
                        "email": "vp-engineering@example.com"
                      }
                    ],
                    "on_incident_acknowledged": false,
                    "on_incident_reopened": false,
                    "on_incident_comment": false,
                    "templates": [
                      {
                        "incident_stage": "started",
                        "subject": "[Outage] $NAME",
                        "body": "We detected a problem: $CAUSE. Follow along at $INCIDENT_URL."
                      },
                      {
                        "incident_stage": "resolved",
                        "subject": "[Resolved] $NAME"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "recipients",
          "templates",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/outgoing-email-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_outgoing_email_integration",
        "summary": "Delete an outgoing e-mail integration permanently.",
        "tags": [
          "incidents_outgoing_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/outgoing-email-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_outgoing_e_mail_integration": {
                "summary": "Delete an outgoing e-mail integration",
                "value": "42"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_outgoing_email_integration",
        "summary": "Get an outgoing e-mail integration and who it e-mails about incidents.",
        "tags": [
          "incidents_outgoing_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/outgoing-email-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "42"
              ]
            },
            "description": "Get the ID via [List outgoing e-mail integrations](/docs/uptime/api/list-all-outgoing-email-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_outgoing_e_mail_integration": {
                "summary": "Get an outgoing e-mail integration",
                "value": "42"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_outgoing_email_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "recipients",
          "templates",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_outgoing_email_integration",
        "summary": "Update an outgoing e-mail integration's recipients, the incident events it e-mails about, or its templates.",
        "description": "Only provide the fields you want to change. A `recipients` list you send replaces all recipients. A `templates` list you send replaces all templates, and stages it leaves out are removed. Leave `templates` out to keep the current templates.",
        "tags": [
          "incidents_outgoing_email_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/outgoing-email-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_outgoing_e_mail_integration": {
                "summary": "Update an outgoing e-mail integration",
                "value": "42"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_outgoing_email_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing e-mail integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or an attribute is unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationUpdate"
              },
              "examples": {
                "update_an_outgoing_e_mail_integration": {
                  "summary": "Update an outgoing e-mail integration",
                  "value": {
                    "name": "Renamed client list",
                    "recipients": [
                      {
                        "email": "new@client.com"
                      }
                    ],
                    "templates": [
                      {
                        "incident_stage": "resolved",
                        "subject": "Resolved: $NAME"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "recipients",
          "templates",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_email_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/outgoing-pagerduty-integrations": {
      "get": {
        "operationId": "list_incidents_outgoing_pagerduty_integration",
        "summary": "List your PagerDuty integrations, which forward Better Stack incidents to PagerDuty services.",
        "tags": [
          "incidents_outgoing_pagerduty_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/outgoing-pagerduty-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_outgoing_pagerduty_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing PagerDuty integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "severity"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "key",
          "severity",
          "notify_alongside_primary_responder",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_pagerduty_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_outgoing_pagerduty_integration",
        "summary": "Create a PagerDuty integration.",
        "description": "Incidents are forwarded to the PagerDuty service the integration key belongs to.",
        "tags": [
          "incidents_outgoing_pagerduty_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/outgoing-pagerduty-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_outgoing_pagerduty_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include PagerDuty integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing PagerDuty integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, such as a missing or invalid name, key or severity, or an attribute is unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationCreate"
              },
              "examples": {
                "send_incidents_to_a_pagerduty_service_as_critical": {
                  "summary": "Send incidents to a PagerDuty service as critical",
                  "value": {
                    "name": "Production on-call",
                    "key": "e93facc04764012d7bfb002500d5d1a6",
                    "severity": "critical"
                  }
                },
                "send_warnings_only_when_an_escalation_policy_step_notifies_pagerduty": {
                  "summary": "Send warnings only when an escalation policy step notifies PagerDuty",
                  "value": {
                    "name": "Staging alerts",
                    "key": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
                    "severity": "warning",
                    "notify_alongside_primary_responder": false
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "severity"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "key",
          "severity",
          "notify_alongside_primary_responder",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_pagerduty_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/outgoing-pagerduty-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_outgoing_pagerduty_integration",
        "summary": "Delete a PagerDuty integration permanently.",
        "tags": [
          "incidents_outgoing_pagerduty_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/outgoing-pagerduty-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_outgoing_pagerduty_integration": {
                "summary": "Delete an outgoing PagerDuty integration",
                "value": "17"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing PagerDuty integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_outgoing_pagerduty_integration",
        "summary": "Get a PagerDuty integration and how it sends your incidents to PagerDuty.",
        "tags": [
          "incidents_outgoing_pagerduty_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/outgoing-pagerduty-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "17"
              ]
            },
            "description": "Get the ID via [List PagerDuty integrations](/docs/uptime/api/list-all-pagerduty-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_outgoing_pagerduty_integration": {
                "summary": "Get an outgoing PagerDuty integration",
                "value": "17"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_outgoing_pagerduty_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing PagerDuty integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "severity"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "key",
          "severity",
          "notify_alongside_primary_responder",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_pagerduty_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_outgoing_pagerduty_integration",
        "summary": "Update a PagerDuty integration's name, key, or severity.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "incidents_outgoing_pagerduty_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/outgoing-pagerduty-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_outgoing_pagerduty_integration": {
                "summary": "Update an outgoing PagerDuty integration",
                "value": "17"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_outgoing_pagerduty_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing PagerDuty integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed or an attribute is unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationUpdate"
              },
              "examples": {
                "update_an_outgoing_pagerduty_integration": {
                  "summary": "Update an outgoing PagerDuty integration",
                  "value": {
                    "severity": "warning"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "severity"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "key",
          "severity",
          "notify_alongside_primary_responder",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_pagerduty_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/outgoing-webhook-integrations": {
      "get": {
        "operationId": "list_incidents_outgoing_webhook_integration",
        "summary": "List your outgoing webhook integrations.",
        "tags": [
          "incidents_outgoing_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/outgoing-webhook-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_outgoing_webhook_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Looking for Splunk On-Call integrations? Use [List Splunk On-Call integrations](/docs/uptime/api/list-all-splunk-on-call-integrations/)."
        ],
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "url",
          "trigger_type"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "trigger_type",
          "metadata_api_version",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "custom_webhook_template",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_webhook_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "custom_webhook_template": [
            "headers_template"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_outgoing_webhook_integration",
        "summary": "Create an outgoing webhook integration.",
        "description": "Give it a destination `url`, a `trigger_type` of `incident_change`, `on_call_change` or `monitor_change`, and event toggles. Customize the request method, headers and body in `custom_webhook_template_attributes`.",
        "tags": [
          "incidents_outgoing_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/outgoing-webhook-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_outgoing_webhook_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include outgoing webhook integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, or the request has an unknown field. An `incident_change` webhook needs at least one event toggle turned on.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationCreate"
              },
              "examples": {
                "create_an_outgoing_webhook_integration": {
                  "summary": "Create an outgoing webhook integration",
                  "value": {
                    "name": "Test",
                    "url": "https://example.com",
                    "trigger_type": "on_call_change"
                  }
                },
                "send_incidents_with_a_text_template": {
                  "summary": "Send incidents with a text template",
                  "value": {
                    "name": "Incidents to ops tooling",
                    "url": "https://example.com/webhooks/incidents",
                    "trigger_type": "incident_change",
                    "custom_webhook_template_attributes": {
                      "http_method": "post",
                      "body_template": "{\n  \"data\": {\n    \"id\": \"$INCIDENT_ID\",\n    \"type\": \"incident\",\n    \"attributes\": {\n      \"name\": \"$NAME\",\n      \"url\": \"$URL\",\n      \"http_method\": \"$HTTP_METHOD\",\n      \"cause\": \"$CAUSE\",\n      \"started_at\": \"$STARTED_AT\",\n      \"acknowledged_at\": \"$ACKNOWLEDGED_AT\",\n      \"resolved_at\": \"$RESOLVED_AT\",\n      \"response_content\": \"$RESPONSE_CONTENT\",\n      \"response_url\": \"$RESPONSE_URL\",\n      \"screenshot_url\": \"$SCREENSHOT_URL\"\n    }\n  }\n}\n"
                    }
                  }
                },
                "send_monitor_changes_with_a_json_object_template": {
                  "summary": "Send monitor changes with a JSON object template",
                  "value": {
                    "name": "Monitor changes to ops tooling",
                    "url": "https://example.com/webhooks/monitors",
                    "trigger_type": "monitor_change",
                    "custom_webhook_template_attributes": {
                      "body_template": {
                        "monitor": "$PRONOUNCEABLE_NAME",
                        "url": "$URL",
                        "status": "$STATUS"
                      }
                    }
                  }
                },
                "send_on_call_changes_with_the_default_body_as_a_template": {
                  "summary": "Send on-call changes with the default body as a template",
                  "value": {
                    "name": "On-call changes to ops tooling",
                    "url": "https://example.com/webhooks/on-call",
                    "trigger_type": "on_call_change",
                    "custom_webhook_template_attributes": {
                      "body_template": "{\n  \"data\":{\n    \"message\": \"$MESSAGE\",\n    \"emails\": $EMAILS_JSON_ARRAY,\n    \"on_holiday_emails\": $ON_HOLIDAY_EMAILS_JSON_ARRAY,\n    \"change\": \"$CHANGE\",\n    \"calendar_id\": $ON_CALL_CALENDAR_ID,\n    \"calendar_name\": \"$ON_CALL_CALENDAR_NAME\",\n    \"primary_calendar\": $DEFAULT_ON_CALL_CALENDAR\n  }\n}\n"
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "url",
          "trigger_type"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "trigger_type",
          "metadata_api_version",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "custom_webhook_template",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_webhook_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "custom_webhook_template": [
            "headers_template"
          ]
        }
      }
    },
    "/api/v3/outgoing-webhook-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_outgoing_webhook_integration",
        "summary": "Delete an outgoing webhook integration permanently.",
        "tags": [
          "incidents_outgoing_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/outgoing-webhook-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_outgoing_webhook_integration": {
                "summary": "Delete an outgoing webhook integration",
                "value": "16"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_outgoing_webhook_integration",
        "summary": "Get an outgoing webhook integration and the events it sends to your URL.",
        "tags": [
          "incidents_outgoing_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/outgoing-webhook-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "16"
              ]
            },
            "description": "Get the ID via [List outgoing webhook integrations](/docs/uptime/api/list-all-outgoing-webhook-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_outgoing_webhook_integration": {
                "summary": "Get an outgoing webhook integration",
                "value": "16"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_outgoing_webhook_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "url",
          "trigger_type"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "trigger_type",
          "metadata_api_version",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "custom_webhook_template",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_webhook_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "custom_webhook_template": [
            "headers_template"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_outgoing_webhook_integration",
        "summary": "Update an outgoing webhook integration's URL, event toggles or request template.",
        "description": "Only provide the fields you want to change. To edit the saved template in place, send its `id` in `custom_webhook_template_attributes`, and change headers by name with its `set_headers` and `remove_headers`. `trigger_type` can't be changed after create.",
        "tags": [
          "incidents_outgoing_webhook_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/outgoing-webhook-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_outgoing_webhook_integration": {
                "summary": "Update an outgoing webhook integration",
                "value": "16"
              },
              "change_the_request_body": {
                "summary": "Change the request body",
                "value": "16"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_outgoing_webhook_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The outgoing webhook integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, or the request has an unknown field. Sending `trigger_type` fails this way, and so does sending an event toggle to a webhook whose `trigger_type` isn't `incident_change`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationUpdate"
              },
              "examples": {
                "update_an_outgoing_webhook_integration": {
                  "summary": "Update an outgoing webhook integration",
                  "value": {
                    "name": "Incident updates to the ops channel"
                  }
                },
                "change_the_request_body": {
                  "summary": "Change the request body",
                  "value": {
                    "custom_webhook_template_attributes": {
                      "id": "42",
                      "body_template": "{\"incident\":\"$INCIDENT_ID\",\"cause\":\"$CAUSE\"}"
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "url",
          "trigger_type"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "trigger_type",
          "metadata_api_version",
          "on_incident_started",
          "on_incident_acknowledged",
          "on_incident_resolved",
          "on_incident_reopened",
          "on_incident_comment",
          "notify_alongside_primary_responder",
          "paused",
          "custom_webhook_template",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_outgoing_webhook_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "custom_webhook_template": [
            "headers_template"
          ]
        }
      }
    },
    "/api/v3/prometheus-integrations": {
      "get": {
        "operationId": "list_incidents_prometheus_integration",
        "summary": "List your Prometheus integrations, which open incidents from Prometheus alerts.",
        "tags": [
          "incidents_prometheus_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/prometheus-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_prometheus_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsPrometheusIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Prometheus integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_prometheus_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_prometheus_integration",
        "summary": "Create a Prometheus integration.",
        "description": "The response includes the `webhook_url` to paste into Prometheus. Alerts sent to that URL open incidents, and we notify you through the channels you choose.",
        "tags": [
          "incidents_prometheus_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/prometheus-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_prometheus_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsPrometheusIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Prometheus integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Prometheus integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsPrometheusIntegrationCreate"
              },
              "examples": {
                "create_a_prometheus_integration": {
                  "summary": "Create a Prometheus integration",
                  "value": {
                    "name": "Prometheus alerts",
                    "sms": true,
                    "team_wait": 180
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_prometheus_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/prometheus-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_prometheus_integration",
        "summary": "Delete a Prometheus integration permanently.",
        "description": "The integration's `webhook_url` stops accepting alerts.",
        "tags": [
          "incidents_prometheus_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/prometheus-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_prometheus_integration": {
                "summary": "Delete a Prometheus integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Prometheus integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_prometheus_integration",
        "summary": "Get a Prometheus integration, such as to find its receiving URL.",
        "tags": [
          "incidents_prometheus_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/prometheus-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "37"
              ]
            },
            "description": "Get the ID via [List Prometheus integrations](/docs/uptime/api/list-all-prometheus-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_prometheus_integration": {
                "summary": "Get a Prometheus integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_prometheus_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsPrometheusIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Prometheus integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_prometheus_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_prometheus_integration",
        "summary": "Update a Prometheus integration.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "incidents_prometheus_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/prometheus-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_prometheus_integration": {
                "summary": "Update a Prometheus integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_prometheus_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsPrometheusIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The integration was unpaused, but the plan no longer includes Prometheus integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Prometheus integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you set an escalation policy or a `call`, `sms`, `push` or `critical_alert` channel your plan doesn't include. The attributes the plan doesn't include are listed in `unauthorized_attributes`. Nothing is saved. Turning a feature off, or sending the value already set, always works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsPrometheusIntegrationUpdate"
              },
              "examples": {
                "update_a_prometheus_integration": {
                  "summary": "Update a Prometheus integration",
                  "value": {
                    "paused": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "escalation_policy_id",
          "webhook_url",
          "paused",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "team_wait",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_prometheus_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/severities": {
      "get": {
        "operationId": "list_severity",
        "summary": "List your severities, the alerting levels that set how people are alerted in an escalation policy step.",
        "tags": [
          "severity"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/severities",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of severity objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "email",
          "push",
          "sms",
          "call",
          "critical_alert",
          "team_name",
          "severity_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "severity_group_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_severity",
        "summary": "Create a severity, which sets how people are alerted when an escalation policy step uses it.",
        "description": "A severity can alert by e-mail, SMS, phone call, push notification, or a critical push notification that bypasses silent mode.",
        "tags": [
          "severity"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/severities",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single severity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown, or a token with access to more than one team didn't name a team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeverityCreate"
              },
              "examples": {
                "create_a_severity": {
                  "summary": "Create a severity",
                  "value": {
                    "name": "New severity",
                    "sms": false,
                    "call": true,
                    "email": false,
                    "push": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "email",
          "push",
          "sms",
          "call",
          "critical_alert",
          "team_name",
          "severity_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "severity_group_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/severities/{id}": {
      "delete": {
        "operationId": "delete_severity",
        "summary": "Delete a severity permanently.",
        "description": "Escalation policy steps referencing it must be changed first.",
        "tags": [
          "severity"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/severities/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_severity": {
                "summary": "Delete a severity",
                "value": "456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The severity is still used by an escalation policy step. The response lists `severity_id` in `invalid_attributes`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_severity",
        "summary": "Get a severity, an alerting level that sets how people are alerted.",
        "tags": [
          "severity"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/severities/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_severity": {
                "summary": "Get a severity",
                "value": "123"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single severity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity doesn't exist, or the token can't access it. Get the IDs via [List severities](/docs/uptime/api/list-all-severities/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "email",
          "push",
          "sms",
          "call",
          "critical_alert",
          "team_name",
          "severity_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "severity_group_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_severity",
        "summary": "Update a severity's name, group, or notification channels.",
        "description": "Only provide the fields you want to change.",
        "tags": [
          "severity"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/severities/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_severity": {
                "summary": "Update a severity",
                "value": "456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single severity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeverityUpdate"
              },
              "examples": {
                "update_a_severity": {
                  "summary": "Update a severity",
                  "value": {
                    "name": "Edited severity",
                    "sms": false,
                    "call": true,
                    "email": false,
                    "push": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "email",
          "push",
          "sms",
          "call",
          "critical_alert",
          "team_name",
          "severity_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "severity_group_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/severity-groups": {
      "get": {
        "operationId": "list_severity_group",
        "summary": "List your severity groups.",
        "description": "Severity groups are ordered by `sort_index`, then creation time.",
        "tags": [
          "severity_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/severity-groups",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of severity_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_severity_group",
        "summary": "Create a severity group for organizing severities.",
        "tags": [
          "severity_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/severity-groups",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single severity_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, the request has an unknown field, or you can access more than one team and didn't send `team_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeverityGroupCreate"
              },
              "examples": {
                "create_a_severity_group": {
                  "summary": "Create a severity group",
                  "value": {
                    "name": "Customer-facing"
                  }
                },
                "listed_first": {
                  "summary": "Listed first",
                  "value": {
                    "name": "Production outages",
                    "sort_index": 0
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/severity-groups/{id}": {
      "delete": {
        "operationId": "delete_severity_group",
        "summary": "Delete a severity group permanently.",
        "description": "The severities inside it are kept, without a group.",
        "tags": [
          "severity_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/severity-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_severity_group": {
                "summary": "Delete a severity group",
                "value": "1234567"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_severity_group",
        "summary": "Get a severity group and the severities in it.",
        "tags": [
          "severity_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/severity-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "1234567"
              ]
            },
            "description": "Get the ID via [List severity groups](/docs/uptime/api/list-all-existing-severity-groups/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_severity_group": {
                "summary": "Get a severity group",
                "value": "1234567"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single severity_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_severity_group",
        "summary": "Rename a severity group, or change where it sorts.",
        "description": "The severities inside it are untouched.",
        "tags": [
          "severity_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/severity-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_severity_group": {
                "summary": "Update a severity group",
                "value": "1234567"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single severity_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeverityGroupUpdate"
              },
              "examples": {
                "update_a_severity_group": {
                  "summary": "Update a severity group",
                  "value": {
                    "name": "Example"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "sort_index"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "sort_index",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/severity-groups/{id}/severities": {
      "get": {
        "operationId": "severities_severity_group",
        "summary": "List the severities in this group, in ID order.",
        "tags": [
          "severity_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/severity-groups/:id/severities",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_the_group_s_severities": {
                "summary": "List the group's severities",
                "value": "1234567"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of severity objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeverityList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The severity group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "email",
          "push",
          "sms",
          "call",
          "critical_alert",
          "team_name",
          "severity_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "severity_group_id",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.severity.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/splunk-on-call-integrations": {
      "get": {
        "operationId": "list_incidents_splunk_on_call_integration",
        "summary": "List your Splunk On-Call integrations, which send your incidents to Splunk On-Call.",
        "tags": [
          "incidents_splunk_on_call_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/splunk-on-call-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_splunk_on_call_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Splunk On-Call integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_splunk_on_call_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_splunk_on_call_integration",
        "summary": "Create a Splunk On-Call integration.",
        "description": "Your incidents are sent to the Splunk On-Call URL in `url`.",
        "tags": [
          "incidents_splunk_on_call_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v3/splunk-on-call-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incidents_splunk_on_call_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include Splunk On-Call integrations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Splunk On-Call integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, such as a missing or invalid `url`, or the request has an unknown field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationCreate"
              },
              "examples": {
                "forward_incidents_to_a_splunk_on_call_routing_key": {
                  "summary": "Forward incidents to a Splunk On-Call routing key",
                  "value": {
                    "name": "Production alerts",
                    "url": "https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production"
                  }
                },
                "forward_only_when_an_escalation_policy_step_notifies_splunk_on_call": {
                  "summary": "Forward only when an escalation policy step notifies Splunk On-Call",
                  "value": {
                    "name": "Database escalations",
                    "url": "https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database",
                    "notify_alongside_primary_responder": false
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_splunk_on_call_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v3/splunk-on-call-integrations/{id}": {
      "delete": {
        "operationId": "delete_incidents_splunk_on_call_integration",
        "summary": "Delete a Splunk On-Call integration permanently.",
        "tags": [
          "incidents_splunk_on_call_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v3/splunk-on-call-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_splunk_on_call_integration": {
                "summary": "Delete a Splunk On-Call integration",
                "value": "17"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Splunk On-Call integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incidents_splunk_on_call_integration",
        "summary": "Get a Splunk On-Call integration and how it sends your incidents to Splunk On-Call.",
        "tags": [
          "incidents_splunk_on_call_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v3/splunk-on-call-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "17"
              ]
            },
            "description": "Get the ID via [List Splunk On-Call integrations](/docs/uptime/api/list-all-splunk-on-call-integrations/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_splunk_on_call_integration": {
                "summary": "Get a Splunk On-Call integration",
                "value": "17"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_splunk_on_call_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Splunk On-Call integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_splunk_on_call_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_splunk_on_call_integration",
        "summary": "Update a Splunk On-Call integration.",
        "description": "Send only the fields you want to change.",
        "tags": [
          "incidents_splunk_on_call_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v3/splunk-on-call-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_splunk_on_call_integration": {
                "summary": "Update a Splunk On-Call integration",
                "value": "17"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_splunk_on_call_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Splunk On-Call integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationUpdate"
              },
              "examples": {
                "update_a_splunk_on_call_integration": {
                  "summary": "Update a Splunk On-Call integration",
                  "value": {
                    "notify_alongside_primary_responder": false
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "url",
          "notify_alongside_primary_responder",
          "paused",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_splunk_on_call_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/catalog/relations/{catalog_relation_id}/records": {
      "get": {
        "operationId": "list_catalog_record",
        "summary": "List a catalog relation's records, in ID order.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/catalog/relations/:catalog_relation_id/records",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_catalog_records": {
                "summary": "List catalog records",
                "value": "67"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of catalog_record objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRecordList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_record.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_catalog_record",
        "summary": "Add a record to a catalog relation, with values for its attributes.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/catalog/relations/:catalog_relation_id/records",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "name_the_team_that_owns_a_service": {
                "summary": "Name the team that owns a service",
                "value": "67"
              },
              "route_a_service_to_its_escalation_policy_and_tech_lead": {
                "summary": "Route a service to its escalation policy and tech lead",
                "value": "67"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single catalog_record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRecordDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it. Get the relation ID via [List catalog relations](/docs/uptime/api/list-all-catalog-relations/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CatalogRecordCreate"
              },
              "examples": {
                "name_the_team_that_owns_a_service": {
                  "summary": "Name the team that owns a service",
                  "value": {
                    "attributes": [
                      {
                        "attribute": {
                          "id": "56",
                          "name": "Service"
                        },
                        "values": [
                          {
                            "type": "String",
                            "value": "checkout-api"
                          }
                        ]
                      },
                      {
                        "attribute": {
                          "id": "57",
                          "name": "Owner"
                        },
                        "values": [
                          {
                            "type": "Team",
                            "item_id": "t123"
                          }
                        ]
                      }
                    ]
                  }
                },
                "route_a_service_to_its_escalation_policy_and_tech_lead": {
                  "summary": "Route a service to its escalation policy and tech lead",
                  "value": {
                    "attributes": [
                      {
                        "attribute": {
                          "id": "56",
                          "name": "Service"
                        },
                        "values": [
                          {
                            "type": "String",
                            "value": "payments-api"
                          }
                        ]
                      },
                      {
                        "attribute": {
                          "id": "58",
                          "name": "Escalation policy"
                        },
                        "values": [
                          {
                            "type": "EscalationPolicy",
                            "name": "Payments on-call"
                          }
                        ]
                      },
                      {
                        "attribute": {
                          "id": "59",
                          "name": "Tech lead"
                        },
                        "values": [
                          {
                            "type": "User",
                            "email": "jane.cooper@example.com"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_record.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/catalog/relations/{catalog_relation_id}/records/batch": {
      "delete": {
        "operationId": "batch_delete_catalog_record",
        "summary": "Delete records from a catalog relation by their primary attribute values, or send `all: true` to delete every record.",
        "description": "The relation and its attributes stay.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v4/catalog/relations/:catalog_relation_id/records/batch",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "batch_delete_catalog_records": {
                "summary": "Batch delete catalog records",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns how many records were deleted, and what happened to each record you sent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "object",
                      "properties": {
                        "removed_count": {
                          "type": "integer",
                          "format": "int64",
                          "description": "Number of records this request deleted.",
                          "examples": [
                            1
                          ]
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "result": {
                                "type": "string",
                                "enum": [
                                  "removed",
                                  "no_match",
                                  "several_match"
                                ],
                                "description": "The outcome.\n\n- `removed`: The record was deleted.\n- `no_match`: No record matches the values.\n- `several_match`: The values match more than one record, and none was deleted.",
                                "x-enum-descriptions": {
                                  "removed": "The record was deleted.",
                                  "no_match": "No record matches the values.",
                                  "several_match": "The values match more than one record, and none was deleted."
                                }
                              },
                              "record_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "IDs of the records the values match."
                              }
                            }
                          },
                          "description": "One result per record sent, in the same order. Not returned with `all: true`.",
                          "examples": [
                            [
                              {
                                "result": "removed",
                                "record_ids": [
                                  "67"
                                ]
                              }
                            ]
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it. Get the relation ID via [List catalog relations](/docs/uptime/api/list-all-catalog-relations/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Both `records` and `all` were sent, or neither was. The request also fails when `records` has more than 100 entries, when a record names an unknown attribute, an unknown value or an attribute that isn't primary, or when the relation has no primary attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "attributes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "attribute": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The catalog attribute's ID."
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "The catalog attribute's name."
                                  }
                                },
                                "description": "A primary attribute, by its ID or name."
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "description": "The value's type, which is `String` or the type of the referenced item."
                                    },
                                    "value": {
                                      "type": "string",
                                      "description": "The text of a String value."
                                    },
                                    "item_id": {
                                      "type": "string",
                                      "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "Referenced item's name."
                                    },
                                    "email": {
                                      "type": "string",
                                      "description": "Referenced user's e-mail."
                                    }
                                  },
                                  "allOf": [
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "User"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "properties": {
                                          "item_id": {
                                            "type": "string",
                                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "Team"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "properties": {
                                          "item_id": {
                                            "type": "string",
                                            "pattern": "^t[1-9][0-9]*$"
                                          }
                                        }
                                      }
                                    }
                                  ]
                                },
                                "description": "The record's values for this attribute, in the same form as when you create a record."
                              }
                            },
                            "required": [
                              "attribute",
                              "values"
                            ]
                          },
                          "description": "The record's primary attribute values. When you leave out a primary attribute, only a record with no value for it matches."
                        }
                      }
                    },
                    "description": "Records to delete, up to 100. Give each record by its primary attribute values only. A record is deleted when its primary values match exactly. Send either `records` or `all`.",
                    "examples": [
                      [
                        {
                          "attributes": [
                            {
                              "attribute": {
                                "name": "Service"
                              },
                              "values": [
                                {
                                  "type": "String",
                                  "value": "checkout"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    ]
                  },
                  "all": {
                    "type": "boolean",
                    "description": "Set to `true` to delete every record in the relation. Send either `records` or `all`.",
                    "examples": [
                      true
                    ]
                  }
                }
              },
              "examples": {
                "batch_delete_catalog_records": {
                  "summary": "Batch delete catalog records",
                  "value": {
                    "all": true
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-response-envelope": {
          "item_path": [],
          "attributes_path": []
        }
      },
      "patch": {
        "operationId": "batch_upsert_catalog_record",
        "summary": "Add or update several records in a relation at once, matched by their primary attribute values.",
        "description": "When a record you send has the same primary values as an existing record, the attributes you send are updated on that record. Every other record you send is created. If one record can't be saved, none are. The order of primary values doesn't matter, and an empty primary attribute matches only records where it's also empty. Sending the same request again doesn't create duplicates.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v4/catalog/relations/:catalog_relation_id/records/batch",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_or_update_catalog_records": {
                "summary": "Create or update catalog records",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of catalog_record objects.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CatalogRecordList"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "properties": {
                            "created": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "IDs of the records this request created.",
                              "examples": [
                                [
                                  "68"
                                ]
                              ]
                            },
                            "updated": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "IDs of the records this request updated.",
                              "examples": [
                                [
                                  "67"
                                ]
                              ]
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it. Get the relation ID via [List catalog relations](/docs/uptime/api/list-all-catalog-relations/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The body isn't a JSON array of objects, or a record can't be saved. The response's `record_index` is the position of the record that couldn't be saved, counting from 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CatalogRecordCreateAttributes"
                }
              },
              "examples": {
                "create_or_update_catalog_records": {
                  "summary": "Create or update catalog records",
                  "value": [
                    {
                      "attributes": [
                        {
                          "attribute": {
                            "id": "56",
                            "name": "Team"
                          },
                          "values": [
                            {
                              "type": "String",
                              "value": "My Team"
                            }
                          ]
                        },
                        {
                          "attribute": {
                            "id": "57",
                            "name": "Team Lead"
                          },
                          "values": [
                            {
                              "type": "User",
                              "email": "alice@example.com"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "attributes": [
                        {
                          "attribute": {
                            "id": "56",
                            "name": "Team"
                          },
                          "values": [
                            {
                              "type": "String",
                              "value": "Another Team"
                            }
                          ]
                        },
                        {
                          "attribute": {
                            "id": "57",
                            "name": "Team Lead"
                          },
                          "values": [
                            {
                              "type": "User",
                              "email": "bob@example.com"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "x-notes": [
          "An attribute sent with an empty `values` list is cleared.",
          "Returns the saved records in the order sent, all in one page."
        ],
        "x-cli-default-fields": [
          "id"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_record.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "batch_create_catalog_record",
        "summary": "Create several records in one relation at once.",
        "description": "Every record is checked before any is saved, and one invalid record fails the whole batch.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/catalog/relations/:catalog_relation_id/records/batch",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "batch_create_catalog_records": {
                "summary": "Batch create catalog records",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it. Get the relation ID via [List catalog relations](/docs/uptime/api/list-all-catalog-relations/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The body isn't a JSON array of objects, or a record is invalid. The response's `record_index` is the position of the first invalid record, counting from 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CatalogRecordCreateAttributes"
                }
              },
              "examples": {
                "batch_create_catalog_records": {
                  "summary": "Batch create catalog records",
                  "value": [
                    {
                      "attributes": [
                        {
                          "attribute": {
                            "id": "56",
                            "name": "Team"
                          },
                          "values": [
                            {
                              "type": "String",
                              "value": "My Team"
                            }
                          ]
                        },
                        {
                          "attribute": {
                            "id": "57",
                            "name": "Team Lead"
                          },
                          "values": [
                            {
                              "type": "Team",
                              "item_id": "t123"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "attributes": [
                        {
                          "attribute": {
                            "id": "56",
                            "name": "Team"
                          },
                          "values": [
                            {
                              "type": "String",
                              "value": "Another Team"
                            }
                          ]
                        },
                        {
                          "attribute": {
                            "id": "57",
                            "name": "Team Lead"
                          },
                          "values": [
                            {
                              "type": "Team",
                              "item_id": "t124"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "batch_replace_catalog_record",
        "summary": "Replace every record in a relation.",
        "description": "The relation's existing records are deleted, and the records you send are created in their place. Every record is checked before any is saved.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PUT /api/v4/catalog/relations/:catalog_relation_id/records/batch",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "batch_replace_catalog_records": {
                "summary": "Batch replace catalog records",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog relation doesn't exist, or the token can't access it. Get the relation ID via [List catalog relations](/docs/uptime/api/list-all-catalog-relations/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The body isn't a JSON array of objects, or a record is invalid. The response's `record_index` is the position of the first invalid record, counting from 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CatalogRecordCreateAttributes"
                }
              },
              "examples": {
                "batch_replace_catalog_records": {
                  "summary": "Batch replace catalog records",
                  "value": [
                    {
                      "attributes": [
                        {
                          "attribute": {
                            "id": "56",
                            "name": "Team"
                          },
                          "values": [
                            {
                              "type": "String",
                              "value": "My Team"
                            }
                          ]
                        },
                        {
                          "attribute": {
                            "id": "57",
                            "name": "Team Lead"
                          },
                          "values": [
                            {
                              "type": "Team",
                              "item_id": "t123"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "attributes": [
                        {
                          "attribute": {
                            "id": "56",
                            "name": "Team"
                          },
                          "values": [
                            {
                              "type": "String",
                              "value": "Another Team"
                            }
                          ]
                        },
                        {
                          "attribute": {
                            "id": "57",
                            "name": "Team Lead"
                          },
                          "values": [
                            {
                              "type": "Team",
                              "item_id": "t124"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v4/catalog/relations/{catalog_relation_id}/records/{id}": {
      "delete": {
        "operationId": "delete_catalog_record",
        "summary": "Delete a catalog record from its relation permanently.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v4/catalog/relations/:catalog_relation_id/records/:id",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_catalog_record": {
                "summary": "Delete a catalog record",
                "value": "37"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_catalog_record": {
                "summary": "Delete a catalog record",
                "value": "67"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog record doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_catalog_record",
        "summary": "Get a catalog record with its attribute values.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/catalog/relations/:catalog_relation_id/records/:id",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_catalog_record": {
                "summary": "Get a catalog record",
                "value": "37"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "Get the ID via [List catalog records](/docs/uptime/api/list-all-catalog-records/).",
            "x-path-wildcard": false,
            "examples": {
              "get_a_catalog_record": {
                "summary": "Get a catalog record",
                "value": "67"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single catalog_record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRecordDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog record doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_record.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_catalog_record",
        "summary": "Replace all of a catalog record's attribute values.",
        "description": "Any attribute you leave out of `attributes` is cleared.",
        "tags": [
          "catalog_record"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v4/catalog/relations/:catalog_relation_id/records/:id",
        "parameters": [
          {
            "name": "catalog_relation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_catalog_record": {
                "summary": "Update a catalog record",
                "value": "37"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_catalog_record": {
                "summary": "Update a catalog record",
                "value": "67"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single catalog_record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogRecordDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The catalog record doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CatalogRecordUpdate"
              },
              "examples": {
                "update_a_catalog_record": {
                  "summary": "Update a catalog record",
                  "value": {
                    "attributes": [
                      {
                        "attribute": {
                          "id": "56",
                          "name": "Team"
                        },
                        "values": [
                          {
                            "type": "String",
                            "value": "My Team"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "attributes"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.catalog_record.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/slack-integrations": {
      "get": {
        "operationId": "list_incidents_slack_integration",
        "summary": "List the Slack channels connected for incident notifications.",
        "tags": [
          "incidents_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/slack-integrations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incidents_slack_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsSlackIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Slack integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "slack_channel_name",
          "slack_team_name",
          "slack_status",
          "team_name"
        ],
        "x-cli-name-fields": [
          "slack_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "slack_team_id",
          "slack_team_name",
          "slack_channel_id",
          "slack_channel_name",
          "slack_status",
          "integration_type",
          "channel_display_name",
          "channel_invitees",
          "alert_options",
          "status_page_update_resources",
          "private_channel",
          "alert_all_teams_and_policies",
          "invite_new_slack_users",
          "on_call_notifications",
          "notify_on_pause",
          "notify_on_resolve",
          "direct_message_on_mention",
          "ai_sre_on_mention",
          "restrict_incident_creation_to_channel",
          "post_timeline_events",
          "post_incident_metadata",
          "post_status_page_updates",
          "notify_alongside_primary_responder",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_slack_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incidents_slack_integration",
        "summary": "Create a Slack integration for incidents.",
        "description": "You'll get a link back to open in your browser and finish setting up the integration.",
        "tags": [
          "incidents_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/slack-integrations",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "202": {
            "description": "A single incidents_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Slack integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "503": {
            "description": "Slack couldn't be connected right now. Nothing is created. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-request-body": "none",
        "x-cli-default-fields": [
          "id",
          "integration_type",
          "status",
          "integration_id",
          "expires_at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "integration_type",
          "status",
          "status_reason",
          "authorization_url",
          "expires_at",
          "integration_id",
          "team_id"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_integration_authorization.get"
        },
        "x-cli-wait": {
          "observe": "get_incidents_integration_authorization",
          "bindings": {
            "id": {
              "source": "result",
              "path": [
                "id"
              ]
            }
          },
          "success": {
            "path": [
              "status"
            ],
            "expected": {
              "source": "literal",
              "value": "completed"
            }
          },
          "failure": [
            {
              "path": [
                "status"
              ],
              "in": [
                "failed",
                "expired"
              ]
            }
          ],
          "messages": [
            "status_reason"
          ],
          "result": {
            "operation": "get_incidents_slack_integration",
            "bindings": {
              "id": {
                "source": "observed",
                "path": [
                  "integration_id"
                ]
              }
            }
          },
          "description": "Slack is connected."
        },
        "x-cli-open-url": "authorization_url",
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/slack-integrations/{id}": {
      "get": {
        "operationId": "get_incidents_slack_integration",
        "summary": "Get a Slack channel connected for incident notifications.",
        "tags": [
          "incidents_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/slack-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_slack_integration": {
                "summary": "Get a Slack integration",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_slack_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsSlackIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Slack integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "slack_channel_name",
          "slack_team_name",
          "slack_status",
          "team_name"
        ],
        "x-cli-name-fields": [
          "slack_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "slack_team_id",
          "slack_team_name",
          "slack_channel_id",
          "slack_channel_name",
          "slack_status",
          "integration_type",
          "channel_display_name",
          "channel_invitees",
          "alert_options",
          "status_page_update_resources",
          "private_channel",
          "alert_all_teams_and_policies",
          "invite_new_slack_users",
          "on_call_notifications",
          "notify_on_pause",
          "notify_on_resolve",
          "direct_message_on_mention",
          "ai_sre_on_mention",
          "restrict_incident_creation_to_channel",
          "post_timeline_events",
          "post_incident_metadata",
          "post_status_page_updates",
          "notify_alongside_primary_responder",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_slack_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incidents_slack_integration",
        "summary": "Update a connected Slack channel's settings, invitees and status page resources, and the teams and escalation policies Slack users can alert.",
        "description": "Only provide the fields you want to change. A list you send replaces the whole list.",
        "tags": [
          "incidents_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v4/slack-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_a_channel_per_incident": {
                "summary": "Create a channel per incident",
                "value": "37"
              },
              "allow_only_e_mail_and_push_alerts": {
                "summary": "Allow only e-mail and push alerts",
                "value": "37"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incidents_slack_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsSlackIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The Slack integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "A value is invalid or names nothing in the organization. `errors` names the attribute. Send a user in `channel_invitees` as `u123` or their e-mail, and a team in `alert_options` as `t123`. The plan doesn't include the thread or channel notification style or the `call`, `sms`, `push` or `critical_alert` alert option that was set. The attributes the plan doesn't include are listed in `unauthorized_attributes`. An attribute is unknown.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentsSlackIntegrationUpdate"
              },
              "examples": {
                "create_a_channel_per_incident": {
                  "summary": "Create a channel per incident",
                  "value": {
                    "integration_type": "channel",
                    "private_channel": true,
                    "channel_invitees": [
                      {
                        "type": "on_call_calendar",
                        "id": "1"
                      },
                      {
                        "type": "user",
                        "id": "alice@example.com"
                      }
                    ]
                  }
                },
                "allow_only_e_mail_and_push_alerts": {
                  "summary": "Allow only e-mail and push alerts",
                  "value": {
                    "alert_all_teams_and_policies": false,
                    "alert_options": [
                      {
                        "type": "team",
                        "id": "t7",
                        "email": true,
                        "push": true
                      },
                      {
                        "type": "policy",
                        "id": "73"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "slack_channel_name",
          "slack_team_name",
          "slack_status",
          "team_name"
        ],
        "x-cli-name-fields": [
          "slack_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "slack_team_id",
          "slack_team_name",
          "slack_channel_id",
          "slack_channel_name",
          "slack_status",
          "integration_type",
          "channel_display_name",
          "channel_invitees",
          "alert_options",
          "status_page_update_resources",
          "private_channel",
          "alert_all_teams_and_policies",
          "invite_new_slack_users",
          "on_call_notifications",
          "notify_on_pause",
          "notify_on_resolve",
          "direct_message_on_mention",
          "ai_sre_on_mention",
          "restrict_incident_creation_to_channel",
          "post_timeline_events",
          "post_incident_metadata",
          "post_status_page_updates",
          "notify_alongside_primary_responder",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incidents_slack_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/status-pages/{status_page_id}/resources": {
      "get": {
        "operationId": "list_status_page_resource",
        "summary": "List the resources shown on a status page, such as monitors, heartbeats and groups, in ID order.",
        "tags": [
          "status_page_resource"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/status-pages/:status_page_id/resources",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_status_page_resources": {
                "summary": "List status page resources",
                "value": "123456789"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_page_resource objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageResourceList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "public_name",
          "resource_type",
          "resource_id",
          "status_page_section_id",
          "status",
          "ongoing_incident_ids"
        ],
        "x-cli-name-fields": [
          "public_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_section_id",
          "resource_id",
          "resource_type",
          "catalog_reference",
          "chart_id",
          "public_name",
          "explanation",
          "history",
          "widget_type",
          "position",
          "mark_as_down_for",
          "mark_as_down_metadata_rule",
          "mark_as_degraded_for",
          "mark_as_degraded_metadata_rule",
          "availability",
          "status",
          "ongoing_incident_ids",
          "status_history"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_resource.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_status_page_resource",
        "summary": "Add a resource to a status page.",
        "description": "Point it at a monitor, heartbeat, or group with `resource_id` and `resource_type`, give it a `public_name`, and optionally place it in a section. Leave out `resource_id` for a manually tracked item.",
        "tags": [
          "status_page_resource"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/status-pages/:status_page_id/resources",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_a_status_page_resource": {
                "summary": "Create a status page resource",
                "value": "123456789"
              },
              "with_metadata_rules": {
                "summary": "With metadata rules",
                "value": "123456789"
              },
              "catalog_reference": {
                "summary": "Catalog reference",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_page_resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageResourceDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page, the section, or the resource named by `resource_id` and `resource_type` doesn't exist in the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, or `resource_type` is missing or unsupported. The request also fails when a metadata rule or `catalog_reference` is malformed, or names a user or team without its `u` or `t` prefix.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageResourceCreate"
              },
              "examples": {
                "create_a_status_page_resource": {
                  "summary": "Create a status page resource",
                  "value": {
                    "resource_id": "112233",
                    "resource_type": "Monitor",
                    "public_name": "The best monitor",
                    "explanation": "Hide easter eggs here",
                    "position": 0
                  }
                },
                "with_metadata_rules": {
                  "summary": "With metadata rules",
                  "value": {
                    "resource_id": "112233",
                    "resource_type": "Monitor",
                    "public_name": "The best monitor",
                    "mark_as_down_for": "incident_matching_metadata",
                    "mark_as_down_metadata_rule": {
                      "key": "Severity",
                      "values": [
                        {
                          "value": "critical"
                        },
                        {
                          "value": "high"
                        }
                      ]
                    },
                    "mark_as_degraded_for": "incident_matching_metadata",
                    "mark_as_degraded_metadata_rule": {
                      "key": "Assigned User",
                      "values": [
                        {
                          "type": "User",
                          "email": "john.doe@example.com"
                        },
                        {
                          "type": "User",
                          "item_id": "u12345"
                        }
                      ]
                    }
                  }
                },
                "catalog_reference": {
                  "summary": "Catalog reference",
                  "value": {
                    "resource_type": "CatalogReference",
                    "public_name": "Payments",
                    "catalog_reference": {
                      "key": "Service",
                      "value": {
                        "type": "String",
                        "value": "payments"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "public_name",
          "resource_type",
          "resource_id",
          "status_page_section_id",
          "status",
          "ongoing_incident_ids"
        ],
        "x-cli-name-fields": [
          "public_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_section_id",
          "resource_id",
          "resource_type",
          "catalog_reference",
          "chart_id",
          "public_name",
          "explanation",
          "history",
          "widget_type",
          "position",
          "mark_as_down_for",
          "mark_as_down_metadata_rule",
          "mark_as_degraded_for",
          "mark_as_degraded_metadata_rule",
          "availability",
          "status",
          "ongoing_incident_ids",
          "status_history"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_resource.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/status-pages/{status_page_id}/resources/{id}": {
      "delete": {
        "operationId": "delete_status_page_resource",
        "summary": "Remove a resource from the status page permanently.",
        "description": "A monitor or heartbeat it shows isn't affected. A `ManuallyTrackedItem` or `CatalogReference` that no other status page resource uses is deleted with it.",
        "tags": [
          "status_page_resource"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v4/status-pages/:status_page_id/resources/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_page_resource": {
                "summary": "Delete a status page resource",
                "value": "123456789"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_page_resource": {
                "summary": "Delete a status page resource",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page resource doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_status_page_resource",
        "summary": "Get a status page resource, a monitor or service your status page shows.",
        "tags": [
          "status_page_resource"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/status-pages/:status_page_id/resources/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page_resource": {
                "summary": "Get a status page resource",
                "value": "123456789"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page_resource": {
                "summary": "Get a status page resource",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageResourceDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page resource doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "public_name",
          "resource_type",
          "resource_id",
          "status_page_section_id",
          "status",
          "ongoing_incident_ids"
        ],
        "x-cli-name-fields": [
          "public_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_section_id",
          "resource_id",
          "resource_type",
          "catalog_reference",
          "chart_id",
          "public_name",
          "explanation",
          "history",
          "widget_type",
          "position",
          "mark_as_down_for",
          "mark_as_down_metadata_rule",
          "mark_as_degraded_for",
          "mark_as_degraded_metadata_rule",
          "availability",
          "status",
          "ongoing_incident_ids",
          "status_history"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_resource.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_status_page_resource",
        "summary": "Update a status page resource's `public_name`, section or display options.",
        "description": "Only send the fields you want to change.",
        "tags": [
          "status_page_resource"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v4/status-pages/:status_page_id/resources/:id",
        "parameters": [
          {
            "name": "status_page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_page_resource": {
                "summary": "Update a status page resource",
                "value": "123456789"
              },
              "metadata_rules": {
                "summary": "Metadata rules",
                "value": "123456789"
              },
              "metadata_using_e_mail": {
                "summary": "Metadata using e-mail",
                "value": "123456789"
              },
              "catalog_reference": {
                "summary": "Catalog reference",
                "value": "123456789"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_a_status_page_resource": {
                "summary": "Update a status page resource",
                "value": "12345"
              },
              "metadata_rules": {
                "summary": "Metadata rules",
                "value": "12345"
              },
              "metadata_using_e_mail": {
                "summary": "Metadata using e-mail",
                "value": "12345"
              },
              "catalog_reference": {
                "summary": "Catalog reference",
                "value": "12345"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page_resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageResourceDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page resource doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageResourceUpdate"
              },
              "examples": {
                "update_a_status_page_resource": {
                  "summary": "Update a status page resource",
                  "value": {
                    "public_name": "My great monitor, updated"
                  }
                },
                "metadata_rules": {
                  "summary": "Metadata rules",
                  "value": {
                    "mark_as_down_for": "incident_matching_metadata",
                    "mark_as_down_metadata_rule": {
                      "key": "Severity",
                      "values": [
                        {
                          "value": "high"
                        }
                      ]
                    },
                    "mark_as_degraded_for": "any_incident"
                  }
                },
                "metadata_using_e_mail": {
                  "summary": "Metadata using e-mail",
                  "value": {
                    "mark_as_down_for": "incident_matching_metadata",
                    "mark_as_down_metadata_rule": {
                      "key": "Responsible team member",
                      "values": [
                        {
                          "type": "User",
                          "email": "john.doe@example.com"
                        }
                      ]
                    }
                  }
                },
                "catalog_reference": {
                  "summary": "Catalog reference",
                  "value": {
                    "catalog_reference": {
                      "key": "Owner team",
                      "value": {
                        "type": "Team",
                        "name": "Platform"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "public_name",
          "resource_type",
          "resource_id",
          "status_page_section_id",
          "status",
          "ongoing_incident_ids"
        ],
        "x-cli-name-fields": [
          "public_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "status_page_section_id",
          "resource_id",
          "resource_type",
          "catalog_reference",
          "chart_id",
          "public_name",
          "explanation",
          "history",
          "widget_type",
          "position",
          "mark_as_down_for",
          "mark_as_down_metadata_rule",
          "mark_as_degraded_for",
          "mark_as_degraded_metadata_rule",
          "availability",
          "status",
          "ongoing_incident_ids",
          "status_history"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page_resource.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v5/escalation-policies": {
      "get": {
        "operationId": "list_escalation_policy",
        "summary": "List your escalation policies.",
        "tags": [
          "escalation_policy"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v5/escalation-policies",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of escalation_policy objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "escalation_policy_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "repeat_count",
          "repeat_delay",
          "escalation_policy_group_id",
          "fallback_escalation_policy_id",
          "incident_token",
          "steps",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_escalation_policy",
        "summary": "Create an escalation policy from ordered steps.",
        "description": "Each step can notify users, the entire team, on-call schedules or other policies, with its own wait and severity.",
        "tags": [
          "escalation_policy"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v5/escalation-policies",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single escalation_policy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. Your plan doesn't include escalation policies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "A `metadata_branching` step was sent and the plan doesn't include metadata rules. Nothing is saved. A step names a user without a responder role. Nothing is saved. Validation failed, a step or step member is malformed, or you can access more than one team and didn't send `team_id`. Send a user as `u123` or their e-mail, and a team as `t123`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EscalationPolicyCreate"
              },
              "examples": {
                "escalation_policy": {
                  "summary": "Escalation policy",
                  "value": {
                    "name": "Standard Escalation Policy",
                    "repeat_count": 3,
                    "repeat_delay": 1800,
                    "steps": [
                      {
                        "type": "escalation",
                        "wait_before": 0,
                        "severity_id": "$SEVERITY_ID",
                        "step_members": [
                          {
                            "type": "current_on_call"
                          }
                        ]
                      },
                      {
                        "type": "escalation",
                        "wait_before": 600,
                        "severity_id": "$SEVERITY_ID",
                        "step_members": [
                          {
                            "type": "entire_team"
                          }
                        ]
                      }
                    ]
                  }
                },
                "branching": {
                  "summary": "Branching",
                  "value": {
                    "name": "Business Hours Branching",
                    "steps": [
                      {
                        "type": "time_branching",
                        "wait_before": 0,
                        "timezone": "America/New_York",
                        "days": [
                          "mon",
                          "tue",
                          "wed",
                          "thu",
                          "fri"
                        ],
                        "time_from": "09:00",
                        "time_to": "17:00",
                        "policy_metadata_key": "business_hours_policy"
                      },
                      {
                        "type": "metadata_branching",
                        "wait_before": 0,
                        "metadata_key": "urgency",
                        "metadata_values": [
                          {
                            "type": "String",
                            "value": "low"
                          }
                        ],
                        "action_type": "do_not_escalate"
                      },
                      {
                        "type": "escalation",
                        "wait_before": 300,
                        "severity_id": "$SEVERITY_ID",
                        "step_members": [
                          {
                            "type": "current_on_call"
                          },
                          {
                            "type": "all_slack_integrations"
                          }
                        ]
                      }
                    ]
                  }
                },
                "instructions": {
                  "summary": "Instructions",
                  "value": {
                    "name": "Policy with Instructions and Todo list",
                    "steps": [
                      {
                        "type": "instructions",
                        "wait_before": 0,
                        "instructions_comment": "IMMEDIATE ACTIONS:\n1. Check system status at status.example.com\n2. Verify in monitoring dashboard\n3. Check #incidents Slack channel\n4. If database-related, run: kubectl get pods -n production",
                        "instructions_reminder_enabled": false
                      },
                      {
                        "type": "escalation",
                        "wait_before": 0,
                        "severity_id": "$SEVERITY_ID",
                        "step_members": [
                          {
                            "type": "current_on_call"
                          },
                          {
                            "type": "all_slack_integrations"
                          }
                        ]
                      },
                      {
                        "type": "instructions",
                        "wait_before": 900,
                        "instructions_comment": "ESCALATION REQUIRED:\n- [ ] Page backup on-call\n- [ ] Start incident bridge: dial 1-800-XXX-XXXX, code: 12345#\n- [ ] Update status page\n- [ ] Notify stakeholders via #incident-comms",
                        "instructions_reminder_enabled": true,
                        "instructions_reminder_interval_hours": 2
                      },
                      {
                        "type": "escalation",
                        "wait_before": 300,
                        "severity_id": "$SEVERITY_ID",
                        "step_members": [
                          {
                            "type": "entire_team"
                          },
                          {
                            "type": "user",
                            "email": "manager@example.com"
                          }
                        ]
                      }
                    ]
                  }
                },
                "resolve_or_remove": {
                  "summary": "Resolve or remove",
                  "value": {
                    "name": "Page On-call, Then Auto-resolve",
                    "steps": [
                      {
                        "type": "escalation",
                        "wait_before": 0,
                        "severity_id": "$SEVERITY_ID",
                        "step_members": [
                          {
                            "type": "current_on_call"
                          }
                        ]
                      },
                      {
                        "type": "resolve_remove",
                        "wait_before": 3600,
                        "action_type": "resolve_incident"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "escalation_policy_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "repeat_count",
          "repeat_delay",
          "escalation_policy_group_id",
          "fallback_escalation_policy_id",
          "incident_token",
          "steps",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v5/escalation-policies/{id}": {
      "delete": {
        "operationId": "delete_escalation_policy",
        "summary": "Delete an escalation policy permanently.",
        "description": "An escalation policy can't be deleted while anything uses it, such as a monitor, heartbeat, integration or another escalation policy.",
        "tags": [
          "escalation_policy"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v5/escalation-policies/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_escalation_policy": {
                "summary": "Delete an escalation policy",
                "value": "456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The policy is still used by a monitor, heartbeat, integration, or another escalation policy's fallback or branch target.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "503": {
            "description": "We couldn't check whether a Telemetry alert still escalates to this policy. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_escalation_policy",
        "summary": "Get an escalation policy, the steps that decide who is alerted about an incident and when.",
        "tags": [
          "escalation_policy"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v5/escalation-policies/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_escalation_policy": {
                "summary": "Get an escalation policy",
                "value": "123"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single escalation_policy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy doesn't exist, or the token can't access it. Get the IDs via [List escalation policies](/docs/uptime/api/list-all-escalation-policies/).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "escalation_policy_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "repeat_count",
          "repeat_delay",
          "escalation_policy_group_id",
          "fallback_escalation_policy_id",
          "incident_token",
          "steps",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_escalation_policy",
        "summary": "Update an escalation policy's name, steps, or repeat and fallback settings.",
        "description": "Only provide the fields you want to change. Sending steps replaces the whole list of steps.",
        "tags": [
          "escalation_policy"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v5/escalation-policies/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_escalation_policy": {
                "summary": "Update an escalation policy",
                "value": "456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single escalation_policy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "You sent a new `metadata_branching` step, and your plan doesn't include metadata rules. Nothing is saved. Sending the policy's existing steps again always works. A step names a new user who doesn't have a responder role. Nothing is saved. Sending the users the policy already names again always works. Validation failed, or a step or step member is malformed. Send a user as `u123` or their e-mail, and a team as `t123`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EscalationPolicyUpdate"
              },
              "examples": {
                "update_an_escalation_policy": {
                  "summary": "Update an escalation policy",
                  "value": {
                    "name": "New name"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "escalation_policy_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "repeat_count",
          "repeat_delay",
          "escalation_policy_group_id",
          "fallback_escalation_policy_id",
          "incident_token",
          "steps",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v5/escalation-policy-groups/{id}/escalation-policies": {
      "get": {
        "operationId": "escalation_policies_escalation_policy_group",
        "summary": "List the escalation policies in this group, in ID order.",
        "tags": [
          "escalation_policy_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v5/escalation-policy-groups/:id/escalation-policies",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_the_group_s_escalation_policies": {
                "summary": "List the group's escalation policies",
                "value": "1234567"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of escalation_policy objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EscalationPolicyList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The escalation policy group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "team_name",
          "escalation_policy_group_id"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "repeat_count",
          "repeat_delay",
          "escalation_policy_group_id",
          "fallback_escalation_policy_id",
          "incident_token",
          "steps",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.escalation_policy.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v5/metadata": {
      "get": {
        "operationId": "list_metadata",
        "summary": "List the metadata keys and values attached to your monitors, heartbeats, incidents and integrations.",
        "description": "Filter by `owner_type` and `owner_id` to see one object's metadata.",
        "tags": [
          "metadata"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v5/metadata",
        "parameters": [
          {
            "name": "owner_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "Monitor"
              ]
            },
            "description": "Only metadata attached to objects of this type, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`.",
            "examples": {
              "list_metadata": {
                "summary": "List metadata",
                "value": "Monitor"
              }
            }
          },
          {
            "name": "owner_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "2"
              ]
            },
            "description": "Only metadata attached to the object with this ID.",
            "examples": {
              "list_metadata": {
                "summary": "List metadata",
                "value": "2"
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of metadata objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetadataList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The metadata doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Entries are sorted by ID. Each page counts metadata keys, not individual values."
        ],
        "x-cli-default-fields": [
          "id",
          "owner_type",
          "owner_id",
          "key",
          "team_name"
        ],
        "x-cli-name-fields": [
          "key"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "owner_type",
          "owner_id",
          "key",
          "values",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.metadata.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_metadata",
        "summary": "Attach a metadata key with one or more values to an object.",
        "description": "Name the object with `owner_type` and `owner_id`. If the object already has the key, `mode` decides whether the new values replace or merge into the current ones.",
        "tags": [
          "metadata"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v5/metadata",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single metadata. (the owner already had values under that key, so create replaced or merged into them)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetadataDocument"
                }
              }
            }
          },
          "201": {
            "description": "A single metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetadataDocument"
                }
              }
            }
          },
          "204": {
            "description": "No content. (`values` is empty and nothing remains stored for the key, which removes it)"
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The object named by `owner_type` and `owner_id` doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `owner_id`, `owner_type`, `key` or `values` attribute is missing, `owner_type` or `mode` has a value that isn't accepted, a value doesn't match an item in the organization, or a value names a user or team without its `u` or `t` prefix.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetadataCreate"
              },
              "examples": {
                "create_metadata": {
                  "summary": "Create metadata",
                  "value": {
                    "key": "Key 1",
                    "values": [
                      {
                        "value": "Value 1"
                      },
                      {
                        "value": "Value 2"
                      }
                    ],
                    "owner_id": "2",
                    "owner_type": "Monitor"
                  }
                },
                "typed_values": {
                  "summary": "Typed values",
                  "value": {
                    "key": "Key 1",
                    "values": [
                      {
                        "type": "User",
                        "item_id": "u123"
                      },
                      {
                        "type": "User",
                        "email": "alice@example.com"
                      }
                    ],
                    "owner_id": "2",
                    "owner_type": "Monitor"
                  }
                },
                "merge_values": {
                  "summary": "Merge values",
                  "value": {
                    "key": "Key 1",
                    "values": [
                      {
                        "value": "Value 3"
                      }
                    ],
                    "mode": "merge",
                    "owner_id": "2",
                    "owner_type": "Monitor"
                  }
                },
                "remove_metadata": {
                  "summary": "Remove metadata",
                  "value": {
                    "key": "Key 1",
                    "values": [],
                    "owner_id": "2",
                    "owner_type": "Monitor"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "owner_type",
          "owner_id",
          "key",
          "team_name"
        ],
        "x-cli-name-fields": [
          "key"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "owner_type",
          "owner_id",
          "key",
          "values",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.metadata.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v5/metadata/{id}": {
      "delete": {
        "operationId": "delete_metadata",
        "summary": "Delete a metadata entry, with all its values, from its object.",
        "tags": [
          "metadata"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v5/metadata/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_metadata": {
                "summary": "Delete metadata",
                "value": "25"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The metadata entry doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_metadata",
        "summary": "Get a metadata entry, the custom values attached to a monitor, heartbeat or integration.",
        "tags": [
          "metadata"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v5/metadata/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_metadata": {
                "summary": "Get metadata",
                "value": "25"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetadataDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The metadata entry doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "owner_type",
          "owner_id",
          "key",
          "team_name"
        ],
        "x-cli-name-fields": [
          "key"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "owner_type",
          "owner_id",
          "key",
          "values",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.metadata.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_metadata",
        "summary": "Update a metadata entry's key, values or owner.",
        "description": "Only provide the fields you want to change. The values you send replace all current values instead of merging with them.",
        "tags": [
          "metadata"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v5/metadata/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "replace_values": {
                "summary": "Replace values",
                "value": "25"
              },
              "rename_the_key": {
                "summary": "Rename the key",
                "value": "25"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetadataDocument"
                }
              }
            }
          },
          "204": {
            "description": "No content. (`values` is empty, which removes the key)"
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The metadata entry doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "A value doesn't match an item in the organization, or names a user or team without its `u` or `t` prefix. A value repeats another value of the key, or values of one key have different types.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetadataUpdate"
              },
              "examples": {
                "replace_values": {
                  "summary": "Replace values",
                  "value": {
                    "values": [
                      {
                        "type": "Team",
                        "item_id": "t123"
                      }
                    ]
                  }
                },
                "rename_the_key": {
                  "summary": "Rename the key",
                  "value": {
                    "key": "Service owner"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "owner_type",
          "owner_id",
          "key",
          "team_name"
        ],
        "x-cli-name-fields": [
          "key"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "owner_type",
          "owner_id",
          "key",
          "values",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.metadata.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v5/status-pages": {
      "get": {
        "operationId": "list_status_page",
        "summary": "List your status pages, the pages that show your services' status to your users.",
        "tags": [
          "status_page"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v5/status-pages",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 50,
              "maximum": 250
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of status_page objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "company_name",
          "subdomain",
          "custom_domain",
          "published",
          "aggregate_state"
        ],
        "x-cli-name-fields": [
          "company_name",
          "subdomain"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "organization_id",
          "company_name",
          "company_url",
          "subdomain",
          "timezone",
          "custom_domain",
          "contact_url",
          "logo_url",
          "dark_logo_url",
          "logo_remote_url",
          "dark_logo_remote_url",
          "favicon_url",
          "favicon_remote_url",
          "custom_css",
          "custom_javascript",
          "google_analytics_id",
          "min_incident_length",
          "subscribable",
          "hide_from_search_engines",
          "password_enabled",
          "require_sso",
          "published",
          "history",
          "treat_not_monitored_as_operational",
          "design",
          "theme",
          "layout",
          "automatic_reports",
          "status_page_group_id",
          "whitelabeled",
          "announcement",
          "announcement_embed_visible",
          "announcement_embed_link",
          "announcement_embed_css",
          "navigation_links",
          "ip_allowlist",
          "sections",
          "aggregate_state",
          "public_url",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_status_page",
        "summary": "Create a status page.",
        "description": "`company_name`, `subdomain` and `timezone` are required. You can also set its appearance, subscriptions and `custom_domain`. The organization can't be changed later.",
        "tags": [
          "status_page"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v5/status-pages",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single status_page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include a setting that was turned on, such as password protection, SSO, `ip_allowlist`, hiding from search engines, Google Analytics, `custom_css` or `custom_javascript`, subscriptions or removing Better Stack branding. Or the organization already has as many status pages as its plan allows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, an attribute is unknown or has a value that isn't accepted, the token can't access the organization in `organization_id`, or you signed in with OAuth, can access more than one organization and named none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's status pages is in progress. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageCreate"
              },
              "examples": {
                "create_a_status_page": {
                  "summary": "Create a status page",
                  "value": {
                    "company_url": "https://best-company.com",
                    "company_name": "Best company",
                    "subdomain": "best-company-tokyo",
                    "timezone": "Tokyo"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "company_name",
          "subdomain",
          "custom_domain",
          "published",
          "aggregate_state"
        ],
        "x-cli-name-fields": [
          "company_name",
          "subdomain"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "organization_id",
          "company_name",
          "company_url",
          "subdomain",
          "timezone",
          "custom_domain",
          "contact_url",
          "logo_url",
          "dark_logo_url",
          "logo_remote_url",
          "dark_logo_remote_url",
          "favicon_url",
          "favicon_remote_url",
          "custom_css",
          "custom_javascript",
          "google_analytics_id",
          "min_incident_length",
          "subscribable",
          "hide_from_search_engines",
          "password_enabled",
          "require_sso",
          "published",
          "history",
          "treat_not_monitored_as_operational",
          "design",
          "theme",
          "layout",
          "automatic_reports",
          "status_page_group_id",
          "whitelabeled",
          "announcement",
          "announcement_embed_visible",
          "announcement_embed_link",
          "announcement_embed_css",
          "navigation_links",
          "ip_allowlist",
          "sections",
          "aggregate_state",
          "public_url",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v5/status-pages/{id}": {
      "delete": {
        "operationId": "delete_status_page",
        "summary": "Delete a status page permanently.",
        "description": "The page's `public_url` stops working, and its subscribers, sections, status reports and recurring maintenances are deleted. Deleting a status page can't be undone.",
        "tags": [
          "status_page"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v5/status-pages/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_status_page": {
                "summary": "Delete a status page",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_status_page",
        "summary": "Get a status page's configuration, such as its domain and design.",
        "tags": [
          "status_page"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v5/status-pages/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_status_page": {
                "summary": "Get a status page",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "company_name",
          "subdomain",
          "custom_domain",
          "published",
          "aggregate_state"
        ],
        "x-cli-name-fields": [
          "company_name",
          "subdomain"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "organization_id",
          "company_name",
          "company_url",
          "subdomain",
          "timezone",
          "custom_domain",
          "contact_url",
          "logo_url",
          "dark_logo_url",
          "logo_remote_url",
          "dark_logo_remote_url",
          "favicon_url",
          "favicon_remote_url",
          "custom_css",
          "custom_javascript",
          "google_analytics_id",
          "min_incident_length",
          "subscribable",
          "hide_from_search_engines",
          "password_enabled",
          "require_sso",
          "published",
          "history",
          "treat_not_monitored_as_operational",
          "design",
          "theme",
          "layout",
          "automatic_reports",
          "status_page_group_id",
          "whitelabeled",
          "announcement",
          "announcement_embed_visible",
          "announcement_embed_link",
          "announcement_embed_css",
          "navigation_links",
          "ip_allowlist",
          "sections",
          "aggregate_state",
          "public_url",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_status_page",
        "summary": "Update a status page.",
        "description": "Only send the fields you want to change.",
        "tags": [
          "status_page"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v5/status-pages/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "change_company_name": {
                "summary": "Change company name",
                "value": "123456789"
              },
              "set_up_ip_allowlisting": {
                "summary": "Set up IP allowlisting",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single status_page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusPageDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The plan doesn't include a setting that was turned on, or publishing a draft with `published: true` would put the organization over the number of published status pages its plan allows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The status page doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, or an attribute is unknown or has a value that isn't accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "429": {
            "description": "Another change to the organization's status pages was in progress while publishing. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusPageUpdate"
              },
              "examples": {
                "change_company_name": {
                  "summary": "Change company name",
                  "value": {
                    "company_name": "Best company: Tokyo"
                  }
                },
                "set_up_ip_allowlisting": {
                  "summary": "Set up IP allowlisting",
                  "value": {
                    "ip_allowlist": [
                      "# Tokyo office",
                      "203.0.113.0/24",
                      "# Production servers",
                      "198.51.100.0/24"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "company_name",
          "subdomain",
          "custom_domain",
          "published",
          "aggregate_state"
        ],
        "x-cli-name-fields": [
          "company_name",
          "subdomain"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "organization_id",
          "company_name",
          "company_url",
          "subdomain",
          "timezone",
          "custom_domain",
          "contact_url",
          "logo_url",
          "dark_logo_url",
          "logo_remote_url",
          "dark_logo_remote_url",
          "favicon_url",
          "favicon_remote_url",
          "custom_css",
          "custom_javascript",
          "google_analytics_id",
          "min_incident_length",
          "subscribable",
          "hide_from_search_engines",
          "password_enabled",
          "require_sso",
          "published",
          "history",
          "treat_not_monitored_as_operational",
          "design",
          "theme",
          "layout",
          "automatic_reports",
          "status_page_group_id",
          "whitelabeled",
          "announcement",
          "announcement_embed_visible",
          "announcement_embed_link",
          "announcement_embed_css",
          "navigation_links",
          "ip_allowlist",
          "sections",
          "aggregate_state",
          "public_url",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.status_page.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v6/incident-grouping-changes": {
      "get": {
        "operationId": "list_incident_grouping_change",
        "summary": "List the times team members grouped incidents together or removed them from a group, newest first.",
        "description": "Covers the last 30 days, or as many days as you set in `days`.",
        "tags": [
          "incident_grouping_change"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incident-grouping-changes",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 30,
              "examples": [
                30
              ]
            },
            "description": "How many days back to look, up to 90.",
            "examples": {
              "last_7_days": {
                "summary": "Last 7 days",
                "value": 7
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incident_grouping_change objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentGroupingChangeList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident grouping change doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `days` or `page` parameter isn't a positive whole number, or the token can access more than one team and the request named none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "action",
          "created_at",
          "user",
          "incident_group_id",
          "incidents_count"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "action",
          "created_at",
          "user",
          "incident_group_id",
          "incident_group_name",
          "incidents",
          "incidents_count",
          "group_incidents",
          "group_incidents_count"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_grouping_change.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v6/incident-groups": {
      "get": {
        "operationId": "list_incident_group",
        "summary": "List your incident groups, newest first.",
        "tags": [
          "incident_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incident-groups",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 10,
              "maximum": 50
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incident_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` or `per_page` value isn't a positive integer, or the team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "incidents_count",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "incidents_count",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incident_group",
        "summary": "Group incidents together, as **Group as similar** does in the incidents list.",
        "description": "Send `incident_ids` to put incidents in a new group, or add `incident_group_ids` to put them in an existing group. An incident that's already in another group moves, and a group left with one incident or none dissolves.",
        "tags": [
          "incident_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incident-groups",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident_group. (`incident_group_ids` is given, so an existing group received the incidents)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentGroupDocument"
                }
              }
            }
          },
          "201": {
            "description": "A single incident_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "An incident or group wasn't found. `errors` names the IDs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "One of the incidents or groups is being removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "There are too few incidents or groups to group, they're in different teams, `name` was sent with `incident_group_ids`, or the request has an unknown field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "503": {
            "description": "The team's incidents are being regrouped right now. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "incident_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "IDs of the incidents to group, as strings or numbers. A new group needs at least two.",
                    "examples": [
                      [
                        "123456",
                        "123457"
                      ]
                    ]
                  },
                  "incident_group_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "IDs of existing groups to merge. Every incident in these groups, and the incidents in `incident_ids`, goes into the oldest group, which keeps its ID and name. The oldest group's acknowledgement is cleared, so new incidents that join it alert again. To merge groups only, send two or more IDs without `incident_ids`.",
                    "examples": [
                      [
                        "98765"
                      ]
                    ]
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name for a new group, up to 100 characters. Can't be sent with `incident_group_ids`. Rename an existing group by updating it.",
                    "examples": [
                      "Checkout 502s"
                    ]
                  }
                }
              },
              "examples": {
                "group_incidents": {
                  "summary": "Group incidents",
                  "value": {
                    "incident_ids": [
                      "123456",
                      "123457"
                    ],
                    "name": "Checkout 502s"
                  }
                },
                "add_to_a_group": {
                  "summary": "Add to a group",
                  "value": {
                    "incident_ids": [
                      "123458"
                    ],
                    "incident_group_ids": [
                      "98765"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "incidents_count",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "incidents_count",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v6/incident-groups/{id}": {
      "get": {
        "operationId": "get_incident_group",
        "summary": "Get an incident group.",
        "description": "To list its incidents, filter [List incidents](/docs/uptime/api/list-all-incidents/) by `incident_group_id`.",
        "tags": [
          "incident_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incident-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_incident_group": {
                "summary": "Get an incident group",
                "value": "98765"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "incidents_count",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "incidents_count",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incident_group",
        "summary": "Rename an incident group.",
        "description": "A blank name or `null` removes its name.",
        "tags": [
          "incident_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v6/incident-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "rename_an_incident_group": {
                "summary": "Rename an incident group",
                "value": "98765"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `name` attribute is missing, longer than 100 characters or not a string, or another attribute was sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentGroupUpdate"
              },
              "examples": {
                "rename_an_incident_group": {
                  "summary": "Rename an incident group",
                  "value": {
                    "name": "Checkout 502s"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "incidents_count",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "incidents_count",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v6/incident-groups/{id}/ungroup": {
      "post": {
        "operationId": "ungroup_incident_group",
        "summary": "Remove incidents from an incident group, as **Ungroup** does in the incidents list.",
        "description": "Leave out `incident_ids` to remove every incident. A group left with one incident or none dissolves, and the response is empty.",
        "tags": [
          "incident_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incident-groups/:id/ungroup",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "ungroup_incidents": {
                "summary": "Ungroup incidents",
                "value": "98765"
              },
              "ungroup_the_whole_group": {
                "summary": "Ungroup the whole group",
                "value": "98765"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentGroupDocument"
                }
              }
            }
          },
          "204": {
            "description": "No content. (the group dissolved, with one incident or none left)"
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The group doesn't exist, or it was ungrouped or removed in the meantime.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "The group is being removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An incident isn't in the group, `incident_ids` is empty, or the request has an unknown field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "503": {
            "description": "The team's incidents are being regrouped right now. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "incident_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "IDs of the incidents to remove from the group, as strings or numbers. Leave it out to ungroup the whole group.",
                    "examples": [
                      [
                        "123458"
                      ]
                    ]
                  }
                }
              },
              "examples": {
                "ungroup_incidents": {
                  "summary": "Ungroup incidents",
                  "value": {
                    "incident_ids": [
                      "123458"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "incidents_count",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "incidents_count",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v6/incidents": {
      "get": {
        "operationId": "list_incident",
        "summary": "List your incidents, newest first.",
        "description": "Incidents other teams escalated to your team are included and marked as shared.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incidents",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "-created_at"
              ]
            },
            "description": "Sort by `started_at`, `resolved_at` or `created_at`. Put `-` before the field for descending order, like `-created_at`. Any other value is ignored."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "examples": [
                "2024-12-24"
              ]
            },
            "description": "Only incidents that started on or after this day, like `2024-12-24`. The day starts at midnight UTC.",
            "examples": {
              "time_range": {
                "summary": "Time range",
                "value": "2024-12-24"
              }
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "examples": [
                "2024-12-31"
              ]
            },
            "description": "Only incidents that started by the end of this day in UTC, like `2024-12-31`. Send `from` with it.",
            "examples": {
              "time_range": {
                "summary": "Time range",
                "value": "2024-12-31"
              }
            }
          },
          {
            "name": "monitor_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised by this monitor."
          },
          {
            "name": "heartbeat_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "12345"
              ]
            },
            "description": "Only incidents raised by this heartbeat."
          },
          {
            "name": "webhook_integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised by this vendor webhook integration."
          },
          {
            "name": "email_integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised by this e-mail integration."
          },
          {
            "name": "incoming_webhook_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised by this incoming webhook."
          },
          {
            "name": "amazon_sns_integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised by this Amazon SNS integration."
          },
          {
            "name": "slack_integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised from this Slack integration."
          },
          {
            "name": "microsoft_teams_webhook_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised from this Microsoft Teams integration."
          },
          {
            "name": "call_routing_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "Only incidents raised by this call routing number."
          },
          {
            "name": "incident_group_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "98765"
              ]
            },
            "description": "Only incidents in this incident group."
          },
          {
            "name": "resolved",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                false
              ]
            },
            "description": "`true` for only resolved incidents, `false` for only unresolved ones, such as `resolved=false` for ongoing incidents. Leave it out to list both.",
            "examples": {
              "active_incidents": {
                "summary": "Active incidents",
                "value": false
              }
            }
          },
          {
            "name": "acknowledged",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                true
              ]
            },
            "description": "`true` for only incidents with an acknowledgement, `false` for only those without one. Escalating an incident removes its acknowledgement. Leave it out to list both."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "ongoing"
              ]
            },
            "description": "Only incidents in this state, one of ongoing, acknowledged or resolved. Repeat it as `status[]=` for several."
          },
          {
            "name": "cause",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "Status 404"
              ]
            },
            "description": "Only incidents whose cause contains this text, ignoring case. A hyphen or a run of spaces in the text matches any run of whitespace."
          },
          {
            "name": "escalation_policy_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "456"
              ]
            },
            "description": "Only incidents escalated through this escalation policy. Repeat it as `escalation_policy_ids[]=` for several."
          },
          {
            "name": "on_call_user_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$",
              "examples": [
                "u2345"
              ]
            },
            "description": "Only incidents that alerted this on-call user, as `u123` or their e-mail. Get the user ID via [List team members](/docs/uptime/api/team-members/list/). Repeat it as `on_call_user_ids[]=` for several."
          },
          {
            "name": "has_comments",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                true
              ]
            },
            "description": "`true` for only incidents with comments, `false` for only those without."
          },
          {
            "name": "has_postmortem",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                true
              ]
            },
            "description": "`true` for only incidents with a postmortem comment, `false` for only those without."
          },
          {
            "name": "has_linear_task",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                false
              ]
            },
            "description": "`true` for only incidents with a linked Linear issue, `false` for only those without."
          },
          {
            "name": "has_jira_task",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                false
              ]
            },
            "description": "`true` for only incidents with a linked Jira work item, `false` for only those without."
          },
          {
            "name": "has_halo_psa_ticket",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                false
              ]
            },
            "description": "`true` for only incidents with a linked HaloPSA ticket, `false` for only those without."
          },
          {
            "name": "min_duration_minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "examples": [
                5
              ]
            },
            "description": "Only incidents that have lasted at least this many minutes."
          },
          {
            "name": "max_duration_minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "examples": [
                60
              ]
            },
            "description": "Only incidents that have lasted at most this many minutes."
          },
          {
            "name": "metadata",
            "in": "query",
            "required": false,
            "schema": {
              "type": "object",
              "additionalProperties": true,
              "examples": [
                {
                  "Response code": [
                    {
                      "value": "500"
                    }
                  ]
                }
              ]
            },
            "description": "Only incidents matching this metadata, as nested query parameters written as `metadata[key]=value` or `metadata[key][]=value`. A user reference accepts `u123` or the user's e-mail, and a team reference accepts `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/). Either one without its prefix is refused."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Page to return, starting at 1."
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 10,
              "maximum": 50
            },
            "description": "Results per page."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incident objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentList"
                }
              }
            }
          },
          "400": {
            "description": "A filter value is invalid, such as the date range, a boolean, the status or the shape of metadata. `errors` lists the messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `on_call_user_ids` parameter or a user or team reference in metadata lacks its `u` or `t` prefix.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Lists only confirmed incidents. By default, incidents are sorted by `started_at` descending, then by `id` descending."
        ],
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incident",
        "summary": "Open a manual incident.",
        "description": "`summary` says what's wrong. Alert channels and an escalation policy are optional.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incidents",
        "parameters": [
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The `escalation_policy_id` attribute doesn't match any escalation policy in the team.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown or missing, such as `requester_email` with an API token, metadata is malformed, validation failed, or the token can access more than one team and the request named none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentCreate"
              },
              "examples": {
                "create_an_incident": {
                  "summary": "Create an incident",
                  "value": {
                    "summary": "Test incident",
                    "requester_email": "my-great-email@example.com",
                    "description": "No need to worry, everything is fine, this is just testing the great Incidents API."
                  }
                },
                "with_metadata": {
                  "summary": "With metadata",
                  "value": {
                    "summary": "Test incident",
                    "requester_email": "my-great-email@example.com",
                    "description": "No need to worry, everything is fine, this is just testing the great Incidents API.",
                    "metadata": {
                      "Affected Services": [
                        {
                          "value": "Homepage"
                        },
                        {
                          "value": "Login"
                        }
                      ],
                      "On-call Calendar": [
                        {
                          "type": "OnCallSchedule",
                          "name": "Primary calendar"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v6/incidents/{id}": {
      "delete": {
        "operationId": "delete_incident",
        "summary": "Delete an incident permanently, with its comments and timeline.",
        "description": "The incident's downtime stops counting in its monitor's or heartbeat's availability. Deleting an incident can't be undone. To keep the incident's history, use [Resolve an incident](/docs/uptime/api/resolve-an-ongoing-incident/) instead.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v6/incidents/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_incident": {
                "summary": "Delete an incident",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The incident belongs to another team and was escalated here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incident",
        "summary": "Get an incident's full details, including the failing check's response and a screenshot when one is available.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incidents/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_incident": {
                "summary": "Get an incident",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      },
      "patch": {
        "operationId": "update_incident",
        "summary": "Replace an incident's metadata.",
        "description": "Metadata is the only attribute you can update.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v6/incidents/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_incident": {
                "summary": "Update an incident",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The incident belongs to another team and was escalated here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `metadata` attribute is missing or malformed, names a user or team without its `u` or `t` prefix, or another attribute was sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentUpdate"
              },
              "examples": {
                "update_an_incident": {
                  "summary": "Update an incident",
                  "value": {
                    "metadata": {
                      "Severity": "high",
                      "Owner": [
                        {
                          "type": "Team",
                          "name": "Platform team"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-notes": [
          "The metadata you send replaces every key, including generated keys. Send `{}` to clear it all."
        ],
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      }
    },
    "/api/v6/incidents/{id}/acknowledge": {
      "post": {
        "operationId": "acknowledge_incident",
        "summary": "Acknowledge an ongoing incident and pause its escalation.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incidents/:id/acknowledge",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "acknowledge_an_incident": {
                "summary": "Acknowledge an incident",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The incident belongs to another team and was escalated here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "The incident was already acknowledged or resolved, or isn't confirmed yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "acknowledged_by": {
                    "type": "string",
                    "description": "E-mail of a team member, or any text to credit. Defaults to the user the OAuth token belongs to, or to `API` for an API token.",
                    "examples": [
                      "john@example.com"
                    ]
                  }
                }
              },
              "examples": {
                "acknowledge_an_incident": {
                  "summary": "Acknowledge an incident",
                  "value": {
                    "acknowledged_by": "john@example.com"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      }
    },
    "/api/v6/incidents/{id}/escalate": {
      "post": {
        "operationId": "escalate_incident",
        "summary": "Escalate an incident to a user, team, escalation policy or on-call calendar, or to the whole organization.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incidents/:id/escalate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "user": {
                "summary": "User",
                "value": "123456"
              },
              "team": {
                "summary": "Team",
                "value": "123456"
              },
              "schedule": {
                "summary": "Schedule",
                "value": "123456"
              },
              "policy": {
                "summary": "Policy",
                "value": "123456"
              },
              "organization": {
                "summary": "Organization",
                "value": "123456"
              },
              "with_metadata": {
                "summary": "With metadata",
                "value": "123456"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The incident belongs to another team and was escalated here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "The incident is already resolved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `escalation_type` attribute is unknown, the team, user or escalation policy isn't in the organization, a user or team is sent without its `u` or `t` prefix, `escalated_by` isn't a string, or the escalation failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "escalation_type": {
                    "type": "string",
                    "enum": [
                      "User",
                      "Team",
                      "Policy",
                      "Schedule",
                      "Organization"
                    ],
                    "description": "What to escalate to.",
                    "x-enum-descriptions": {
                      "User": "Escalates to one person, given in `user_id` or `user_email`.",
                      "Team": "Escalates to a team, given in `team_id`.",
                      "Policy": "Escalates to an escalation policy, given in `escalation_policy_id`.",
                      "Schedule": "Escalates to whoever is on call in the on-call calendar in `schedule_id`.",
                      "Organization": "Escalates to the whole organization."
                    },
                    "examples": [
                      "User"
                    ]
                  },
                  "user_id": {
                    "type": "string",
                    "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$",
                    "description": "User to escalate to, as `u123` or their e-mail. Get the user ID via [List team members](/docs/uptime/api/team-members/list/). Send `user_id` or `user_email` when `escalation_type` is `User`.",
                    "examples": [
                      "u123"
                    ]
                  },
                  "user_email": {
                    "type": "string",
                    "description": "E-mail of the organization user to escalate to. Send `user_id` or `user_email` when `escalation_type` is `User`.",
                    "examples": [
                      "mail@example.com"
                    ]
                  },
                  "team_id": {
                    "type": "string",
                    "pattern": "^t[1-9][0-9]*$",
                    "description": "Team to escalate to, such as `t123`. Get the team ID via [List teams](/docs/uptime/api/teams/list/). Here `team_id` names the team to escalate to, not the team the request is made in.",
                    "examples": [
                      "t123"
                    ]
                  },
                  "escalation_policy_id": {
                    "type": "string",
                    "description": "The escalation policy to escalate to. Required when `escalation_type` is `Policy`. Get the escalation policy ID via [List escalation policies](/docs/uptime/api/list-all-escalation-policies/).",
                    "examples": [
                      "123"
                    ]
                  },
                  "schedule_id": {
                    "type": "string",
                    "description": "On-call calendar ID when escalating to an on-call calendar. Required when `escalation_type` is `Schedule`.",
                    "examples": [
                      "123"
                    ]
                  },
                  "call": {
                    "type": "boolean",
                    "description": "Whether to alert by phone call. When your plan doesn't include phone calls, the call is skipped and the incident timeline records it.",
                    "examples": [
                      true
                    ]
                  },
                  "sms": {
                    "type": "boolean",
                    "description": "Whether to alert by SMS. When your plan doesn't include SMS, the SMS is skipped and the incident timeline records it.",
                    "examples": [
                      false
                    ]
                  },
                  "email": {
                    "type": "boolean",
                    "description": "Whether to alert by e-mail.",
                    "examples": [
                      true
                    ]
                  },
                  "push": {
                    "type": "boolean",
                    "description": "Whether to alert by push notification. When your plan doesn't include push notifications, the push notification is skipped and the incident timeline records it.",
                    "examples": [
                      true
                    ]
                  },
                  "critical_alert": {
                    "type": "boolean",
                    "description": "Whether to send a critical alert. When your plan doesn't include push notifications, the critical alert is skipped and the incident timeline records it.",
                    "examples": [
                      true
                    ]
                  },
                  "escalated_by": {
                    "type": "string",
                    "description": "E-mail of a team member, or any text to credit, up to 100 characters. Defaults to the user the OAuth token belongs to.",
                    "examples": [
                      "john@example.com"
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Metadata to add to the incident, in the same shape as the incident's metadata. Values the incident already has are skipped, and so are repeated values. A value is also skipped when its type differs from the key's existing values or from the first value sent for that key.",
                    "examples": [
                      {
                        "Affected Services": [
                          {
                            "value": "Homepage"
                          }
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "escalation_type"
                ]
              },
              "examples": {
                "user": {
                  "summary": "User",
                  "value": {
                    "escalation_type": "User",
                    "user_email": "mail@example.com",
                    "email": true,
                    "push": true
                  }
                },
                "team": {
                  "summary": "Team",
                  "value": {
                    "escalation_type": "Team",
                    "team_id": "t123",
                    "email": true,
                    "push": true
                  }
                },
                "schedule": {
                  "summary": "Schedule",
                  "value": {
                    "escalation_type": "Schedule",
                    "schedule_id": "123",
                    "call": true,
                    "push": true,
                    "critical_alert": true
                  }
                },
                "policy": {
                  "summary": "Policy",
                  "value": {
                    "escalation_type": "Policy",
                    "escalation_policy_id": "123"
                  }
                },
                "organization": {
                  "summary": "Organization",
                  "value": {
                    "escalation_type": "Organization",
                    "push": true
                  }
                },
                "with_metadata": {
                  "summary": "With metadata",
                  "value": {
                    "escalation_type": "User",
                    "user_email": "mail@example.com",
                    "email": true,
                    "push": true,
                    "metadata": {
                      "Affected Services": [
                        {
                          "value": "Homepage"
                        },
                        {
                          "value": "Login"
                        }
                      ],
                      "On-call Calendar": [
                        {
                          "type": "OnCallSchedule",
                          "name": "Primary calendar"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      }
    },
    "/api/v6/incidents/{id}/escalation-options": {
      "get": {
        "operationId": "escalation_options_incident",
        "summary": "List who an incident can be escalated to, which can be people, teams, escalation policies, on-call calendars and the whole organization.",
        "description": "Send an option's fields to [Escalate an incident](/docs/uptime/api/escalate-an-ongoing-incident/).",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incidents/:id/escalation-options",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_escalation_options": {
                "summary": "List escalation options",
                "value": "123456"
              }
            }
          },
          {
            "name": "escalation_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "User",
                "Team",
                "Policy",
                "Schedule",
                "Organization"
              ],
              "x-enum-descriptions": {
                "User": "A person.",
                "Team": "A team.",
                "Policy": "An escalation policy.",
                "Schedule": "An on-call calendar.",
                "Organization": "The whole organization."
              },
              "examples": [
                "Policy"
              ]
            },
            "description": "Only options of this kind."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "platform"
              ]
            },
            "description": "Only options whose name, e-mail or team name contains this text, ignoring case."
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the escalation options.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Always `escalation_option`.",
                            "examples": [
                              "escalation_option"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "escalation_type": {
                                "type": "string",
                                "enum": [
                                  "User",
                                  "Team",
                                  "Policy",
                                  "Schedule",
                                  "Organization"
                                ],
                                "description": "What the option escalates to. Pass it to escalate as `escalation_type`.",
                                "x-enum-descriptions": {
                                  "User": "A person.",
                                  "Team": "A team.",
                                  "Policy": "An escalation policy.",
                                  "Schedule": "An on-call calendar.",
                                  "Organization": "The whole organization."
                                },
                                "examples": [
                                  "User"
                                ]
                              },
                              "name": {
                                "type": "string",
                                "description": "The person's, team's or escalation policy's name. For an on-call calendar, who it alerts, such as `Current on-call person in Primary`.",
                                "examples": [
                                  "Jane Smith"
                                ]
                              },
                              "user_id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The person's user ID, for a User option.",
                                "examples": [
                                  "u123"
                                ]
                              },
                              "user_email": {
                                "type": "string",
                                "description": "The person's e-mail, for a User option.",
                                "examples": [
                                  "jane@example.com"
                                ]
                              },
                              "team_id": {
                                "type": "string",
                                "description": "The team's ID, for every option but the Organization.",
                                "examples": [
                                  "t123"
                                ]
                              },
                              "team_name": {
                                "type": "string",
                                "description": "The team's name, for every option but the Organization.",
                                "examples": [
                                  "Platform"
                                ]
                              },
                              "escalation_policy_id": {
                                "type": "string",
                                "description": "The escalation policy's ID, for a Policy option.",
                                "examples": [
                                  "456"
                                ]
                              },
                              "schedule_id": {
                                "type": "string",
                                "description": "The on-call calendar's ID, for a Schedule option.",
                                "examples": [
                                  "789"
                                ]
                              },
                              "default_schedule": {
                                "type": "boolean",
                                "description": "Whether this is your team's default on-call calendar, for a Schedule option.",
                                "examples": [
                                  true
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API. The incident belongs to another team and was escalated here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "The incident is already resolved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `escalation_type` parameter isn't one of the listed values, `search` isn't a single string, or another query parameter was sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "escalation_type",
          "name",
          "team_name"
        ],
        "x-cli-response-fields": [
          "type",
          "escalation_type",
          "name",
          "user_id",
          "user_email",
          "team_id",
          "team_name",
          "escalation_policy_id",
          "schedule_id",
          "default_schedule"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.escalation_options"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": []
        }
      }
    },
    "/api/v6/incidents/{id}/execution-log": {
      "get": {
        "operationId": "execution_log_incident",
        "summary": "Get the Playwright execution log and artifacts of a monitor incident.",
        "description": "The log and artifacts are returned only when they were captured.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incidents/:id/execution-log",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "newest_report": {
                "summary": "Newest report",
                "value": "123456789"
              },
              "older_report": {
                "summary": "Older report",
                "value": "123456789"
              }
            }
          },
          {
            "name": "report_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "98701"
              ]
            },
            "description": "ID of the report to return, from `reports`. Defaults to the incident's newest report.",
            "examples": {
              "older_report": {
                "summary": "Older report",
                "value": "98701"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the execution log of one report. `log_url` and each artifact `url` are download links valid for one hour, until `urls_expire_at`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the incident.",
                          "examples": [
                            "123456789"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "examples": [
                            "execution_log"
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "report_id": {
                              "type": "string",
                              "description": "ID of the report this log belongs to.",
                              "examples": [
                                "98765"
                              ]
                            },
                            "region": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Region the check ran in.",
                              "examples": [
                                "eu-central-playwright"
                              ]
                            },
                            "recorded_at": {
                              "type": "string",
                              "format": "date-time",
                              "description": "When the report was recorded.",
                              "examples": [
                                "2026-11-12T09:41:07.512Z"
                              ]
                            },
                            "log_url": {
                              "type": "string",
                              "description": "Download link for the log.",
                              "examples": [
                                "https://example.com/log.txt"
                              ]
                            },
                            "log_size_bytes": {
                              "type": "integer",
                              "format": "int64",
                              "description": "Size of the log in bytes.",
                              "examples": [
                                18234
                              ]
                            },
                            "urls_expire_at": {
                              "type": "string",
                              "format": "date-time",
                              "description": "When `log_url` and the artifact links stop working, one hour after the request. Request the execution log again for fresh links.",
                              "examples": [
                                "2026-11-12T10:45:00.000Z"
                              ]
                            },
                            "artifacts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "file_name": {
                                    "type": "string",
                                    "description": "The file's name, such as `screenshot.png`."
                                  },
                                  "url": {
                                    "type": "string",
                                    "description": "A link to download the file. The link expires after an hour."
                                  },
                                  "size_bytes": {
                                    "type": "integer",
                                    "format": "int64",
                                    "description": "The file's size in bytes."
                                  }
                                }
                              },
                              "description": "The report's files, such as the log and screenshots, each with its name, download link and size in bytes.",
                              "examples": [
                                [
                                  {
                                    "file_name": "log.txt",
                                    "url": "https://example.com/log.txt",
                                    "size_bytes": 18234
                                  },
                                  {
                                    "file_name": "screenshot.png",
                                    "url": "https://example.com/screenshot.png",
                                    "size_bytes": 254310
                                  }
                                ]
                              ]
                            },
                            "reports": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "report_id": {
                                    "type": "string",
                                    "description": "The report's ID, to send as `report_id`."
                                  },
                                  "region": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The region the check ran from, such as `eu-central-playwright`."
                                  },
                                  "recorded_at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "description": "When the report was recorded."
                                  }
                                }
                              },
                              "description": "The incident's reports, newest first and at most 1000, so you can pick a `report_id`.",
                              "examples": [
                                [
                                  {
                                    "report_id": "98765",
                                    "region": "eu-central-playwright",
                                    "recorded_at": "2026-11-12T09:41:07.512Z"
                                  },
                                  {
                                    "report_id": "98701",
                                    "region": "us-east-playwright",
                                    "recorded_at": "2026-11-12T09:36:05.104Z"
                                  }
                                ]
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "There is no execution log for this incident because it didn't come from a Playwright monitor, no report was captured, the report was deleted, or `report_id` names a report of a different incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The `report_id` parameter isn't a positive integer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-response-fields": [
          "id",
          "type",
          "report_id",
          "region",
          "recorded_at",
          "log_url",
          "log_size_bytes",
          "urls_expire_at",
          "artifacts",
          "reports"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.execution_log"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": []
        }
      }
    },
    "/api/v6/incidents/{id}/reopen": {
      "post": {
        "operationId": "reopen_incident",
        "summary": "Reopen a resolved incident, within 24 hours of resolution.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incidents/:id/reopen",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "reopen_an_incident": {
                "summary": "Reopen an incident",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The incident belongs to another team and was escalated here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "The incident isn't resolved, the monitor already has another open incident, or more than 24 hours have passed since resolution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reopened_by": {
                    "type": "string",
                    "description": "E-mail of a team member, or any text to credit. Defaults to the user the OAuth token belongs to, or to `API` for an API token.",
                    "examples": [
                      "john@example.com"
                    ]
                  }
                }
              },
              "examples": {
                "reopen_an_incident": {
                  "summary": "Reopen an incident",
                  "value": {
                    "reopened_by": "jane@example.com"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      }
    },
    "/api/v6/incidents/{id}/resolve": {
      "post": {
        "operationId": "resolve_incident",
        "summary": "Resolve an ongoing incident.",
        "description": "Subscribers are notified as your team's settings say.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incidents/:id/resolve",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "resolve_an_incident": {
                "summary": "Resolve an incident",
                "value": "123456"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. The incident belongs to another team and was escalated here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "409": {
            "description": "The incident was already resolved, or isn't confirmed yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "resolved_by": {
                    "type": "string",
                    "description": "E-mail of a team member, or any text to credit. Defaults to the user the OAuth token belongs to, or to `API` for an API token.",
                    "examples": [
                      "john@example.com"
                    ]
                  }
                }
              },
              "examples": {
                "resolve_an_incident": {
                  "summary": "Resolve an incident",
                  "value": {
                    "resolved_by": "john@example.com"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "cause",
          "status",
          "started_at"
        ],
        "x-cli-name-fields": [
          "name",
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "call",
          "sms",
          "email",
          "push",
          "critical_alert",
          "cause",
          "status",
          "shared",
          "escalation_policy_id",
          "incident_group_id",
          "url",
          "http_method",
          "regions",
          "response_content",
          "response_options",
          "response_url",
          "screenshot_url",
          "origin_url",
          "slack_channels",
          "started_at",
          "acknowledged_at",
          "acknowledged_by",
          "resolved_at",
          "resolved_by",
          "monitor",
          "heartbeat",
          "domain_expires_at",
          "ssl_certificate_expires_at",
          "metadata",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        },
        "x-cli-credential-lists": {
          "monitor": [
            "request_headers"
          ]
        }
      }
    },
    "/api/v6/incidents/{id}/timeline": {
      "get": {
        "operationId": "timeline_incident",
        "summary": "Get an incident's timeline of comments, integration payloads and what happened to it.",
        "description": "The timeline shows when the incident started, who it was escalated to, which checks failed, and when it was acknowledged and resolved.",
        "tags": [
          "incident"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incidents/:id/timeline",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "incident_timeline": {
                "summary": "Incident timeline",
                "value": "123456789"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns every timeline item in one page. Items shown only in the web app, such as date separators and upgrade prompts, aren't included.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "ID of the timeline item.",
                            "examples": [
                              "comment-123"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "examples": [
                              "timeline_item"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "item_type": {
                                "type": "string",
                                "description": "What the item is, one of `comment`, `payload`, `generic`, `generic_card`, `response_item`, `timeline_truncated`, `ai_sre` or `status_report_card`. The shape of `data` depends on it.",
                                "examples": [
                                  "comment"
                                ]
                              },
                              "at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "When the event happened.",
                                "examples": [
                                  "2026-11-21T10:00:00.000Z"
                                ]
                              },
                              "data": {
                                "type": "object",
                                "properties": {
                                  "title": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The item's heading, such as which integration sent a payload."
                                  },
                                  "content": {
                                    "oneOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "text": {
                                            "type": "string",
                                            "description": "The comment's text."
                                          },
                                          "user": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The author's user ID, such as `u123`. `null` for an automatic comment that has no user, such as an escalation policy's instructions."
                                              },
                                              "name": {
                                                "type": "string",
                                                "description": "The author's full name."
                                              },
                                              "email": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "description": "The author's e-mail. `null` for an automatic comment that has no user."
                                              }
                                            },
                                            "description": "Who posted the comment. `null` when the comment has no author."
                                          }
                                        }
                                      }
                                    ],
                                    "description": "The item's text. For a comment, it's an object with the comment's `text` and `user`. `user` is the person who posted it, as `{id, name, email}` with an `id` such as `u123`. `user` is `null` when the comment has no author."
                                  },
                                  "links": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "The URLs the item links to."
                                  },
                                  "attachments": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "filename": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "description": "The file's name."
                                        },
                                        "size": {
                                          "type": "integer",
                                          "format": "int64",
                                          "description": "The file's size in bytes."
                                        },
                                        "mime_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "description": "The file's MIME type, such as `image/png`."
                                        },
                                        "url": {
                                          "type": "string",
                                          "description": "A link to download the file."
                                        }
                                      }
                                    },
                                    "description": "Files attached to a comment or an integration payload."
                                  }
                                },
                                "description": "The item's content, whose keys depend on `item_type`. Comments and payloads have a `title`, `content` and `attachments`, cards and status report updates have a `title`, `content` and `links`, and system events have `content` and `links`.",
                                "examples": [
                                  {
                                    "title": "Comment",
                                    "content": {
                                      "text": "Rolled back the deploy.",
                                      "user": {
                                        "id": "u123",
                                        "name": "Tomas Hromada",
                                        "email": "tomas@example.com"
                                      }
                                    },
                                    "attachments": [
                                      {
                                        "filename": "error.png",
                                        "size": 48213,
                                        "mime_type": "image/png",
                                        "url": "https://example.com/attachments/error.png"
                                      }
                                    ]
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-response-fields": [
          "id",
          "type",
          "item_type",
          "at",
          "data"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident.timeline"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": []
        }
      }
    },
    "/api/v6/incidents/{incident_id}/comments": {
      "get": {
        "operationId": "list_incident_comment",
        "summary": "List an incident's comments, oldest first.",
        "tags": [
          "incident_comment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incidents/:incident_id/comments",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_incident_comments": {
                "summary": "List incident comments",
                "value": "1"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of incident_comment objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentCommentList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "user_email",
          "created_at"
        ],
        "x-cli-name-fields": [
          "content"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "content",
          "user_email",
          "attachments",
          "user_id",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_comment.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_incident_comment",
        "summary": "Post a comment on an incident's timeline.",
        "tags": [
          "incident_comment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "POST /api/v6/incidents/:incident_id/comments",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "simple_text": {
                "summary": "Simple text",
                "value": "1"
              },
              "rich_formatted_comment": {
                "summary": "Rich-formatted comment",
                "value": "1"
              },
              "attach_an_uploaded_file_and_a_file_by_url": {
                "summary": "Attach an uploaded file and a file by URL",
                "value": "1"
              },
              "tag_a_team_member": {
                "summary": "Tag a team member",
                "value": "1"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "201": {
            "description": "A single incident_comment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentCommentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown, validation failed, `user_email` names nobody in your organization, or a mention in `content` isn't `u123` or the e-mail of someone in your organization. The request also fails when `attachment_upload_ids` or `attachment_urls` isn't a list of strings or the two hold more than 10 files together. An upload that doesn't exist, has no file yet, expired or belongs to another organization fails too, and so does a URL that couldn't be downloaded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "503": {
            "description": "The files in `attachment_upload_ids` couldn't be read right now. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentCommentCreate"
              },
              "examples": {
                "simple_text": {
                  "summary": "Simple text",
                  "value": {
                    "content": "Posted from API"
                  }
                },
                "rich_formatted_comment": {
                  "summary": "Rich-formatted comment",
                  "value": {
                    "content": "# 🚨 Incident Update\n\nHere is the current system status:\n\n| Component | Status       |\n|-----------|--------------|\n| API       | ✅ Operational |\n| Database  | 🔄 Restarting |\n| Cache     | ❌ Down       |\n\n_Updated automatically via API._"
                  }
                },
                "attach_an_uploaded_file_and_a_file_by_url": {
                  "summary": "Attach an uploaded file and a file by URL",
                  "value": {
                    "content": "Checkout errors and the trace attached",
                    "attachment_upload_ids": [
                      "123"
                    ],
                    "attachment_urls": [
                      "https://example.com/reports/trace.txt"
                    ]
                  }
                },
                "tag_a_team_member": {
                  "summary": "Tag a team member",
                  "value": {
                    "content": "Please review the incident resolution",
                    "user_email": "user@example.com"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "user_email",
          "created_at"
        ],
        "x-cli-name-fields": [
          "content"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "content",
          "user_email",
          "attachments",
          "user_id",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_comment.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v6/incidents/{incident_id}/comments/{id}": {
      "delete": {
        "operationId": "delete_incident_comment",
        "summary": "Delete an incident comment permanently.",
        "description": "Deleting a comment can't be undone.",
        "tags": [
          "incident_comment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v6/incidents/:incident_id/comments/:id",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_incident_comment": {
                "summary": "Delete an incident comment",
                "value": "1"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_incident_comment": {
                "summary": "Delete an incident comment",
                "value": "1"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. A team member posted the comment, so only that member can edit or delete it, with an OAuth token. An API token can edit and delete only comments posted with an API token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident comment doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The request failed validation, a field is unknown or missing, a value isn't supported, or a feature your plan doesn't include was set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_incident_comment",
        "summary": "Get a single incident comment, with its text and who posted it.",
        "tags": [
          "incident_comment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /api/v6/incidents/:incident_id/comments/:id",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_incident_comment": {
                "summary": "Get an incident comment",
                "value": "1"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_incident_comment": {
                "summary": "Get an incident comment",
                "value": "1"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident_comment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentCommentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "Your role doesn't allow viewing this, or the token can't be used for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident comment doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "user_email",
          "created_at"
        ],
        "x-cli-name-fields": [
          "content"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "content",
          "user_email",
          "attachments",
          "user_id",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_comment.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_incident_comment",
        "summary": "Edit the content of an existing incident comment.",
        "tags": [
          "incident_comment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v6/incidents/:incident_id/comments/:id",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "simple_text": {
                "summary": "Simple text",
                "value": "1"
              },
              "rich_formatted_comment": {
                "summary": "Rich-formatted comment",
                "value": "1"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "simple_text": {
                "summary": "Simple text",
                "value": "1"
              },
              "rich_formatted_comment": {
                "summary": "Rich-formatted comment",
                "value": "1"
              }
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^t[1-9][0-9]*$"
            },
            "description": "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."
          }
        ],
        "responses": {
          "200": {
            "description": "A single incident_comment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentCommentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, your role doesn't allow the action, or the token can't be used for this API. A team member posted the comment, so only that member can edit or delete it, with an OAuth token. An API token can edit and delete only comments posted with an API token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "404": {
            "description": "The incident comment doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "A mention in `content` isn't `u123` or the e-mail of someone in the organization, `attachment_upload_ids` or `attachment_urls` name a file that can't be attached, or validation failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentCommentUpdate"
              },
              "examples": {
                "simple_text": {
                  "summary": "Simple text",
                  "value": {
                    "content": "Updated comment content"
                  }
                },
                "rich_formatted_comment": {
                  "summary": "Rich-formatted comment",
                  "value": {
                    "content": "# 🚨 Incident Update\n\nHere is the current system status:\n\n| Component | Status       |\n|-----------|--------------|\n| API       | ✅ Operational |\n| Database  | 🔄 Restarting |\n| Cache     | ❌ Down       |\n\n_Updated automatically via API._"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "user_email",
          "created_at"
        ],
        "x-cli-name-fields": [
          "content"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "content",
          "user_email",
          "attachments",
          "user_id",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.incidents.incident_comment.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/ips-by-cluster.json": {
      "get": {
        "operationId": "ip_list",
        "summary": "List the IP addresses to allow in your firewall so Better Stack monitors can reach your services, grouped by cluster.",
        "tags": [
          "ip_list"
        ],
        "security": [],
        "x-access": "read",
        "x-api": "incidents",
        "x-cli": true,
        "x-endpoint": "GET /ips-by-cluster.json",
        "parameters": [],
        "responses": {
          "200": {
            "description": "A JSON object keyed by cluster name. Each cluster holds a list of IP addresses, each IPv4 or IPv6. Clusters and addresses change over time, so read them from the response instead of relying on a fixed list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "The Better Stack IP address doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          },
          "422": {
            "description": "The team in `team_id` isn't one the token can reach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentsError"
                }
              }
            }
          }
        },
        "x-cli-default-action": true,
        "x-response-envelope": {
          "item_path": [],
          "attributes_path": []
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "teamApiToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token scoped to one team."
      },
      "globalApiToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Organization-wide API token that can reach several teams."
      },
      "userOauth": {
        "type": "oauth2",
        "flows": {},
        "description": "OAuth access token bound to a signed-in user."
      }
    },
    "schemas": {
      "CLIResponse.incidents.catalog_attribute.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Attribute name.",
            "nullable": false,
            "sensitive": false
          },
          "primary": {
            "type": "boolean",
            "description": "Whether this attribute is used to match records to incidents. Each primary attribute matches the incident metadata key of the same name. When a record matches, its other attributes are added to the incident as metadata.",
            "nullable": false,
            "sensitive": false
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Display order of the attribute among the relation's attributes.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.catalog_record.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attribute": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The catalog attribute's ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog attribute's name."
                    }
                  },
                  "description": "The catalog attribute to set, by ID or name. Responses include both."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source. Required, unless you send a text value as `{value}` on its own."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a String value. Required when `type` is `String`."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A reference needs one of `item_id`, `name` or `email`."
                      },
                      "name": {
                        "type": "string",
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`. A monitor, a Slack integration and a Zapier Zap can't be looked up by name.",
                        "nullable": true
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "Values to set for this attribute."
                }
              },
              "required": [
                "attribute",
                "values"
              ]
            },
            "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.catalog_relation.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Catalog relation name.",
            "nullable": false,
            "sensitive": false
          },
          "description": {
            "type": "string",
            "description": "What this catalog relation describes.",
            "nullable": true,
            "sensitive": false
          },
          "match_mode": {
            "type": "string",
            "enum": [
              "any",
              "all"
            ],
            "description": "How an incident is matched to a record when the relation has several primary attributes.\n\n- `any`: Matches a record when any primary attribute matches.\n- `all`: Matches a record when every primary attribute matches.",
            "x-enum-descriptions": {
              "any": "Matches a record when any primary attribute matches.",
              "all": "Matches a record when every primary attribute matches."
            },
            "nullable": false,
            "sensitive": false
          },
          "records_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of catalog records in this catalog relation.",
            "nullable": false,
            "sensitive": false
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Attribute name. Names must be unique within the relation."
                },
                "primary": {
                  "type": "boolean",
                  "description": "Whether records are matched by this attribute. Defaults to `false`."
                },
                "id": {
                  "type": "string",
                  "description": "ID of an existing attribute to keep. Leave it out to keep the attribute with the same name, or to add a new one."
                },
                "position": {
                  "type": "integer",
                  "format": "int64",
                  "description": "Display order, set by the order of the list. Primary attributes count from 0 and added attributes from 1000.",
                  "readOnly": true
                }
              },
              "required": [
                "name"
              ]
            },
            "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends `attributes` replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave `attributes` out of an update to keep the attributes as they are.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.escalation_policy.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Policy name.",
            "nullable": false,
            "sensitive": false
          },
          "repeat_count": {
            "type": "integer",
            "format": "int64",
            "description": "How many times the whole policy repeats if nobody acknowledges the incident.",
            "nullable": false,
            "sensitive": false
          },
          "repeat_delay": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds until the steps repeat.",
            "nullable": false,
            "sensitive": false
          },
          "escalation_policy_group_id": {
            "type": "string",
            "description": "The ID of the escalation policy group this policy is in, or `null` when it's in none.",
            "nullable": true,
            "sensitive": false
          },
          "fallback_escalation_policy_id": {
            "type": "string",
            "description": "Escalation policy to escalate to after these steps and repeats run out. Must belong to the same organization.",
            "nullable": true,
            "sensitive": false
          },
          "incident_token": {
            "type": "string",
            "description": "The secret token in the link to the policy's incident report form, used to open incidents on this policy.",
            "nullable": false,
            "sensitive": true
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "escalation",
                    "time_branching",
                    "metadata_branching",
                    "instructions",
                    "resolve_remove"
                  ],
                  "description": "The step type.\n\n- `escalation`: Notifies people or integrations.\n- `time_branching`: Acts when the incident happens in a time window, and otherwise continues with the next step.\n- `metadata_branching`: Acts when the incident's metadata matches a value, and otherwise continues with the next step.\n- `instructions`: Posts instructions into the incident timeline.\n- `resolve_remove`: Resolves or removes the incident.",
                  "x-enum-descriptions": {
                    "escalation": "Notifies people or integrations.",
                    "time_branching": "Acts when the incident happens in a time window, and otherwise continues with the next step.",
                    "metadata_branching": "Acts when the incident's metadata matches a value, and otherwise continues with the next step.",
                    "instructions": "Posts instructions into the incident timeline.",
                    "resolve_remove": "Resolves or removes the incident."
                  }
                },
                "wait_before": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How long the step waits after the previous step, in seconds, from `0` to `691200`, which is 8 days. Defaults to `0`. Leave it out when the step waits until a time of day with `wait_until_time`."
                },
                "wait_until_time": {
                  "type": "string",
                  "description": "The time of day the step runs, in `HH:MM` format, instead of waiting `wait_before`. Requires `wait_until_timezone`. Responses show it in place of `wait_before` on such steps."
                },
                "wait_until_timezone": {
                  "type": "string",
                  "description": "The time zone of `wait_until_time`, as a time zone name such as `London` or `Eastern Time (US & Canada)`."
                },
                "wait_until_days": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The days on which `wait_until_time` applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Defaults to every day."
                },
                "severity_id": {
                  "type": "string",
                  "description": "The ID of the severity that sets how the step's members are notified. Required on `escalation` steps. Get the severity ID via [List severities](/docs/uptime/api/list-all-severities/)."
                },
                "step_members": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "The member type. `current_on_call` notifies whoever is on call, and `entire_team` everyone in the team. `user` notifies one person, `policy` runs another escalation policy, `incident_metadata` notifies the people or integrations the incident's metadata names under `metadata_key`, and `ai_sre` starts an AI SRE investigation. A member can also be one integration, with type `webhook`, `email_integration`, `slack_integration`, `linear_integration`, `jira_integration`, `halo_psa_integration`, `microsoft_teams_integration`, `pagerduty_integration`, `zapier_webhook`, `zoom_integration` or `google_meet_integration`. Or it can be every integration of one kind, with type `all_slack_integrations`, `all_linear_integrations`, `all_jira_integrations`, `all_microsoft_teams_integrations`, `all_zapier_integrations`, `all_pagerduty_integrations`, `all_webhook_integrations`, `all_email_integrations`, `all_splunk_on_call_integrations`, `all_incident_io_integrations`, `all_zoom_integrations` or `all_google_meet_integrations`."
                      },
                      "id": {
                        "type": "string",
                        "description": "The ID of the member's target. Required for `user` unless `email` is set, and for `policy`, `ai_sre` and every type that notifies one integration. A `user` member is `u123` or their e-mail, and responses return `u123`. A `current_on_call` member accepts the ID of an on-call schedule to notify instead of your team's default schedule. An `entire_team` member accepts another team in the organization, as its ID such as `t123`. Responses return it the same way. Both come back without an ID when they use the policy's own team. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "email": {
                        "type": "string",
                        "description": "The e-mail of a `user` member, instead of its `id`."
                      },
                      "metadata_key": {
                        "type": "string",
                        "description": "For an `incident_metadata` member, the incident metadata key that says who to notify. The member notifies the users, teams, on-call schedules, escalation policies and integrations stored under that key."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "entire_team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "user"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "Who or what the step notifies, at least one member. Required on `escalation` steps. Each member has a `type`, plus an `id`, `email` or `metadata_key` depending on the type."
                },
                "timezone": {
                  "type": "string",
                  "description": "The time zone of the time window. Required on `time_branching` steps."
                },
                "days": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The days on which the time window applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Used on `time_branching` steps and defaults to every day."
                },
                "time_from": {
                  "type": "string",
                  "description": "Start of the time window, in `HH:MM` format. Required on `time_branching` steps."
                },
                "time_to": {
                  "type": "string",
                  "description": "End of the time window, in `HH:MM` format. Required on `time_branching` steps."
                },
                "metadata_key": {
                  "type": "string",
                  "description": "The incident metadata key the step checks. Required on `metadata_branching` steps."
                },
                "metadata_values": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, `no_value`, or a catalog item's type, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. `no_value` matches when the incident's metadata doesn't have the key or the key is empty."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "The catalog item's ID. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": "string",
                        "description": "The catalog item's name. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "A User item's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "The metadata values that match, at least one. Required on `metadata_branching` steps. Each is `{type: \"String\", value}`, `{type: \"no_value\"}` or a catalog item reference. `no_value` matches when the key is missing or blank."
                },
                "action_type": {
                  "type": "string",
                  "enum": [
                    "escalate_to_policy",
                    "resolve_incident",
                    "remove_incident",
                    "do_not_escalate"
                  ],
                  "description": "What the step does. Required on `resolve_remove` steps, which accept only resolving or removing. On branching steps, the action applies when the incident matches. Defaults to running another policy when you set `escalation_policy_id` or `policy_metadata_key`, and to stopping otherwise.\n\n- `escalate_to_policy`: Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.\n- `resolve_incident`: Resolves the incident and stops this policy.\n- `remove_incident`: Removes the incident for good and stops this policy.\n- `do_not_escalate`: Stops this policy.",
                  "x-enum-descriptions": {
                    "escalate_to_policy": "Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.",
                    "resolve_incident": "Resolves the incident and stops this policy.",
                    "remove_incident": "Removes the incident for good and stops this policy.",
                    "do_not_escalate": "Stops this policy."
                  }
                },
                "escalation_policy_id": {
                  "type": "string",
                  "description": "The ID of another escalation policy in your organization to run when the incident matches. Used on `time_branching` and `metadata_branching` steps. Can't be combined with `policy_metadata_key`.",
                  "nullable": true
                },
                "policy_metadata_key": {
                  "type": "string",
                  "description": "A key in the incident's metadata that holds the escalation policy to run when the incident matches, instead of `escalation_policy_id`. Used on `time_branching` and `metadata_branching` steps. If the key is missing or holds no policy, the policy stops.",
                  "nullable": true
                },
                "instructions_comment": {
                  "type": "string",
                  "description": "The instructions posted as a comment into the incident timeline. Supports Markdown, checkboxes like `- [ ] Step 1`, and values from the incident's metadata as `{key}`, such as `{server_region}`. Required on `instructions` steps."
                },
                "instructions_reminder_enabled": {
                  "type": "boolean",
                  "description": "Whether to post a reminder periodically until every checkbox in the instructions is checked. Defaults to `false`."
                },
                "instructions_reminder_interval_hours": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How often the reminder is posted, in hours, on `instructions` steps with `instructions_reminder_enabled` on. At least `1`, and `4` by default."
                }
              },
              "required": [
                "type"
              ]
            },
            "description": "Ordered escalation steps. An update with steps replaces the whole list. An empty list makes a silent policy that only collects incidents. Every step has a type, a wait set by `wait_before` or by `wait_until_time` and `wait_until_timezone`, and the keys its type uses.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this policy, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this policy.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.escalation_policy_group.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Group name.",
            "nullable": false,
            "sensitive": false
          },
          "sort_index": {
            "type": "integer",
            "format": "int64",
            "description": "The group's position in your list of escalation policy groups, lower values first. `null` when no position was set.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this group, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this group.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.file_upload.create": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "organization_id": {
            "type": "string",
            "description": "Organization the upload belongs to, such as `123`. Required when you sign in with OAuth and can access more than one organization. Without it, the upload belongs to your token's organization.",
            "nullable": false,
            "sensitive": false
          },
          "filename": {
            "type": "string",
            "description": "The name the attachment gets, without a path, double quotes or control characters, up to 255 characters.",
            "nullable": false,
            "sensitive": false
          },
          "content_type": {
            "type": "string",
            "description": "The file's MIME type, such as `text/plain`, `image/png` or `application/pdf`. When the file's contents are of a different type, the file is saved as the type of its contents.",
            "nullable": false,
            "sensitive": false
          },
          "status": {
            "type": "string",
            "description": "`pending` until the file is sent to `upload_url`, then `uploaded`.",
            "nullable": false,
            "sensitive": false
          },
          "size": {
            "type": "integer",
            "format": "int64",
            "description": "The file's size in bytes, once it's uploaded.",
            "nullable": true,
            "sensitive": false
          },
          "upload_url": {
            "type": "string",
            "description": "Where to send the file with `PUT`, without a token. Accepts one file of up to 10 MB. The URL expires after 15 minutes. Present while the upload is `pending`.",
            "nullable": true,
            "sensitive": true
          },
          "upload_url_expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When `upload_url` expires.",
            "nullable": true,
            "sensitive": false
          },
          "upload_command": {
            "type": "string",
            "description": "A `curl` command that sends the file from the current directory to `upload_url`. Present while the upload is `pending`.",
            "nullable": true,
            "sensitive": true
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the upload is removed if nothing attached it, a day after it was created.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the upload was created.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.heartbeat.availability": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the heartbeat.",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "availability": {
            "type": "number",
            "description": "Percentage of the range the heartbeat was up, from 0 to 100, rounded to four decimal places.",
            "nullable": false,
            "sensitive": false
          },
          "total_downtime": {
            "type": "integer",
            "format": "int64",
            "description": "Downtime within the range, in whole seconds.",
            "nullable": false,
            "sensitive": false
          },
          "number_of_incidents": {
            "type": "integer",
            "format": "int64",
            "description": "Number of incidents that overlap the range.",
            "nullable": false,
            "sensitive": false
          },
          "longest_incident": {
            "type": "integer",
            "format": "int64",
            "description": "Downtime of the longest incident within the range, in whole seconds.",
            "nullable": false,
            "sensitive": false
          },
          "average_incident": {
            "type": "integer",
            "format": "int64",
            "description": "Average downtime per incident within the range, in whole seconds. `0` when there were no incidents.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.heartbeat.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Heartbeat name.",
            "nullable": false,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "The unique URL your service requests to report a heartbeat.",
            "nullable": false,
            "sensitive": true
          },
          "status": {
            "type": "string",
            "enum": [
              "paused",
              "pending",
              "maintenance",
              "up",
              "validating",
              "down"
            ],
            "description": "The heartbeat's current status.\n\n- `paused`: The heartbeat is paused.\n- `pending`: The first request hasn't arrived yet.\n- `maintenance`: The heartbeat is in its maintenance window.\n- `up`: There's no open incident.\n- `validating`: Requests arrive again, and the open incident resolves once the recovery period passes.\n- `down`: A request didn't arrive in time or reported a failure.",
            "x-enum-descriptions": {
              "paused": "The heartbeat is paused.",
              "pending": "The first request hasn't arrived yet.",
              "maintenance": "The heartbeat is in its maintenance window.",
              "up": "There's no open incident.",
              "validating": "Requests arrive again, and the open incident resolves once the recovery period passes.",
              "down": "A request didn't arrive in time or reported a failure."
            },
            "nullable": false,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the heartbeat is paused. A paused heartbeat doesn't notify you about downtime.",
            "nullable": false,
            "sensitive": false
          },
          "period": {
            "type": "integer",
            "format": "int64",
            "description": "How often the heartbeat expects a request, in seconds. At least `30` and less than a year.",
            "nullable": false,
            "sensitive": false
          },
          "grace": {
            "type": "integer",
            "format": "int64",
            "description": "How late a request can arrive after `period`, in seconds, before it counts as missed. At least `0` and less than a year.",
            "nullable": false,
            "sensitive": false
          },
          "heartbeat_group_id": {
            "type": "string",
            "description": "ID of the heartbeat group this heartbeat belongs to.",
            "nullable": true,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Get the ID via [List escalation policies](/docs/uptime/api/list-all-escalation-policies/).",
            "nullable": true,
            "sensitive": false
          },
          "server_timezone": {
            "type": "string",
            "description": "The time zone your job runs in, as an IANA name like `Europe/Berlin`. Set it so a job scheduled by local time isn't counted as late when the clocks change for daylight saving.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_from": {
            "type": "string",
            "description": "Start time of the daily maintenance window, like `01:00`. We don't check the heartbeat during the window. Returned as `HH:MM:SS`, or `null` when no window is set.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_to": {
            "type": "string",
            "description": "End time of the daily maintenance window, like `03:00`. Required with `maintenance_from`. A window that ends before it starts runs overnight. Returned as `HH:MM:SS`, or `null` when no window is set.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_timezone": {
            "type": "string",
            "format": "time-zone",
            "description": "Time zone of the maintenance window, as a short name like `Amsterdam` or an IANA name like `Europe/Amsterdam`. Returned as the short name. `null` means UTC.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_days": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window counts for the day it starts. Order doesn't matter.",
            "nullable": false,
            "sensitive": false
          },
          "paused_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the heartbeat was paused.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the heartbeat was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the heartbeat was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this heartbeat, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this heartbeat.",
            "nullable": false,
            "sensitive": false
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": "string",
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`.",
                    "nullable": true
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.heartbeat_group.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Group name.",
            "nullable": false,
            "sensitive": false
          },
          "sort_index": {
            "type": "integer",
            "format": "int64",
            "description": "The position of the group in your list of heartbeat groups, lower values first. `null` when no position was set.",
            "nullable": true,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether every heartbeat in the group is paused, `false` when the group has none.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this heartbeat group, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this heartbeat group.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.holiday_mode.get": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "on_holiday": {
            "type": "boolean",
            "description": "Whether the team member is on holiday now.",
            "nullable": false,
            "sensitive": false
          },
          "holiday_ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the holiday ends, rounded up to the whole second. `null` when holiday mode is off.",
            "nullable": true,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incident.escalation_options": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Always `escalation_option`.",
            "nullable": false,
            "sensitive": false
          },
          "escalation_type": {
            "type": "string",
            "enum": [
              "User",
              "Team",
              "Policy",
              "Schedule",
              "Organization"
            ],
            "description": "What the option escalates to. Pass it to escalate as `escalation_type`.\n\n- `User`: A person.\n- `Team`: A team.\n- `Policy`: An escalation policy.\n- `Schedule`: An on-call calendar.\n- `Organization`: The whole organization.",
            "x-enum-descriptions": {
              "User": "A person.",
              "Team": "A team.",
              "Policy": "An escalation policy.",
              "Schedule": "An on-call calendar.",
              "Organization": "The whole organization."
            },
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The person's, team's or escalation policy's name. For an on-call calendar, who it alerts, such as `Current on-call person in Primary`.",
            "nullable": false,
            "sensitive": false
          },
          "user_id": {
            "type": "string",
            "description": "The person's user ID, for a User option.",
            "nullable": true,
            "sensitive": false
          },
          "user_email": {
            "type": "string",
            "description": "The person's e-mail, for a User option.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "description": "The team's ID, for every option but the Organization.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "The team's name, for every option but the Organization.",
            "nullable": false,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "The escalation policy's ID, for a Policy option.",
            "nullable": false,
            "sensitive": false
          },
          "schedule_id": {
            "type": "string",
            "description": "The on-call calendar's ID, for a Schedule option.",
            "nullable": false,
            "sensitive": false
          },
          "default_schedule": {
            "type": "boolean",
            "description": "Whether this is your team's default on-call calendar, for a Schedule option.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incident.execution_log": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the incident.",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "report_id": {
            "type": "string",
            "description": "ID of the report this log belongs to.",
            "nullable": false,
            "sensitive": false
          },
          "region": {
            "type": "string",
            "description": "Region the check ran in.",
            "nullable": true,
            "sensitive": false
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the report was recorded.",
            "nullable": false,
            "sensitive": false
          },
          "log_url": {
            "type": "string",
            "description": "Download link for the log.",
            "nullable": false,
            "sensitive": false
          },
          "log_size_bytes": {
            "type": "integer",
            "format": "int64",
            "description": "Size of the log in bytes.",
            "nullable": false,
            "sensitive": false
          },
          "urls_expire_at": {
            "type": "string",
            "format": "date-time",
            "description": "When `log_url` and the artifact links stop working, one hour after the request. Request the execution log again for fresh links.",
            "nullable": false,
            "sensitive": false
          },
          "artifacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "file_name": {
                  "type": "string",
                  "description": "The file's name, such as `screenshot.png`."
                },
                "url": {
                  "type": "string",
                  "description": "A link to download the file. The link expires after an hour."
                },
                "size_bytes": {
                  "type": "integer",
                  "format": "int64",
                  "description": "The file's size in bytes."
                }
              }
            },
            "description": "The report's files, such as the log and screenshots, each with its name, download link and size in bytes.",
            "nullable": false,
            "sensitive": false
          },
          "reports": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "report_id": {
                  "type": "string",
                  "description": "The report's ID, to send as `report_id`."
                },
                "region": {
                  "type": "string",
                  "description": "The region the check ran from, such as `eu-central-playwright`.",
                  "nullable": true
                },
                "recorded_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the report was recorded."
                }
              }
            },
            "description": "The incident's reports, newest first and at most 1000, so you can pick a `report_id`.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incident.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Incident name.",
            "nullable": true,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to alert by phone call. When your plan doesn't include phone calls, the call is skipped and the incident timeline records it.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to alert by SMS. When your plan doesn't include SMS, the SMS is skipped and the incident timeline records it.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to alert by e-mail.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to alert by push notification. When your plan doesn't include push notifications, the push notification is skipped and the incident timeline records it.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical alert, a push notification that bypasses silent mode. A phone that has Critical alerts turned off and Push notifications on in the Better Stack app gets an ordinary push notification instead. When your plan doesn't include push notifications, the critical alert is skipped and the incident timeline records it.",
            "nullable": false,
            "sensitive": false
          },
          "cause": {
            "type": "string",
            "description": "What triggered the incident, such as `Status 500` or `Missed heartbeat`. For a manual incident, the cause is its summary. `null` when no cause was given or extracted.",
            "nullable": true,
            "sensitive": false
          },
          "status": {
            "type": "string",
            "enum": [
              "Started",
              "Acknowledged",
              "Resolved",
              "Validating",
              "Unconfirmed"
            ],
            "description": "The incident's state. Listing returns only confirmed incidents.\n\n- `Started`: The incident is open and nobody has acknowledged it yet.\n- `Acknowledged`: Someone acknowledged the incident and it isn't resolved yet.\n- `Resolved`: The incident is resolved.\n- `Validating`: The check or alert has recovered and the recovery period runs.\n- `Unconfirmed`: The failure is still being confirmed.",
            "x-enum-descriptions": {
              "Started": "The incident is open and nobody has acknowledged it yet.",
              "Acknowledged": "Someone acknowledged the incident and it isn't resolved yet.",
              "Resolved": "The incident is resolved.",
              "Validating": "The check or alert has recovered and the recovery period runs.",
              "Unconfirmed": "The failure is still being confirmed."
            },
            "nullable": false,
            "sensitive": false
          },
          "shared": {
            "type": "boolean",
            "description": "Whether this incident belongs to another team and was escalated here.",
            "nullable": false,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "The escalation policy for this incident. An escalation policy from another team returns a 404 error.",
            "nullable": true,
            "sensitive": false
          },
          "incident_group_id": {
            "type": "string",
            "description": "Incident group this incident is in.",
            "nullable": true,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "The URL the monitor checked. `null` for incidents a monitor didn't raise.",
            "nullable": true,
            "sensitive": false
          },
          "http_method": {
            "type": "string",
            "description": "The HTTP method of the monitor's check, such as `get`, `post` or `head`. `null` for incidents a monitor didn't raise.",
            "nullable": true,
            "sensitive": false
          },
          "regions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The regions the monitor was set to check from when the incident opened, any of `us`, `eu`, `as` and `au`.",
            "nullable": true,
            "sensitive": false
          },
          "response_content": {
            "type": "string",
            "description": "The text of the response that triggered the incident, with HTML removed, when it's shorter than 500 characters. Longer bodies are linked in `response_url` instead.",
            "nullable": true,
            "sensitive": false
          },
          "response_options": {
            "type": "string",
            "description": "Details of the check that triggered the incident, as a JSON string, such as its timings, response code and response headers.",
            "nullable": true,
            "sensitive": false
          },
          "response_url": {
            "type": "string",
            "description": "A link to the full response body that triggered the incident, when its text is 500 characters or longer.",
            "nullable": true,
            "sensitive": false
          },
          "screenshot_url": {
            "type": "string",
            "description": "URL of the screenshot we captured when the check failed.",
            "nullable": true,
            "sensitive": false
          },
          "origin_url": {
            "type": "string",
            "description": "URL to the third-party alert this incident originated from, if any.",
            "nullable": true,
            "sensitive": false
          },
          "slack_channels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Slack channels notified about the incident.",
            "nullable": false,
            "sensitive": false
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the incident started. `null` while the incident is `Unconfirmed`.",
            "nullable": true,
            "sensitive": false
          },
          "acknowledged_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the incident was acknowledged.",
            "nullable": true,
            "sensitive": false
          },
          "acknowledged_by": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Full name of the team member, or the free-text attribution."
              },
              "email": {
                "type": "string",
                "description": "E-mail of the team member. `null` when no team member acknowledged it, such as for a free-text attribution, `API` or Slack.",
                "nullable": true
              }
            },
            "description": "Who acknowledged the incident. `null` while nobody has.",
            "nullable": true,
            "sensitive": false
          },
          "resolved_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the incident was resolved.",
            "nullable": true,
            "sensitive": false
          },
          "resolved_by": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Full name of the team member, or the free-text attribution."
              },
              "email": {
                "type": "string",
                "description": "E-mail of the team member. `null` when no team member resolved it, such as for a free-text attribution, `API` or Slack.",
                "nullable": true
              }
            },
            "description": "Who resolved the incident. `null` while nobody has.",
            "nullable": true,
            "sensitive": false
          },
          "monitor": {
            "type": "object",
            "additionalProperties": true,
            "description": "The monitor that raised the incident, for an incident a monitor raised.",
            "nullable": true,
            "sensitive": false
          },
          "heartbeat": {
            "type": "object",
            "additionalProperties": true,
            "description": "The heartbeat that raised the incident, for an incident a heartbeat raised.",
            "nullable": true,
            "sensitive": false
          },
          "domain_expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the domain that opened this incident expires. Returned only for an incident about an expiring domain.",
            "nullable": false,
            "sensitive": false
          },
          "ssl_certificate_expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the TLS certificate that opened this incident expires. Returned only for an incident about an expiring certificate.",
            "nullable": false,
            "sensitive": false
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name}`, plus `email` for a User. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). To write metadata, give each key one value or a list of values. A value can be a plain string, `{value}`, or a reference as `{type, item_id}`, `{type, name}` or `{type, email}`. An update replaces all of the incident's metadata, including keys Better Stack added such as `Origin`, and `{}` removes it all.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns the incident, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the incident.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incident.timeline": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the timeline item.",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "item_type": {
            "type": "string",
            "description": "What the item is, one of `comment`, `payload`, `generic`, `generic_card`, `response_item`, `timeline_truncated`, `ai_sre` or `status_report_card`. The shape of `data` depends on it.",
            "nullable": false,
            "sensitive": false
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened.",
            "nullable": false,
            "sensitive": false
          },
          "data": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "description": "The item's heading, such as which integration sent a payload.",
                "nullable": true
              },
              "content": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "description": "The comment's text."
                      },
                      "user": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "id": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The author's user ID, such as `u123`. `null` for an automatic comment that has no user, such as an escalation policy's instructions."
                          },
                          "name": {
                            "type": "string",
                            "description": "The author's full name."
                          },
                          "email": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The author's e-mail. `null` for an automatic comment that has no user."
                          }
                        },
                        "description": "Who posted the comment. `null` when the comment has no author."
                      }
                    }
                  }
                ],
                "description": "The item's text. For a comment, it's an object with the comment's `text` and `user`. `user` is the person who posted it, as `{id, name, email}` with an `id` such as `u123`. `user` is `null` when the comment has no author."
              },
              "links": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The URLs the item links to."
              },
              "attachments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "filename": {
                      "type": "string",
                      "description": "The file's name.",
                      "nullable": true
                    },
                    "size": {
                      "type": "integer",
                      "format": "int64",
                      "description": "The file's size in bytes."
                    },
                    "mime_type": {
                      "type": "string",
                      "description": "The file's MIME type, such as `image/png`.",
                      "nullable": true
                    },
                    "url": {
                      "type": "string",
                      "description": "A link to download the file."
                    }
                  }
                },
                "description": "Files attached to a comment or an integration payload."
              }
            },
            "description": "The item's content, whose keys depend on `item_type`. Comments and payloads have a `title`, `content` and `attachments`, cards and status report updates have a `title`, `content` and `links`, and system events have `content` and `links`.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incident_comment.list": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "id": {
            "type": "string",
            "description": "The comment's ID, the same as the top-level `id`.",
            "nullable": false,
            "sensitive": false
          },
          "content": {
            "type": "string",
            "description": "The comment text in Markdown, up to 100,000 characters. A user mention you send can name the user by `u123` or their e-mail. Responses name each mentioned user by `u123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/).",
            "nullable": false,
            "sensitive": false
          },
          "user_email": {
            "type": "string",
            "description": "On create, the e-mail of a user in your organization to tag. The comment then starts with a mention of them. In a response, the e-mail of the user who posted the comment. Left out when the comment was posted with an API token.",
            "nullable": false,
            "sensitive": false
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The attachment's ID."
                },
                "filename": {
                  "type": "string",
                  "description": "The file's name."
                },
                "content_type": {
                  "type": "string",
                  "description": "The file's MIME type."
                },
                "size": {
                  "type": "integer",
                  "format": "int64",
                  "description": "The file's size in bytes."
                },
                "url": {
                  "type": "string",
                  "description": "A link to the file. For a file attached through the API it expires after 15 minutes, so read the comment again for a fresh one."
                }
              }
            },
            "description": "The comment's files, oldest first.",
            "nullable": false,
            "sensitive": false
          },
          "user_id": {
            "type": "string",
            "description": "The user who posted the comment, as `u123`. Left out when the comment was posted with an API token.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the comment was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the comment was last updated.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incident_group.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The group's name, up to 100 characters. `null` when it has none.",
            "nullable": true,
            "sensitive": false
          },
          "incidents_count": {
            "type": "integer",
            "format": "int64",
            "description": "How many incidents the group holds. Incidents still being confirmed aren't counted.",
            "nullable": false,
            "sensitive": false
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group's earliest incident started. Removing that incident from the group doesn't change it.",
            "nullable": false,
            "sensitive": false
          },
          "acknowledged_at": {
            "type": "string",
            "format": "date-time",
            "description": "When someone acknowledged the group. New incidents that join it later are acknowledged too. `null` while nobody has.",
            "nullable": true,
            "sensitive": false
          },
          "acknowledged_by": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Full name of the team member, or the text credited instead of a team member."
              },
              "email": {
                "type": "string",
                "description": "E-mail of the team member. `null` when the group was credited to something other than a team member, such as `API`, Slack or a custom text.",
                "nullable": true
              }
            },
            "description": "Who acknowledged the group. `null` while nobody has.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns the group, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the group.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incident_grouping_change.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "action": {
            "type": "string",
            "enum": [
              "grouped",
              "ungrouped"
            ],
            "description": "What the person did to the group.\n\n- `grouped`: The person put incidents into the group.\n- `ungrouped`: The person removed incidents from the group.",
            "x-enum-descriptions": {
              "grouped": "The person put incidents into the group.",
              "ungrouped": "The person removed incidents from the group."
            },
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the person made the change.",
            "nullable": false,
            "sensitive": false
          },
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The person's user ID, such as `u123`."
              },
              "name": {
                "type": "string",
                "description": "The person's full name."
              },
              "email": {
                "type": "string",
                "description": "The person's e-mail."
              }
            },
            "description": "Who made the change. `null` once the person's account is removed.",
            "nullable": true,
            "sensitive": false
          },
          "incident_group_id": {
            "type": "string",
            "description": "ID of the incident group the incidents joined or left. The group may no longer exist.",
            "nullable": true,
            "sensitive": false
          },
          "incident_group_name": {
            "type": "string",
            "description": "The group's name. `null` once the group is gone, or when it has no name.",
            "nullable": true,
            "sensitive": false
          },
          "incidents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The incident's ID."
                },
                "name": {
                  "type": "string",
                  "description": "The incident's name."
                },
                "cause": {
                  "type": "string",
                  "description": "The incident's cause as plain text, cut to 200 characters."
                },
                "started_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the incident started."
                },
                "metadata": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "The incident's metadata, each key with its text values."
                }
              }
            },
            "description": "Up to 5 of the incidents the person moved. Incidents removed since aren't listed.",
            "nullable": false,
            "sensitive": false
          },
          "incidents_count": {
            "type": "integer",
            "format": "int64",
            "description": "How many incidents the person moved.",
            "nullable": false,
            "sensitive": false
          },
          "group_incidents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The incident's ID."
                },
                "name": {
                  "type": "string",
                  "description": "The incident's name."
                },
                "cause": {
                  "type": "string",
                  "description": "The incident's cause as plain text, cut to 200 characters."
                },
                "started_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the incident started."
                },
                "metadata": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "The incident's metadata, each key with its text values."
                }
              }
            },
            "description": "Up to 5 of the group's other incidents, the ones the moved incidents joined or were removed from, in the same shape as `incidents`.",
            "nullable": false,
            "sensitive": false
          },
          "group_incidents_count": {
            "type": "integer",
            "format": "int64",
            "description": "How many other incidents the group held at the time of the change.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_amazon_sns_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "topic_arn": {
            "type": "string",
            "description": "The ARN of the subscribed Amazon SNS topic, or `null` until AWS confirms the subscription.",
            "nullable": true,
            "sensitive": false
          },
          "subscription_state": {
            "type": "string",
            "enum": [
              "awaiting",
              "active"
            ],
            "description": "Whether AWS has confirmed the SNS subscription.\n\n- `awaiting`: AWS hasn't confirmed the subscription yet.\n- `active`: AWS has confirmed the subscription.",
            "x-enum-descriptions": {
              "awaiting": "AWS hasn't confirmed the subscription yet.",
              "active": "AWS has confirmed the subscription."
            },
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The name of the Amazon SNS integration shown in the dashboard.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "nullable": true,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "The endpoint to subscribe your Amazon SNS topic to. Leave **Enable raw message delivery** off on the subscription, or every notification is rejected with `400`.",
            "nullable": false,
            "sensitive": true
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait, in seconds, after a matching resolving notification before the incident resolves. Applies only while `resolved_rule_type` isn't `unused`.",
            "nullable": false,
            "sensitive": false
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the notification goes to that incident instead of opening a new one.\n\n- `unused`: Every notification that doesn't acknowledge or resolve an incident opens one.\n- `any`: A notification opens an incident when at least one of `started_rules` matches.\n- `all`: A notification opens an incident when all of `started_rules` match.",
            "x-enum-descriptions": {
              "unused": "Every notification that doesn't acknowledge or resolve an incident opens one.",
              "any": "A notification opens an incident when at least one of `started_rules` matches.",
              "all": "A notification opens an incident when all of `started_rules` match."
            },
            "nullable": false,
            "sensitive": false
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.\n\n- `unused`: Notifications never acknowledge an incident.\n- `any`: A notification acknowledges an incident when at least one of `acknowledged_rules` matches.\n- `all`: A notification acknowledges an incident when all of `acknowledged_rules` match.",
            "x-enum-descriptions": {
              "unused": "Notifications never acknowledge an incident.",
              "any": "A notification acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "A notification acknowledges an incident when all of `acknowledged_rules` match."
            },
            "nullable": false,
            "sensitive": false
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Resolving is checked first, then acknowledging, then opening, and a notification that matches no open incident can still open one.\n\n- `unused`: Notifications never resolve an incident.\n- `any`: A notification resolves an incident when at least one of `resolved_rules` matches.\n- `all`: A notification resolves an incident when all of `resolved_rules` match.",
            "x-enum-descriptions": {
              "unused": "Notifications never resolve an incident.",
              "any": "A notification resolves an incident when at least one of `resolved_rules` matches.",
              "all": "A notification resolves an incident when all of `resolved_rules` match."
            },
            "nullable": false,
            "sensitive": false
          },
          "cause_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": "string",
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                "nullable": true
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the notification that starts an incident. Defaults to the whole message.",
            "nullable": true,
            "sensitive": false
          },
          "title_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": "string",
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                "nullable": true
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract a custom incident title from the notification that starts an incident, with the same keys as `cause_field`. By default, the title is the whole SNS `Subject`, with `field_target` set to `sns_envelope`, `target_field` to `Subject` and `match_type` to `match_everything`. `null` extracts no title.",
            "nullable": true,
            "sensitive": false
          },
          "started_alert_id_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": "string",
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                "nullable": true
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the notification that starts an incident, with the same keys as `cause_field`. Later notifications acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "nullable": true,
            "sensitive": false
          },
          "acknowledged_alert_id_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": "string",
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                "nullable": true
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a notification that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "nullable": true,
            "sensitive": false
          },
          "resolved_alert_id_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": "string",
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                "nullable": true
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a notification that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "nullable": true,
            "sensitive": false
          },
          "other_started_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.",
                  "nullable": true
                },
                "special_type": {
                  "type": "string",
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  },
                  "nullable": true
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": "string",
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                  "nullable": true
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                  "nullable": true
                },
                "content_before": {
                  "type": "string",
                  "description": "The start delimiter for `match_between`.",
                  "nullable": true
                },
                "content_after": {
                  "type": "string",
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                  "nullable": true
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the notification that starts an incident, saved as incident metadata.",
            "nullable": true,
            "sensitive": false
          },
          "other_acknowledged_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.",
                  "nullable": true
                },
                "special_type": {
                  "type": "string",
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  },
                  "nullable": true
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": "string",
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                  "nullable": true
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                  "nullable": true
                },
                "content_before": {
                  "type": "string",
                  "description": "The start delimiter for `match_between`.",
                  "nullable": true
                },
                "content_after": {
                  "type": "string",
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                  "nullable": true
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a notification that acknowledges an incident.",
            "nullable": true,
            "sensitive": false
          },
          "other_resolved_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.",
                  "nullable": true
                },
                "special_type": {
                  "type": "string",
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  },
                  "nullable": true
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": "string",
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                  "nullable": true
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                  "nullable": true
                },
                "content_before": {
                  "type": "string",
                  "description": "The start delimiter for `match_between`.",
                  "nullable": true
                },
                "content_after": {
                  "type": "string",
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                  "nullable": true
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a notification that resolves an incident.",
            "nullable": true,
            "sensitive": false
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": "string",
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                  "nullable": true
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "nullable": false,
            "sensitive": false
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": "string",
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                  "nullable": true
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "nullable": false,
            "sensitive": false
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": "string",
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`.",
                  "nullable": true
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "nullable": false,
            "sensitive": false
          },
          "sample_query_string": {
            "type": "string",
            "description": "The query string of the sample notification saved in the dashboard to preview extraction.",
            "nullable": true,
            "sensitive": false
          },
          "sample_headers": {
            "type": "string",
            "description": "The headers of the sample notification saved in the dashboard to preview extraction.",
            "nullable": true,
            "sensitive": false
          },
          "sample_body": {
            "type": "string",
            "description": "The body of the sample SNS message saved in the dashboard to preview extraction.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the integration was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the integration was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": "string",
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`.",
                    "nullable": true
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_aws_cloudwatch_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into AWS CloudWatch. Alerts AWS CloudWatch sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_azure_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into Azure. Alerts Azure sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_datadog_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into Datadog. Alerts Datadog sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "alerting_rule": {
            "type": "string",
            "enum": [
              "alert",
              "alert_and_warn"
            ],
            "description": "Which Datadog alert levels open incidents.\n\n- `alert`: Opens an incident for alerts only.\n- `alert_and_warn`: Opens an incident for alerts and warnings.",
            "x-enum-descriptions": {
              "alert": "Opens an incident for alerts only.",
              "alert_and_warn": "Opens an incident for alerts and warnings."
            },
            "nullable": false,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_elastic_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into Elastic. Alerts Elastic sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_google_monitoring_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into Google Monitoring. Alerts Google Monitoring sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_grafana_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into Grafana. Alerts Grafana sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_incoming_email_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The name of the e-mail integration shown in the dashboard.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "nullable": true,
            "sensitive": false
          },
          "email_address": {
            "type": "string",
            "description": "The address to forward your e-mails to. E-mails sent to it open incidents.",
            "nullable": false,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while `resolved_rule_type` isn't `unused`.",
            "nullable": false,
            "sensitive": false
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one.\n\n- `unused`: Every e-mail that doesn't acknowledge or resolve an incident opens one.\n- `any`: An e-mail opens an incident when at least one of `started_rules` matches.\n- `all`: An e-mail opens an incident when all of `started_rules` match.",
            "x-enum-descriptions": {
              "unused": "Every e-mail that doesn't acknowledge or resolve an incident opens one.",
              "any": "An e-mail opens an incident when at least one of `started_rules` matches.",
              "all": "An e-mail opens an incident when all of `started_rules` match."
            },
            "nullable": false,
            "sensitive": false
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.\n\n- `unused`: E-mails never acknowledge an incident.\n- `any`: An e-mail acknowledges an incident when at least one of `acknowledged_rules` matches.\n- `all`: An e-mail acknowledges an incident when all of `acknowledged_rules` match.",
            "x-enum-descriptions": {
              "unused": "E-mails never acknowledge an incident.",
              "any": "An e-mail acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "An e-mail acknowledges an incident when all of `acknowledged_rules` match."
            },
            "nullable": false,
            "sensitive": false
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one.\n\n- `unused`: E-mails never resolve an incident.\n- `any`: An e-mail resolves an incident when at least one of `resolved_rules` matches.\n- `all`: An e-mail resolves an incident when all of `resolved_rules` match.",
            "x-enum-descriptions": {
              "unused": "E-mails never resolve an incident.",
              "any": "An e-mail resolves an incident when at least one of `resolved_rules` matches.",
              "all": "An e-mail resolves an incident when all of `resolved_rules` match."
            },
            "nullable": false,
            "sensitive": false
          },
          "cause_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.",
            "nullable": true,
            "sensitive": false
          },
          "title_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "Field that extracts the incident title, with the same keys as `cause_field`.",
            "nullable": true,
            "sensitive": false
          },
          "started_alert_id_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as `cause_field`. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "nullable": true,
            "sensitive": false
          },
          "acknowledged_alert_id_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "nullable": true,
            "sensitive": false
          },
          "resolved_alert_id_field": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.",
                "nullable": true
              },
              "special_type": {
                "type": "string",
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                },
                "nullable": true
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": "string",
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                "nullable": true
              },
              "content_before": {
                "type": "string",
                "description": "The start delimiter for `match_between`.",
                "nullable": true
              },
              "content_after": {
                "type": "string",
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                "nullable": true
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "nullable": true,
            "sensitive": false
          },
          "other_started_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.",
                  "nullable": true
                },
                "special_type": {
                  "type": "string",
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  },
                  "nullable": true
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                  "nullable": true
                },
                "content_before": {
                  "type": "string",
                  "description": "The start delimiter for `match_between`.",
                  "nullable": true
                },
                "content_after": {
                  "type": "string",
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                  "nullable": true
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.",
            "nullable": true,
            "sensitive": false
          },
          "other_acknowledged_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.",
                  "nullable": true
                },
                "special_type": {
                  "type": "string",
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  },
                  "nullable": true
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                  "nullable": true
                },
                "content_before": {
                  "type": "string",
                  "description": "The start delimiter for `match_between`.",
                  "nullable": true
                },
                "content_after": {
                  "type": "string",
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                  "nullable": true
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from an e-mail that acknowledges an incident.",
            "nullable": true,
            "sensitive": false
          },
          "other_resolved_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.",
                  "nullable": true
                },
                "special_type": {
                  "type": "string",
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  },
                  "nullable": true
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`.",
                  "nullable": true
                },
                "content_before": {
                  "type": "string",
                  "description": "The start delimiter for `match_between`.",
                  "nullable": true
                },
                "content_after": {
                  "type": "string",
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end.",
                  "nullable": true
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from an e-mail that resolves an incident.",
            "nullable": true,
            "sensitive": false
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "nullable": false,
            "sensitive": false
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "nullable": false,
            "sensitive": false
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the integration was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the integration was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": "string",
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`.",
                    "nullable": true
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_integration_authorization.get": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "integration_type": {
            "type": "string",
            "enum": [
              "slack",
              "linear",
              "jira"
            ],
            "description": "The integration being connected.",
            "nullable": false,
            "sensitive": false
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "failed",
              "expired"
            ],
            "description": "Whether the integration is connected yet.\n\n- `pending`: Waiting for a person to open `authorization_url` and finish the sign-in.\n- `completed`: The integration is connected. `integration_id` is its ID.\n- `failed`: The sign-in didn't connect the integration. `status_reason` says why.\n- `expired`: Nobody finished the sign-in in time.",
            "x-enum-descriptions": {
              "pending": "Waiting for a person to open `authorization_url` and finish the sign-in.",
              "completed": "The integration is connected. `integration_id` is its ID.",
              "failed": "The sign-in didn't connect the integration. `status_reason` says why.",
              "expired": "Nobody finished the sign-in in time."
            },
            "nullable": false,
            "sensitive": false
          },
          "status_reason": {
            "type": "string",
            "description": "Why connecting failed, as the sign-in page showed it. `null` unless `status` is `failed`.",
            "nullable": true,
            "sensitive": false
          },
          "authorization_url": {
            "type": "string",
            "description": "The link that connects the integration. Open it in a browser, sign in to Better Stack, then sign in with the provider. `null` once the link expires or the sign-in ends. A link created with your own sign-in rather than an API token opens only for you.",
            "nullable": true,
            "sensitive": false
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the link stops opening, 30 minutes after it was created. A sign-in started before then has 30 more minutes to finish.",
            "nullable": false,
            "sensitive": false
          },
          "integration_id": {
            "type": "string",
            "description": "The ID of the connected integration. `null` until `status` is `completed`.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team the integration is connected to, such as `t123`.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_jira_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name. `null` while the integration is still being connected.",
            "nullable": true,
            "sensitive": false
          },
          "automatic_issue_creation": {
            "type": "boolean",
            "description": "Whether to create a Jira issue for every incident automatically.",
            "nullable": false,
            "sensitive": false
          },
          "jira_project_key": {
            "type": "string",
            "description": "Key of the Jira project that issues are created in. Get the key from your Jira issue keys, such as `ABC` in `ABC-123`. A key that isn't found is refused, and the error lists the available keys.",
            "nullable": true,
            "sensitive": false
          },
          "jira_issue_type_id": {
            "type": "string",
            "description": "ID of the Jira issue type for created issues. Get the ID via the Get issue types for project endpoint of Jira's REST API.",
            "nullable": true,
            "sensitive": false
          },
          "jira_fields": {
            "type": "object",
            "additionalProperties": true,
            "description": "Extra Jira fields to set on created issues, keyed by Jira field ID. Set the integration up in the app, then use the `jira_fields` from [Get a Jira integration](/docs/uptime/api/single-jira-integration/) as a template. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{\"customfield_10042\": \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_linear_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": false,
            "sensitive": false
          },
          "linear_team_id": {
            "type": "string",
            "description": "ID of the Linear team that issues are created in.",
            "nullable": false,
            "sensitive": false
          },
          "linear_assignee_id": {
            "type": "string",
            "description": "ID of the Linear user that issues are assigned to. `null` leaves issues unassigned.",
            "nullable": true,
            "sensitive": false
          },
          "linear_priority": {
            "type": "string",
            "enum": [
              "no_priority",
              "urgent",
              "high",
              "medium",
              "low"
            ],
            "description": "Priority of the issues created.",
            "nullable": false,
            "sensitive": false
          },
          "linear_status_id": {
            "type": "string",
            "description": "ID of the Linear status that issues start in. `null` uses the Linear team's default status.",
            "nullable": true,
            "sensitive": false
          },
          "linear_project_id": {
            "type": "string",
            "description": "ID of the Linear project that issues are added to. `null` adds them to no project.",
            "nullable": true,
            "sensitive": false
          },
          "linear_labels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the Linear label."
                },
                "name": {
                  "type": "string",
                  "description": "The label's name in Linear when it was set.",
                  "readOnly": true
                }
              }
            },
            "description": "Labels added to the issues created.",
            "nullable": false,
            "sensitive": false
          },
          "automatic_issue_creation": {
            "type": "boolean",
            "description": "Whether to create a Linear issue for every incident automatically.",
            "nullable": false,
            "sensitive": false
          },
          "automatic_issue_closure": {
            "type": "boolean",
            "description": "Whether to move the issue to `linear_resolved_status_id` when the incident is resolved.",
            "nullable": false,
            "sensitive": false
          },
          "linear_resolved_status_id": {
            "type": "string",
            "description": "ID of the Linear status that issues move to when the incident is resolved.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_new_relic_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into New Relic. Alerts New Relic sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "alerting_rule": {
            "type": "string",
            "enum": [
              "alert",
              "alert_and_warn"
            ],
            "description": "Which New Relic alert levels open incidents.\n\n- `alert`: Opens an incident for alerts only.\n- `alert_and_warn`: Opens an incident for alerts and warnings.",
            "x-enum-descriptions": {
              "alert": "Opens an incident for alerts only.",
              "alert_and_warn": "Opens an incident for alerts and warnings."
            },
            "nullable": false,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_outgoing_email_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The integration's name, shown in the dashboard.",
            "nullable": true,
            "sensitive": false
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "description": "The recipient's e-mail address."
                }
              }
            },
            "description": "The people the integration e-mails. Each recipient is an object with an `email` key and up to 10 extra text keys, such as `first_name`, which templates render as `$RECIPIENT.<key>`.",
            "nullable": false,
            "sensitive": false
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "incident_stage": {
                  "type": "string",
                  "enum": [
                    "started",
                    "acknowledged",
                    "resolved",
                    "reopened",
                    "comment"
                  ],
                  "description": "Incident stage this template applies to."
                },
                "subject": {
                  "type": "string",
                  "description": "The e-mail subject, up to 500 characters. Supports incident variables such as `$NAME`, `$STATUS`, `$CAUSE` and `$INCIDENT_URL`, a metadata value as `$METADATA.Key`, all metadata as `$METADATA_ARRAY` and a recipient's attributes as `$RECIPIENT.<key>`. `null` uses the default template.",
                  "nullable": true
                },
                "title": {
                  "type": "string",
                  "description": "The e-mail title, up to 500 characters. Supports the same variables as `subject`. `null` uses the default template.",
                  "nullable": true
                },
                "body": {
                  "type": "string",
                  "description": "The e-mail body in Markdown, up to 20,000 characters. Supports the same variables as `subject`. `null` uses the default template.",
                  "nullable": true
                }
              }
            },
            "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_started": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident starts.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_acknowledged": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is acknowledged.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_resolved": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is resolved.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_reopened": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is reopened.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_comment": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when a new comment is posted on an incident.",
            "nullable": false,
            "sensitive": false
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy.",
            "nullable": false,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration sends no e-mails.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_outgoing_pagerduty_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": false,
            "sensitive": false
          },
          "key": {
            "type": "string",
            "description": "PagerDuty integration key, also called the routing key.",
            "nullable": false,
            "sensitive": true
          },
          "severity": {
            "type": "string",
            "enum": [
              "info",
              "warning",
              "error",
              "critical"
            ],
            "description": "PagerDuty severity sent with the event.",
            "nullable": false,
            "sensitive": false
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to alert this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's alerted only when a step of that policy notifies it.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_outgoing_webhook_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The integration's name, shown in the dashboard.",
            "nullable": true,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "The URL the webhook is sent to. For an `incident_change` webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.",
            "nullable": false,
            "sensitive": false
          },
          "trigger_type": {
            "type": "string",
            "enum": [
              "incident_change",
              "on_call_change",
              "monitor_change"
            ],
            "description": "What triggers the webhook. Fixed once the integration is created.\n\n- `incident_change`: Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment.\n- `on_call_change`: Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift.\n- `monitor_change`: Sends the webhook when a monitor is created, updated, paused, unpaused or removed.",
            "x-enum-descriptions": {
              "incident_change": "Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment.",
              "on_call_change": "Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift.",
              "monitor_change": "Sends the webhook when a monitor is created, updated, paused, unpaused or removed."
            },
            "nullable": false,
            "sensitive": false
          },
          "metadata_api_version": {
            "type": "string",
            "enum": [
              "v2",
              "v3"
            ],
            "description": "How the `$METADATA` variables in the URL and `body_template` render.\n\n- `v2`: Renders `$METADATA.<key>` as the key's last plain-text value.\n- `v3`: Renders `$METADATA.<key>` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.<key>.values` list each value with its type.",
            "x-enum-descriptions": {
              "v2": "Renders `$METADATA.<key>` as the key's last plain-text value.",
              "v3": "Renders `$METADATA.<key>` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.<key>.values` list each value with its type."
            },
            "nullable": false,
            "sensitive": false
          },
          "on_incident_started": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident starts. Only for an `incident_change` webhook.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_acknowledged": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is acknowledged. Only for an `incident_change` webhook.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_resolved": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is resolved. Only for an `incident_change` webhook.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_reopened": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is reopened. Only for an `incident_change` webhook.",
            "nullable": false,
            "sensitive": false
          },
          "on_incident_comment": {
            "type": "boolean",
            "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a `comment` object, whose `attributes` hold the comment's `content`, `created_at`, `updated_at`, `user_id` and `user_email`. Only for an `incident_change` webhook.",
            "nullable": false,
            "sensitive": false
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an `incident_change` webhook.",
            "nullable": false,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration sends no webhooks.",
            "nullable": false,
            "sensitive": false
          },
          "custom_webhook_template": {
            "type": "object",
            "properties": {
              "http_method": {
                "type": "string",
                "enum": [
                  "head",
                  "get",
                  "post",
                  "put",
                  "patch",
                  "options"
                ],
                "description": "The HTTP method of the request, `post` by default. A GET request is sent without a body."
              },
              "headers_template": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The header's name, such as `Content-Type`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The header's value, sent as written."
                    }
                  }
                },
                "description": "Custom request headers, as a list of objects with `name` and `value`. Header values are sent as written, without template variables.",
                "x-detect-credentials": true
              },
              "body_template": {
                "type": "string",
                "description": "Request body template, as text. Can use the [metadata variables](/docs/uptime/webhooks/#metadata-variables).",
                "nullable": true
              },
              "auth_username": {
                "type": "string",
                "description": "The username for basic authentication.",
                "nullable": true
              }
            },
            "description": "The saved request template, returned under `included`. `null` when the webhook has no custom template.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_prometheus_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "webhook_url": {
            "type": "string",
            "description": "The URL to paste into Prometheus. Alerts Prometheus sends to it open incidents.",
            "nullable": false,
            "sensitive": true
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_slack_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "slack_team_id": {
            "type": "string",
            "description": "Slack workspace id.",
            "nullable": false,
            "sensitive": false
          },
          "slack_team_name": {
            "type": "string",
            "description": "Slack workspace name.",
            "nullable": false,
            "sensitive": false
          },
          "slack_channel_id": {
            "type": "string",
            "description": "Slack channel id.",
            "nullable": false,
            "sensitive": false
          },
          "slack_channel_name": {
            "type": "string",
            "description": "Slack channel name.",
            "nullable": false,
            "sensitive": false
          },
          "slack_status": {
            "type": "string",
            "enum": [
              "active",
              "account_inactive"
            ],
            "description": "Whether the connected Slack account is active.\n\n- `active`: The connected Slack account is active.\n- `account_inactive`: Slack reports the connected account as inactive.",
            "x-enum-descriptions": {
              "active": "The connected Slack account is active.",
              "account_inactive": "Slack reports the connected account as inactive."
            },
            "nullable": false,
            "sensitive": false
          },
          "integration_type": {
            "type": "string",
            "enum": [
              "legacy",
              "verbose",
              "thread",
              "channel"
            ],
            "description": "How incidents are posted to Slack.\n\n- `legacy`: Posts every incident to the connected channel, as `verbose` does. Slack users can't alert escalation policies from it.\n- `verbose`: Posts every incident to the connected channel.\n- `thread`: Starts a thread for each incident in the connected channel. Needs a paid plan.\n- `channel`: Creates a new channel for each incident. Needs a paid plan.",
            "x-enum-descriptions": {
              "legacy": "Posts every incident to the connected channel, as `verbose` does. Slack users can't alert escalation policies from it.",
              "verbose": "Posts every incident to the connected channel.",
              "thread": "Starts a thread for each incident in the connected channel. Needs a paid plan.",
              "channel": "Creates a new channel for each incident. Needs a paid plan."
            },
            "nullable": false,
            "sensitive": false
          },
          "channel_display_name": {
            "type": "string",
            "description": "Display name for the channel in Better Stack. Send an empty string to clear it.",
            "nullable": true,
            "sensitive": false
          },
          "channel_invitees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "user",
                    "on_call_calendar",
                    "slack_user_group"
                  ],
                  "description": "What is invited."
                },
                "id": {
                  "type": "string",
                  "description": "ID of the on-call calendar or Slack user group. A user is `u123` or their e-mail, and is returned as `u123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/)."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "user"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                      }
                    }
                  }
                }
              ]
            },
            "description": "Who is invited to incident channels. Replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "alert_options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "team",
                    "policy",
                    "escalation_policy"
                  ],
                  "description": "Type of routing target.\n\n- `team`: A team, alerted through the channels turned on in this entry.\n- `policy`: An escalation policy. Responses use this value.\n- `escalation_policy`: An escalation policy. Requests accept it as well as `policy`.",
                  "x-enum-descriptions": {
                    "team": "A team, alerted through the channels turned on in this entry.",
                    "policy": "An escalation policy. Responses use this value.",
                    "escalation_policy": "An escalation policy. Requests accept it as well as `policy`."
                  }
                },
                "id": {
                  "type": "string",
                  "description": "A team's ID from [List teams](/docs/uptime/api/teams/list/), such as `t123`, or an escalation policy's ID from [List escalation policies](/docs/uptime/api/list-all-escalation-policies/)."
                },
                "name": {
                  "type": "string",
                  "description": "Team or escalation policy name.",
                  "readOnly": true
                },
                "team_id": {
                  "type": "string",
                  "description": "The escalation policy's team, as its team ID such as `t123`. Only on policy entries.",
                  "readOnly": true
                },
                "team_name": {
                  "type": "string",
                  "description": "The escalation policy's team name. Only on policy entries.",
                  "readOnly": true
                },
                "call": {
                  "type": "boolean",
                  "description": "Whether to alert the team by phone call. Only on `team` entries."
                },
                "sms": {
                  "type": "boolean",
                  "description": "Whether to alert the team by SMS. Only on `team` entries."
                },
                "email": {
                  "type": "boolean",
                  "description": "Whether to alert the team by e-mail. Only on `team` entries."
                },
                "push": {
                  "type": "boolean",
                  "description": "Whether to alert the team by push notification. Only on `team` entries."
                },
                "critical_alert": {
                  "type": "boolean",
                  "description": "Whether to alert the team by critical push notification. Only on `team` entries."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "team"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^t[1-9][0-9]*$"
                      }
                    }
                  }
                }
              ]
            },
            "description": "The teams and escalation policies Slack users can alert from Slack, as under **Who can Slack users alert?** in the web app. An update replaces the whole list. An alert channel left out of a `team` entry is off.",
            "nullable": false,
            "sensitive": false
          },
          "status_page_update_resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "status_page",
                    "monitor",
                    "heartbeat",
                    "monitor_group",
                    "heartbeat_group",
                    "webhook_integration",
                    "email_integration",
                    "incoming_webhook",
                    "amazon_sns_integration",
                    "manually_tracked_item",
                    "logs_chart",
                    "catalog_reference"
                  ],
                  "description": "Resource type."
                },
                "id": {
                  "type": "string",
                  "description": "The resource's ID."
                }
              }
            },
            "description": "Resources whose status page updates are posted to this channel. Empty means every resource of the integration's team. Needs `post_status_page_updates` turned on. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "private_channel": {
            "type": "boolean",
            "description": "Whether incident channels are created as private channels. Needs at least one entry in `channel_invitees`.",
            "nullable": false,
            "sensitive": false
          },
          "alert_all_teams_and_policies": {
            "type": "boolean",
            "description": "Whether Slack users can alert every team and escalation policy in the organization, or only the ones in `alert_options`.",
            "nullable": false,
            "sensitive": false
          },
          "invite_new_slack_users": {
            "type": "boolean",
            "description": "Whether people who join the Slack workspace are invited into the integration's Better Stack team as responders.",
            "nullable": false,
            "sensitive": false
          },
          "on_call_notifications": {
            "type": "boolean",
            "description": "Whether the channel is notified when the primary responder changes.",
            "nullable": false,
            "sensitive": false
          },
          "notify_on_pause": {
            "type": "boolean",
            "description": "Whether to post when a monitor, heartbeat, group or integration is paused.",
            "nullable": false,
            "sensitive": false
          },
          "notify_on_resolve": {
            "type": "boolean",
            "description": "Whether to post when an incident is resolved.",
            "nullable": false,
            "sensitive": false
          },
          "direct_message_on_mention": {
            "type": "boolean",
            "description": "Whether to send a direct message to users mentioned in incidents.",
            "nullable": false,
            "sensitive": false
          },
          "ai_sre_on_mention": {
            "type": "boolean",
            "description": "Whether tagging Better Stack in Slack starts an AI SRE conversation.",
            "nullable": false,
            "sensitive": false
          },
          "restrict_incident_creation_to_channel": {
            "type": "boolean",
            "description": "Whether only the members of this channel can create incidents.",
            "nullable": false,
            "sensitive": false
          },
          "post_timeline_events": {
            "type": "boolean",
            "description": "Whether to post incident timeline events about e-mails, phone calls and integrations.",
            "nullable": false,
            "sensitive": false
          },
          "post_incident_metadata": {
            "type": "boolean",
            "description": "Whether to post incident metadata.",
            "nullable": false,
            "sensitive": false
          },
          "post_status_page_updates": {
            "type": "boolean",
            "description": "Whether to post status page updates. Turning it off clears `status_page_update_resources`.",
            "nullable": false,
            "sensitive": false
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether this channel is notified alongside the primary responder on incidents with no escalation policy.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.incidents_splunk_on_call_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": true,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "Splunk On-Call REST endpoint URL.",
            "nullable": false,
            "sensitive": true
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration.",
            "nullable": false,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration sends nothing to Splunk On-Call.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.metadata.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "owner_type": {
            "type": "string",
            "description": "Type of object this metadata is attached to, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`. Create and update accept every type except `CallRouting`. Changing it together with `owner_id` moves the key to another object.",
            "nullable": false,
            "sensitive": false
          },
          "owner_id": {
            "type": "string",
            "description": "ID of the object this metadata is attached to.",
            "nullable": false,
            "sensitive": false
          },
          "key": {
            "type": "string",
            "description": "Metadata key. Renaming it keeps the entry's ID and values.",
            "nullable": false,
            "sensitive": false
          },
          "values": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                },
                "value": {
                  "type": "string",
                  "description": "The text of a `String` value."
                },
                "item_id": {
                  "type": "string",
                  "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                },
                "name": {
                  "type": "string",
                  "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`.",
                  "nullable": true
                },
                "email": {
                  "type": "string",
                  "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "User"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "item_id": {
                        "type": "string",
                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                      }
                    }
                  }
                },
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "Team"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "item_id": {
                        "type": "string",
                        "pattern": "^t[1-9][0-9]*$"
                      }
                    }
                  }
                }
              ]
            },
            "description": "Values attached to the key.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns the object this metadata is attached to, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the object this metadata is attached to.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.monitor.availability": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the monitor.",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "availability": {
            "type": "number",
            "description": "Percentage of the range the monitor was up, from 0 to 100, rounded to four decimal places.",
            "nullable": false,
            "sensitive": false
          },
          "total_downtime": {
            "type": "integer",
            "format": "int64",
            "description": "Downtime within the range, in whole seconds.",
            "nullable": false,
            "sensitive": false
          },
          "number_of_incidents": {
            "type": "integer",
            "format": "int64",
            "description": "Number of incidents that overlap the range.",
            "nullable": false,
            "sensitive": false
          },
          "longest_incident": {
            "type": "integer",
            "format": "int64",
            "description": "Downtime of the longest incident within the range, in whole seconds.",
            "nullable": false,
            "sensitive": false
          },
          "average_incident": {
            "type": "integer",
            "format": "int64",
            "description": "Average downtime per incident within the range, in whole seconds. `0` when there were no incidents.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.monitor.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "The URL of your website, or the host to check for `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns` monitors, without a protocol. `null` on `playwright` monitors.",
            "nullable": true,
            "sensitive": false
          },
          "monitor_type": {
            "type": "string",
            "enum": [
              "status",
              "expected_status_code",
              "keyword",
              "keyword_absence",
              "ping",
              "tcp",
              "udp",
              "smtp",
              "pop",
              "imap",
              "dns",
              "playwright"
            ],
            "description": "What the monitor checks.\n\n- `status`: Checks that the URL returns a 2XX status code.\n- `expected_status_code`: Checks that the URL returns one of `expected_status_codes`.\n- `keyword`: Checks that the page contains `required_keyword`.\n- `keyword_absence`: Checks that the page doesn't contain `required_keyword`.\n- `ping`: Pings the host in `url`.\n- `tcp`: Checks that a TCP `port` on the host accepts connections.\n- `udp`: Sends `request_body` to a UDP `port` on the host and checks that the answer contains `required_keyword`.\n- `smtp`: Checks for an SMTP server on the host at `port`.\n- `pop`: Checks for a POP3 server on the host at `port`.\n- `imap`: Checks for an IMAP server on the host at `port`.\n- `dns`: Checks that the DNS server on the host answers a query for the domain in `request_body`.\n- `playwright`: Runs the scenario in `playwright_script`.",
            "x-enum-descriptions": {
              "status": "Checks that the URL returns a 2XX status code.",
              "expected_status_code": "Checks that the URL returns one of `expected_status_codes`.",
              "keyword": "Checks that the page contains `required_keyword`.",
              "keyword_absence": "Checks that the page doesn't contain `required_keyword`.",
              "ping": "Pings the host in `url`.",
              "tcp": "Checks that a TCP `port` on the host accepts connections.",
              "udp": "Sends `request_body` to a UDP `port` on the host and checks that the answer contains `required_keyword`.",
              "smtp": "Checks for an SMTP server on the host at `port`.",
              "pop": "Checks for a POP3 server on the host at `port`.",
              "imap": "Checks for an IMAP server on the host at `port`.",
              "dns": "Checks that the DNS server on the host answers a query for the domain in `request_body`.",
              "playwright": "Runs the scenario in `playwright_script`."
            },
            "nullable": false,
            "sensitive": false
          },
          "pronounceable_name": {
            "type": "string",
            "description": "The name of the monitor, which we use when we call you.",
            "nullable": false,
            "sensitive": false
          },
          "monitor_group_id": {
            "type": "string",
            "description": "ID of the monitor group this monitor belongs to.",
            "nullable": true,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the monitor is paused. A paused monitor opens no incidents and sends no alerts.",
            "nullable": false,
            "sensitive": false
          },
          "check_frequency": {
            "type": "integer",
            "format": "int64",
            "description": "How often to check, in seconds. Must be at least the `request_timeout`. A new or changed value below the plan's shortest interval is refused with a 422. A value the monitor already has, such as one set before a plan change, can still be sent. Accepted values depend on `monitor_type`.\n\n- `playwright`: It accepts `60`, `180`, `300`, `600`, `900`, `1800`, `3600`, `21600`, `43200` or `86400`.\n- Every other type: It accepts `30`, `45`, `60`, `120`, `180`, `300`, `600`, `900` or `1800`.",
            "nullable": false,
            "sensitive": false
          },
          "effective_check_frequency": {
            "type": "integer",
            "format": "int64",
            "description": "How often the monitor actually checks, in seconds. `effective_check_frequency_reason` says why it differs from `check_frequency`.",
            "nullable": false,
            "sensitive": false
          },
          "effective_check_frequency_reason": {
            "type": "string",
            "enum": [
              "slowed_down",
              "plan_minimum",
              "request_timeout",
              null
            ],
            "description": "Why `effective_check_frequency` differs from `check_frequency`. `null` when they're the same.\n\n- `slowed_down`: We check less often after repeated `429` responses or timeouts.\n- `plan_minimum`: Your plan's shortest interval between checks is longer than `check_frequency`, which was saved before the plan changed.\n- `request_timeout`: The monitor's `request_timeout` is longer than `check_frequency`.",
            "x-enum-descriptions": {
              "slowed_down": "We check less often after repeated `429` responses or timeouts.",
              "plan_minimum": "Your plan's shortest interval between checks is longer than `check_frequency`, which was saved before the plan changed.",
              "request_timeout": "The monitor's `request_timeout` is longer than `check_frequency`."
            },
            "nullable": true,
            "sensitive": false
          },
          "request_timeout": {
            "type": "integer",
            "format": "int64",
            "description": "How long a check waits before it times out. The unit and accepted values depend on `monitor_type`.\n\n- `status`, `expected_status_code`, `keyword` and `keyword_absence`: In seconds. It accepts `2`, `3`, `5`, `10`, `15`, `30`, `45`, `60`, `90`, `120` or `180` and defaults to `30`.\n- `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns`: In milliseconds. It accepts `500`, `1000`, `2000`, `3000` or `5000` and defaults to `5000`.\n- `playwright`: In seconds. It accepts `15`, `30`, `45`, `60`, `120`, `180`, `240`, `300`, `360`, `480`, `600` or `900` and defaults to `30`.",
            "nullable": false,
            "sensitive": false
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long checks must keep passing before the incident resolves, in seconds.",
            "nullable": false,
            "sensitive": false
          },
          "confirmation_period": {
            "type": "integer",
            "format": "int64",
            "description": "How long to wait after a failure before starting an incident, in seconds, from `0` to `86400`.",
            "nullable": false,
            "sensitive": false
          },
          "required_keyword": {
            "type": "string",
            "description": "The keyword to look for.",
            "nullable": true,
            "sensitive": false
          },
          "http_method": {
            "type": "string",
            "description": "The HTTP method of the request. Accepts `get`, `head`, `post`, `put`, `patch` or `options`. Responses return the method in lowercase. `head` can't be used with `keyword` or `keyword_absence` monitors.",
            "nullable": false,
            "sensitive": false
          },
          "request_body": {
            "type": "string",
            "description": "The body of the request. A `dns` monitor requires it. Set it to the domain to query. A `udp` monitor sends it as its content.",
            "nullable": true,
            "sensitive": false
          },
          "request_headers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The header's ID.",
                  "readOnly": true
                },
                "name": {
                  "type": "string",
                  "description": "The header name, like `Content-Type`."
                },
                "value": {
                  "type": "string",
                  "description": "The header value, like `application/json`."
                }
              }
            },
            "description": "Custom request headers, as a list of `{name, value}` objects. A list replaces all headers, and an empty list removes them all.",
            "nullable": false,
            "sensitive": false
          },
          "expected_status_codes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "HTTP status codes from `100` to `599` that count as up. A `3xx` code needs `follow_redirects` and `remember_cookies` set to `false`.",
            "nullable": false,
            "sensitive": false
          },
          "follow_redirects": {
            "type": "boolean",
            "description": "Whether we follow HTTP redirects.",
            "nullable": false,
            "sensitive": false
          },
          "remember_cookies": {
            "type": "boolean",
            "description": "Whether we keep cookies when redirecting.",
            "nullable": false,
            "sensitive": false
          },
          "verify_ssl": {
            "type": "boolean",
            "description": "Whether a check fails on an invalid SSL certificate.",
            "nullable": false,
            "sensitive": false
          },
          "auth_username": {
            "type": "string",
            "description": "HTTP basic-auth username. `null` when none is set.",
            "nullable": true,
            "sensitive": true
          },
          "regions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Regions to check from, as any combination of `us`, `eu`, `as` and `au`. When none are set, we check from all regions. Responses then list all of them.",
            "nullable": false,
            "sensitive": false
          },
          "ip_version": {
            "type": "string",
            "enum": [
              "ipv4",
              "ipv6",
              null
            ],
            "description": "The IP version to check over. `null` checks over both IPv4 and IPv6.\n\n- `ipv4`: Checks over IPv4 only.\n- `ipv6`: Checks over IPv6 only.",
            "x-enum-descriptions": {
              "ipv4": "Checks over IPv4 only.",
              "ipv6": "Checks over IPv6 only."
            },
            "nullable": true,
            "sensitive": false
          },
          "port": {
            "type": "string",
            "description": "The port to check. `tcp` and `udp` accept one port. `smtp` accepts `25`, `465` or `587`, `pop` accepts `110` or `995`, and `imap` accepts `143` or `993`, with several separated by commas like `25,465,587`.",
            "nullable": true,
            "sensitive": false
          },
          "proxy_host": {
            "type": "string",
            "description": "The host of the proxy server we send the check through, without a protocol. Can include credentials, like `user:pass@proxy.example.com`. Only for `status`, `expected_status_code`, `keyword` and `keyword_absence` monitors.",
            "nullable": true,
            "sensitive": false
          },
          "proxy_port": {
            "type": "integer",
            "format": "int64",
            "description": "The port of the proxy server, from `1` to `65535`. Requires `proxy_host`.",
            "nullable": true,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "nullable": false,
            "sensitive": false
          },
          "team_wait": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "nullable": true,
            "sensitive": false
          },
          "escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "nullable": true,
            "sensitive": false
          },
          "expiration_escalation_policy_id": {
            "type": "string",
            "description": "ID of the escalation policy for alerts about expiring SSL certificates and domains. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
            "nullable": true,
            "sensitive": false
          },
          "ssl_expiration": {
            "type": "integer",
            "format": "int64",
            "enum": [
              1,
              2,
              3,
              7,
              14,
              30,
              60,
              null
            ],
            "description": "How many days before the SSL certificate expires we alert you. `null` turns the check off and is the default. Monitors of exactly the same domain share this setting, not its subdomains. For example, monitors of `example.com/a` and `example.com/b` share it, while `www.example.com` has its own. A value set on one monitor is copied to all of them, so set the same value on each.",
            "nullable": true,
            "sensitive": false
          },
          "domain_expiration": {
            "type": "integer",
            "format": "int64",
            "enum": [
              1,
              2,
              3,
              7,
              14,
              30,
              60,
              null
            ],
            "description": "How many days before the domain expires we alert you. `null` turns the check off and is the default. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_from": {
            "type": "string",
            "description": "Start of the daily maintenance window, when we don't check, as `HH:MM:SS`, like `01:00:00`. `null` when no window is set.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_to": {
            "type": "string",
            "description": "End of the daily maintenance window, as `HH:MM:SS`, like `03:00:00`. Required with `maintenance_from`. `null` when no window is set.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_timezone": {
            "type": "string",
            "format": "time-zone",
            "description": "The time zone of the maintenance window, as a Rails time zone name like `Amsterdam` or its IANA ID like `Europe/Amsterdam`. `null` when it isn't set, which works as UTC.",
            "nullable": true,
            "sensitive": false
          },
          "maintenance_days": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window belongs to the day it starts. Order doesn't matter.",
            "nullable": false,
            "sensitive": false
          },
          "playwright_script": {
            "type": "string",
            "description": "The JavaScript source of the scenario, for `playwright` monitors.",
            "nullable": true,
            "sensitive": false
          },
          "scenario_name": {
            "type": "string",
            "description": "The name of a `playwright` monitor's scenario. Required for `playwright` monitors, and returned only for them.",
            "nullable": false,
            "sensitive": false
          },
          "environment_variables": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "Environment variables the `playwright` scenario can use, as name and value pairs like `{\"PASSWORD\": \"passw0rd\"}`.",
            "nullable": false,
            "sensitive": true
          },
          "status": {
            "type": "string",
            "enum": [
              "up",
              "down",
              "validating",
              "paused",
              "pending",
              "maintenance"
            ],
            "description": "The monitor's current status.\n\n- `up`: Checks pass.\n- `down`: Checks fail.\n- `validating`: The service seems back up, but the `recovery_period` hasn't passed yet.\n- `paused`: The monitor is paused.\n- `pending`: The monitor waits for its first check.\n- `maintenance`: The monitor is in a maintenance window.",
            "x-enum-descriptions": {
              "up": "Checks pass.",
              "down": "Checks fail.",
              "validating": "The service seems back up, but the `recovery_period` hasn't passed yet.",
              "paused": "The monitor is paused.",
              "pending": "The monitor waits for its first check.",
              "maintenance": "The monitor is in a maintenance window."
            },
            "nullable": false,
            "sensitive": false
          },
          "last_checked_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the monitor was last checked.",
            "nullable": true,
            "sensitive": false
          },
          "paused_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the monitor was paused.",
            "nullable": true,
            "sensitive": false
          },
          "checks_version": {
            "type": "string",
            "description": "Version of the checks engine. Always `v2`.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the monitor was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the monitor was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this monitor, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this monitor.",
            "nullable": false,
            "sensitive": false
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": "string",
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`.",
                    "nullable": true
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat.",
            "nullable": false,
            "sensitive": false
          },
          "auth_password": {
            "type": "string",
            "description": "HTTP basic-auth password. Not returned after it's saved.",
            "nullable": true,
            "sensitive": true,
            "writeonly": true
          }
        }
      },
      "CLIResponse.incidents.monitor.response_times": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the monitor.",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "regions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "region": {
                  "type": "string",
                  "description": "The check region, one of `us`, `eu`, `as` or `au`. `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns` monitors return a single `eu` entry."
                },
                "response_times": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the check ran."
                      },
                      "response_time": {
                        "type": "number",
                        "description": "The check's total response time."
                      },
                      "name_lookup_time": {
                        "type": "number",
                        "description": "Time spent resolving the domain name, or `null` when it wasn't measured.",
                        "nullable": true
                      },
                      "connection_time": {
                        "type": "number",
                        "description": "Time spent opening the connection, or `null` when it wasn't measured.",
                        "nullable": true
                      },
                      "tls_handshake_time": {
                        "type": "number",
                        "description": "Time spent on the TLS handshake, or `null` when it wasn't measured.",
                        "nullable": true
                      },
                      "data_transfer_time": {
                        "type": "number",
                        "description": "Time spent transferring the response, or `null` when it wasn't measured.",
                        "nullable": true
                      }
                    }
                  },
                  "description": "The region's samples."
                }
              }
            },
            "description": "Response-time samples per check region.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.monitor_group.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Group name.",
            "nullable": false,
            "sensitive": false
          },
          "sort_index": {
            "type": "integer",
            "format": "int64",
            "description": "The position of the group in your list of monitor groups, lower values first. `null` when no position was set.",
            "nullable": true,
            "sensitive": false
          },
          "paused": {
            "type": "boolean",
            "description": "Whether every monitor in the group is paused, `false` when the group has none.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this monitor group, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this monitor group.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.on_call_event.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the on-call event.",
            "nullable": false,
            "sensitive": false
          },
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of the people on call for this event. Each must be a responder in the schedule's team.",
            "nullable": false,
            "sensitive": false
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event starts.",
            "nullable": false,
            "sensitive": false
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event ends.",
            "nullable": false,
            "sensitive": false
          },
          "override": {
            "type": "boolean",
            "description": "Whether this event is an override. An override stays when the rotation changes or the events are replaced in bulk.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.on_call_override.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of the people on call for this override. Each must be a responder or higher in the schedule's team.",
            "nullable": false,
            "sensitive": false
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the override starts, as an ISO 8601 time with a time zone. A new or changed start can't be before today at 00:00 UTC.",
            "nullable": false,
            "sensitive": false
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the override ends, as an ISO 8601 time with a time zone, after `starts_at`. A new or changed end can't be before today at 00:00 UTC.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.on_call_rotation.get": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.",
            "nullable": false,
            "sensitive": false
          },
          "rotation_length": {
            "type": "integer",
            "format": "int64",
            "description": "How long each shift lasts, in `rotation_interval` units. A whole number of at least `1`.",
            "nullable": false,
            "sensitive": false
          },
          "rotation_interval": {
            "type": "string",
            "enum": [
              "hour",
              "day",
              "week"
            ],
            "description": "Unit for `rotation_length`.",
            "nullable": false,
            "sensitive": false
          },
          "start_rotations_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the rotation schedule starts.",
            "nullable": false,
            "sensitive": false
          },
          "end_rotations_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the rotation schedule ends.",
            "nullable": false,
            "sensitive": false
          },
          "timezone": {
            "type": "string",
            "description": "Time zone for `working_hours` and for handovers across daylight saving changes. A new rotation with `working_hours` defaults to UTC.",
            "nullable": true,
            "sensitive": false
          },
          "effective_timezone": {
            "type": "string",
            "description": "The time zone `working_hours` are read in. Same as `timezone` when it's set, otherwise the schedule's default time zone, or `UTC` when neither is set.",
            "nullable": false,
            "sensitive": false
          },
          "working_hours": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sunday",
                    "monday",
                    "tuesday",
                    "wednesday",
                    "thursday",
                    "friday",
                    "saturday"
                  ],
                  "description": "The day of the week the window is on."
                },
                "start_time": {
                  "type": "string",
                  "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9](:00)?$",
                  "description": "When the window starts, as `HH:MM` in 24-hour time."
                },
                "end_time": {
                  "type": "string",
                  "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9](:00)?$",
                  "description": "When the window ends, as `HH:MM` in 24-hour time."
                }
              },
              "required": [
                "day",
                "start_time",
                "end_time"
              ]
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as `HH:MM`, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without `working_hours`, or with an empty list, the rotation pages around the clock. Order doesn't matter.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team of the rotation's on-call schedule, such as `t123`.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.on_call_schedule.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Schedule name. `null` only on a primary schedule without a name of its own.",
            "nullable": true,
            "sensitive": false
          },
          "default_schedule": {
            "type": "boolean",
            "description": "Whether this is your team's default on-call schedule.",
            "nullable": false,
            "sensitive": false
          },
          "slack_group_handle": {
            "type": "string",
            "description": "The handle of a Slack user group that always holds whoever is on call, without the @, or `null` when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and `slack_groups` then shows why.",
            "nullable": true,
            "sensitive": false
          },
          "use_existing_slack_group": {
            "type": "boolean",
            "description": "Whether `slack_group_handle` names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is `true`, and a handle no group uses is refused when it's `true`. Sent without `slack_group_handle`, the setting applies to the current handle.",
            "nullable": false,
            "sensitive": false
          },
          "slack_groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slack_workspace_id": {
                  "type": "string",
                  "description": "ID of the Slack workspace."
                },
                "slack_workspace_name": {
                  "type": "string",
                  "description": "Name of the Slack workspace."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "active",
                    "permission_denied",
                    "plan_required",
                    "name_conflict",
                    "failed",
                    "no_slack_users",
                    "reinstall_required"
                  ],
                  "description": "The group's state in the workspace. When the group doesn't follow who's on call, `error` says why.\n\n- `pending`: The group is being set up.\n- `active`: The group follows who's on call.\n- `permission_denied`: The Slack workspace lets only admins manage user groups.\n- `plan_required`: User groups need a paid Slack plan.\n- `name_conflict`: Another Slack user group already uses the handle.\n- `failed`: The group couldn't be synced with Slack.\n- `no_slack_users`: Nobody on call has connected Slack, so the group tags nobody from this schedule.\n- `reinstall_required`: The Slack integration was connected before user groups were supported. Reinstall the integration to set the group up.",
                  "x-enum-descriptions": {
                    "pending": "The group is being set up.",
                    "active": "The group follows who's on call.",
                    "permission_denied": "The Slack workspace lets only admins manage user groups.",
                    "plan_required": "User groups need a paid Slack plan.",
                    "name_conflict": "Another Slack user group already uses the handle.",
                    "failed": "The group couldn't be synced with Slack.",
                    "no_slack_users": "Nobody on call has connected Slack, so the group tags nobody from this schedule.",
                    "reinstall_required": "The Slack integration was connected before user groups were supported. Reinstall the integration to set the group up."
                  }
                },
                "error": {
                  "type": "string",
                  "description": "What's wrong and what to do about it. `null` when status is `active` or `pending`.",
                  "nullable": true
                },
                "unconnected_users": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "The user's ID as `u123`."
                      },
                      "first_name": {
                        "type": "string",
                        "description": "The user's first name, or `null` when it isn't set.",
                        "nullable": true
                      },
                      "last_name": {
                        "type": "string",
                        "description": "The user's last name, or `null` when it isn't set.",
                        "nullable": true
                      },
                      "email": {
                        "type": "string",
                        "description": "The user's e-mail address."
                      }
                    }
                  },
                  "description": "The on-call users the group doesn't include. Present only when you get a single schedule."
                }
              }
            },
            "description": "The state of the handle's user group in each connected Slack workspace.",
            "nullable": false,
            "sensitive": false
          },
          "on_call_users": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The person's ID as `u123`."
                },
                "first_name": {
                  "type": "string",
                  "description": "The person's first name, or `null` when it isn't set.",
                  "nullable": true
                },
                "last_name": {
                  "type": "string",
                  "description": "The person's last name, or `null` when it isn't set.",
                  "nullable": true
                },
                "email": {
                  "type": "string",
                  "description": "The person's e-mail address."
                },
                "phone_numbers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The person's phone numbers, such as `+420737123456`, sorted."
                }
              }
            },
            "description": "Users on call now, or at `from` when you send it. Each user's entry under `relationships` also has a `meta` object with `email`, `on_holiday` and `holiday_ends_at`.",
            "nullable": false,
            "sensitive": false
          },
          "shifts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When this part of the shift starts. Can be before `from`."
                },
                "ends_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When this part of the shift ends. Can be after `to`."
                },
                "override": {
                  "type": "boolean",
                  "description": "Whether an override puts these people on call instead of the rotation."
                },
                "override_id": {
                  "type": "string",
                  "description": "The ID of the override's on-call event, to use with [Delete an on-call event](/docs/uptime/api/delete-on-call-calendar-event/), or `null` for a shift from the rotation.",
                  "nullable": true
                },
                "users": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "The person's ID as `u123`."
                      },
                      "first_name": {
                        "type": "string",
                        "description": "The person's first name, or `null` when it isn't set.",
                        "nullable": true
                      },
                      "last_name": {
                        "type": "string",
                        "description": "The person's last name, or `null` when it isn't set.",
                        "nullable": true
                      },
                      "email": {
                        "type": "string",
                        "description": "The person's e-mail address."
                      },
                      "phone_numbers": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "The person's phone numbers, sorted."
                      },
                      "on_holiday": {
                        "type": "boolean",
                        "description": "Whether the person is on holiday during part of this shift. For a shift running now, only the rest of the shift counts. Escalations skip someone on holiday."
                      },
                      "holiday_ends_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When that holiday ends, or `null`.",
                        "nullable": true
                      }
                    }
                  },
                  "description": "The people on call."
                }
              }
            },
            "description": "Who is on call from `from` to `to`, oldest first. Each entry is one part of a shift and the people on call during it. Where an override covers part of a shift, the override's entry replaces that part. Without `from` and `to`, `shifts` holds only the shift running now. Returned when you get or list schedules.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns the schedule, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the schedule.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.severity.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The severity's name, unique within the team, ignoring case.",
            "nullable": false,
            "sensitive": false
          },
          "call": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by phone call. Each person can override this in their own notification settings.",
            "nullable": false,
            "sensitive": false
          },
          "sms": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by SMS. Each person can override this in their own notification settings.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by e-mail. Each person can override this in their own notification settings.",
            "nullable": false,
            "sensitive": false
          },
          "push": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by push notification. Each person can override this in their own notification settings.",
            "nullable": false,
            "sensitive": false
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity send a critical alert, a push notification that ignores the mute switch and Do Not Disturb mode.",
            "nullable": false,
            "sensitive": false
          },
          "severity_group_id": {
            "type": "string",
            "description": "The ID of the severity group this severity belongs to, or `null` when it's in none. Get the ID via [List severity groups](/docs/uptime/api/list-all-existing-severity-groups/).",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this severity, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this severity.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.severity_group.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Group name.",
            "nullable": false,
            "sensitive": false
          },
          "sort_index": {
            "type": "integer",
            "format": "int64",
            "description": "Display order of the group among your severity groups. Lower values come first.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team that owns this group, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns this group.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.status_page.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "organization_id": {
            "type": "string",
            "description": "The ID of the organization the page belongs to, such as `123`. Get the ID from `organization_id` in [List teams](/docs/uptime/api/teams/list/).",
            "nullable": false,
            "sensitive": false
          },
          "company_name": {
            "type": "string",
            "description": "Company name shown on the page.",
            "nullable": false,
            "sensitive": false
          },
          "company_url": {
            "type": "string",
            "description": "Company website URL.",
            "nullable": true,
            "sensitive": false
          },
          "subdomain": {
            "type": "string",
            "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores.",
            "nullable": false,
            "sensitive": false
          },
          "timezone": {
            "type": "string",
            "format": "time-zone",
            "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name.",
            "nullable": false,
            "sensitive": false
          },
          "custom_domain": {
            "type": "string",
            "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.",
            "nullable": true,
            "sensitive": false
          },
          "contact_url": {
            "type": "string",
            "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`.",
            "nullable": true,
            "sensitive": false
          },
          "logo_url": {
            "type": "string",
            "description": "The logo shown in light mode. Responses return the URL of the stored logo.",
            "nullable": true,
            "sensitive": false
          },
          "dark_logo_url": {
            "type": "string",
            "description": "The logo shown in dark mode. Responses return the URL of the stored logo.",
            "nullable": true,
            "sensitive": false
          },
          "logo_remote_url": {
            "type": "string",
            "description": "The URL the light mode logo was fetched from.",
            "nullable": true,
            "sensitive": false
          },
          "dark_logo_remote_url": {
            "type": "string",
            "description": "The URL the dark mode logo was fetched from.",
            "nullable": true,
            "sensitive": false
          },
          "favicon_url": {
            "type": "string",
            "description": "The icon browsers show in the page's tab, as the URL of the stored favicon. Only the `v2` design shows it.",
            "nullable": true,
            "sensitive": false
          },
          "favicon_remote_url": {
            "type": "string",
            "description": "The URL the favicon was fetched from.",
            "nullable": true,
            "sensitive": false
          },
          "custom_css": {
            "type": "string",
            "description": "Custom CSS added to the page.",
            "nullable": true,
            "sensitive": false
          },
          "custom_javascript": {
            "type": "string",
            "description": "Custom JavaScript added to the page.",
            "nullable": true,
            "sensitive": false
          },
          "google_analytics_id": {
            "type": "string",
            "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`.",
            "nullable": true,
            "sensitive": false
          },
          "min_incident_length": {
            "type": "integer",
            "format": "int64",
            "description": "Shortest incident the page shows, in seconds. `0` shows every incident.",
            "nullable": false,
            "sensitive": false
          },
          "subscribable": {
            "type": "boolean",
            "description": "Whether visitors can subscribe to updates.",
            "nullable": false,
            "sensitive": false
          },
          "hide_from_search_engines": {
            "type": "boolean",
            "description": "Whether to hide the page from search engines with a `noindex` tag.",
            "nullable": false,
            "sensitive": false
          },
          "password_enabled": {
            "type": "boolean",
            "description": "Whether visitors need a password to view the page. Off unless you turn it on or set `password`.",
            "nullable": false,
            "sensitive": false
          },
          "require_sso": {
            "type": "boolean",
            "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with `password_enabled`.",
            "nullable": false,
            "sensitive": false
          },
          "published": {
            "type": "boolean",
            "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows.",
            "nullable": false,
            "sensitive": false
          },
          "history": {
            "type": "integer",
            "format": "int64",
            "description": "Number of days of history the page shows, from 7 to 365.",
            "nullable": false,
            "sensitive": false
          },
          "treat_not_monitored_as_operational": {
            "type": "boolean",
            "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored.",
            "nullable": false,
            "sensitive": false
          },
          "design": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ],
            "description": "Page design.\n\n- `v1`: The classic design.\n- `v2`: The modern design.",
            "x-enum-descriptions": {
              "v1": "The classic design.",
              "v2": "The modern design."
            },
            "nullable": false,
            "sensitive": false
          },
          "theme": {
            "type": "string",
            "enum": [
              "light",
              "dark",
              "system"
            ],
            "description": "Color theme. Only the `v2` design uses it.",
            "nullable": false,
            "sensitive": false
          },
          "layout": {
            "type": "string",
            "enum": [
              "vertical",
              "horizontal"
            ],
            "description": "Header layout of the page. Only the `v2` design uses it.",
            "nullable": false,
            "sensitive": false
          },
          "automatic_reports": {
            "type": "boolean",
            "description": "Whether status page reports are created automatically for new incidents.",
            "nullable": false,
            "sensitive": false
          },
          "status_page_group_id": {
            "type": "string",
            "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](/docs/uptime/api/list-all-status-page-groups/).",
            "nullable": true,
            "sensitive": false
          },
          "whitelabeled": {
            "type": "boolean",
            "description": "Whether to remove Better Stack branding from the page.",
            "nullable": false,
            "sensitive": false
          },
          "announcement": {
            "type": "string",
            "description": "Announcement banner text.",
            "nullable": true,
            "sensitive": false
          },
          "announcement_embed_visible": {
            "type": "boolean",
            "description": "Whether the embeddable widget shows the announcement.",
            "nullable": false,
            "sensitive": false
          },
          "announcement_embed_link": {
            "type": "string",
            "description": "Link the announcement points to on the embeddable widget.",
            "nullable": true,
            "sensitive": false
          },
          "announcement_embed_css": {
            "type": "string",
            "description": "Your own CSS for the announcement on the embeddable widget.",
            "nullable": true,
            "sensitive": false
          },
          "navigation_links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The link's text, such as `Maintenance`."
                },
                "href": {
                  "type": "string",
                  "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages."
                }
              }
            },
            "description": "Up to four links in the page's navigation, each with `text` and `href`. Only the `v2` design shows them. An empty list removes them all.",
            "nullable": false,
            "sensitive": false
          },
          "ip_allowlist": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments.",
            "nullable": false,
            "sensitive": false
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The section's ID. Leave it out for a new section. Send the ID to keep the section, even when you move it."
                },
                "name": {
                  "type": "string",
                  "description": "Section name.",
                  "nullable": true
                },
                "resources": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "The resource's ID. Leave it out for a new resource. Send the ID to keep the resource and its subscribers, even when you move it to another section."
                      },
                      "resource_type": {
                        "type": "string",
                        "enum": [
                          "Monitor",
                          "MonitorGroup",
                          "Heartbeat",
                          "HeartbeatGroup",
                          "WebhookIntegration",
                          "EmailIntegration",
                          "IncomingWebhook",
                          "AmazonSnsIntegration",
                          "ManuallyTrackedItem",
                          "LogsChart",
                          "CatalogReference",
                          "ThirdPartyService"
                        ],
                        "description": "Type of the underlying resource. Required for a new resource.\n\n- `Monitor`: Shows a monitor.\n- `MonitorGroup`: Shows a monitor group.\n- `Heartbeat`: Shows a heartbeat.\n- `HeartbeatGroup`: Shows a heartbeat group.\n- `WebhookIntegration`: Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.\n- `EmailIntegration`: Shows an e-mail integration.\n- `IncomingWebhook`: Shows an incoming webhook.\n- `AmazonSnsIntegration`: Shows an Amazon SNS integration.\n- `ManuallyTrackedItem`: Shows a manually tracked item, which we create when you leave out `resource_id`.\n- `LogsChart`: Shows a dashboard chart, given in `chart_id`.\n- `CatalogReference`: Shows a catalog value, given in `catalog_reference`.\n- `ThirdPartyService`: Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its `id`, it keeps the services it shows.",
                        "x-enum-descriptions": {
                          "Monitor": "Shows a monitor.",
                          "MonitorGroup": "Shows a monitor group.",
                          "Heartbeat": "Shows a heartbeat.",
                          "HeartbeatGroup": "Shows a heartbeat group.",
                          "WebhookIntegration": "Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.",
                          "EmailIntegration": "Shows an e-mail integration.",
                          "IncomingWebhook": "Shows an incoming webhook.",
                          "AmazonSnsIntegration": "Shows an Amazon SNS integration.",
                          "ManuallyTrackedItem": "Shows a manually tracked item, which we create when you leave out `resource_id`.",
                          "LogsChart": "Shows a dashboard chart, given in `chart_id`.",
                          "CatalogReference": "Shows a catalog value, given in `catalog_reference`.",
                          "ThirdPartyService": "Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its `id`, it keeps the services it shows."
                        }
                      },
                      "resource_id": {
                        "type": "string",
                        "description": "ID of the underlying monitor, heartbeat, group or other record. Required for a new resource. A `ManuallyTrackedItem` doesn't need it, since we create the item for you. Neither does a resource whose `catalog_reference` names a catalog value or whose `chart_id` names a dashboard chart."
                      },
                      "catalog_reference": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "The catalog relation's name."
                          },
                          "value": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                              },
                              "value": {
                                "type": "string",
                                "description": "The plain value, when `type` is `String`."
                              },
                              "item_id": {
                                "type": "string",
                                "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`."
                              },
                              "name": {
                                "type": "string",
                                "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                              },
                              "email": {
                                "type": "string",
                                "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                              }
                            },
                            "allOf": [
                              {
                                "if": {
                                  "properties": {
                                    "type": {
                                      "const": "User"
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                },
                                "then": {
                                  "properties": {
                                    "item_id": {
                                      "type": "string",
                                      "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "properties": {
                                    "type": {
                                      "const": "Team"
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                },
                                "then": {
                                  "properties": {
                                    "item_id": {
                                      "type": "string",
                                      "pattern": "^t[1-9][0-9]*$"
                                    }
                                  }
                                }
                              }
                            ],
                            "description": "The catalog value to show, a plain string or a catalog item."
                          }
                        },
                        "description": "For a `CatalogReference` resource, the catalog value it shows, as on a status page resource. We find or create the catalog value, and it sets the resource's `resource_id`. A `resource_id` sent along with it is ignored. `null` for every other type.",
                        "nullable": true
                      },
                      "chart_id": {
                        "type": "string",
                        "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows, as on a status page resource. The chart must be on one of your organization's dashboards. The chart decides the resource's `resource_id`, so a `resource_id` sent with `chart_id` is ignored. `null` for every other type.",
                        "nullable": true
                      },
                      "public_name": {
                        "type": "string",
                        "description": "Name shown publicly. Required for a new resource."
                      },
                      "explanation": {
                        "type": "string",
                        "description": "Text shown to visitors in a tooltip next to the resource.",
                        "nullable": true
                      },
                      "widget_type": {
                        "type": "string",
                        "enum": [
                          "plain",
                          "history",
                          "intraday_history",
                          "response_times",
                          "intraday_response_times",
                          "chart_only"
                        ],
                        "description": "How the resource is shown on the page.\n\n- `plain`: Shows only the current status.\n- `history`: Shows the current status and a history of it.\n- `intraday_history`: Shows the current status and a detailed history of it.\n- `response_times`: Shows a history of the status and a response times chart, for a monitor or a logs chart.\n- `intraday_response_times`: Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.\n- `chart_only`: Shows only the chart, for a logs chart.",
                        "x-enum-descriptions": {
                          "plain": "Shows only the current status.",
                          "history": "Shows the current status and a history of it.",
                          "intraday_history": "Shows the current status and a detailed history of it.",
                          "response_times": "Shows a history of the status and a response times chart, for a monitor or a logs chart.",
                          "intraday_response_times": "Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.",
                          "chart_only": "Shows only the chart, for a logs chart."
                        }
                      },
                      "mark_as_down_for": {
                        "type": "string",
                        "enum": [
                          "no_incident",
                          "any_incident",
                          "incident_matching_metadata"
                        ],
                        "description": "When an incident marks this resource as down. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n\n- `no_incident`: No incident marks the resource down.\n- `any_incident`: Every open incident of the resource marks it down.\n- `incident_matching_metadata`: An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`.",
                        "x-enum-descriptions": {
                          "no_incident": "No incident marks the resource down.",
                          "any_incident": "Every open incident of the resource marks it down.",
                          "incident_matching_metadata": "An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`."
                        }
                      },
                      "mark_as_down_metadata_rule": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "The incident metadata key to match."
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                                },
                                "value": {
                                  "type": "string",
                                  "description": "The plain value, when `type` is `String`."
                                },
                                "item_id": {
                                  "type": "string",
                                  "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                                },
                                "email": {
                                  "type": "string",
                                  "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                                }
                              },
                              "allOf": [
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "User"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                      }
                                    }
                                  }
                                },
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "Team"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^t[1-9][0-9]*$"
                                      }
                                    }
                                  }
                                }
                              ]
                            },
                            "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                          }
                        },
                        "description": "Metadata rule used when `mark_as_down_for` is `incident_matching_metadata`, as on a status page resource. A user is `u123` or their e-mail, and a team is `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). The setting has no effect on a `ManuallyTrackedItem`, which has no incidents."
                      },
                      "mark_as_degraded_for": {
                        "type": "string",
                        "enum": [
                          "no_incident",
                          "any_incident",
                          "incident_matching_metadata"
                        ],
                        "description": "When an incident marks this resource as degraded. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n\n- `no_incident`: No incident marks the resource degraded.\n- `any_incident`: Every open incident of the resource marks it degraded.\n- `incident_matching_metadata`: An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`.",
                        "x-enum-descriptions": {
                          "no_incident": "No incident marks the resource degraded.",
                          "any_incident": "Every open incident of the resource marks it degraded.",
                          "incident_matching_metadata": "An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`."
                        }
                      },
                      "mark_as_degraded_metadata_rule": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "The incident metadata key to match."
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                                },
                                "value": {
                                  "type": "string",
                                  "description": "The plain value, when `type` is `String`."
                                },
                                "item_id": {
                                  "type": "string",
                                  "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                                },
                                "email": {
                                  "type": "string",
                                  "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                                }
                              },
                              "allOf": [
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "User"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                      }
                                    }
                                  }
                                },
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "Team"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^t[1-9][0-9]*$"
                                      }
                                    }
                                  }
                                }
                              ]
                            },
                            "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                          }
                        },
                        "description": "Metadata rule used when `mark_as_degraded_for` is `incident_matching_metadata`, in the shape of `mark_as_down_metadata_rule`. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents."
                      }
                    }
                  },
                  "description": "The section's resources, in display order. Leave it out to keep the section's resources as they are. A new section starts empty."
                }
              }
            },
            "description": "The page's sections and their resources, in display order. Only an update accepts it. Sending it replaces the whole structure, and sections and resources are matched by `id`. A section or resource without an `id` is created, and one you leave out is removed from the page. Removing a resource doesn't change the monitor or other resource it shows. An attribute you leave out of a resource keeps its value. Leave `sections` out to keep the structure as it is.",
            "nullable": false,
            "sensitive": false
          },
          "aggregate_state": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "downtime",
              "maintenance"
            ],
            "description": "The page's overall status.\n\n- `operational`: No resource on the page is down, degraded or in maintenance.\n- `degraded`: A resource is degraded and none is down.\n- `downtime`: A resource is down.\n- `maintenance`: A resource is in maintenance and none is down or degraded.",
            "x-enum-descriptions": {
              "operational": "No resource on the page is down, degraded or in maintenance.",
              "degraded": "A resource is degraded and none is down.",
              "downtime": "A resource is down.",
              "maintenance": "A resource is in maintenance and none is down or degraded."
            },
            "nullable": false,
            "sensitive": false
          },
          "public_url": {
            "type": "string",
            "description": "The address visitors open the page at. The `custom_domain` when the page has one, otherwise the betterstack.com `subdomain`.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the status page was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the status page was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "password": {
            "type": "string",
            "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on `password_enabled`, unless `password_enabled` is set too. An empty password removes the password and turns protection off.",
            "nullable": true,
            "sensitive": true,
            "writeonly": true
          }
        }
      },
      "CLIResponse.incidents.status_page_group.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Group name.",
            "nullable": false,
            "sensitive": false
          },
          "sort_index": {
            "type": "integer",
            "format": "int64",
            "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as `position`.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the status page group was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the status page group was last updated.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.status_page_group.status_pages": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "organization_id": {
            "type": "integer",
            "format": "int64",
            "description": "The ID of the organization the page belongs to, such as `123`. Get the ID from `organization_id` in [List teams](/docs/uptime/api/teams/list/).",
            "nullable": false,
            "sensitive": false
          },
          "company_name": {
            "type": "string",
            "description": "Company name shown on the page.",
            "nullable": false,
            "sensitive": false
          },
          "company_url": {
            "type": "string",
            "description": "Company website URL.",
            "nullable": true,
            "sensitive": false
          },
          "subdomain": {
            "type": "string",
            "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores.",
            "nullable": false,
            "sensitive": false
          },
          "timezone": {
            "type": "string",
            "format": "time-zone",
            "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name.",
            "nullable": false,
            "sensitive": false
          },
          "custom_domain": {
            "type": "string",
            "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.",
            "nullable": true,
            "sensitive": false
          },
          "contact_url": {
            "type": "string",
            "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`.",
            "nullable": true,
            "sensitive": false
          },
          "logo_url": {
            "type": "string",
            "description": "The logo shown in light mode. Responses return the URL of the stored logo.",
            "nullable": true,
            "sensitive": false
          },
          "dark_logo_url": {
            "type": "string",
            "description": "The logo shown in dark mode. Responses return the URL of the stored logo.",
            "nullable": true,
            "sensitive": false
          },
          "logo_remote_url": {
            "type": "string",
            "description": "The URL the light mode logo was fetched from.",
            "nullable": true,
            "sensitive": false
          },
          "dark_logo_remote_url": {
            "type": "string",
            "description": "The URL the dark mode logo was fetched from.",
            "nullable": true,
            "sensitive": false
          },
          "custom_css": {
            "type": "string",
            "description": "Custom CSS added to the page.",
            "nullable": true,
            "sensitive": false
          },
          "custom_javascript": {
            "type": "string",
            "description": "Custom JavaScript added to the page.",
            "nullable": true,
            "sensitive": false
          },
          "google_analytics_id": {
            "type": "string",
            "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`.",
            "nullable": true,
            "sensitive": false
          },
          "min_incident_length": {
            "type": "integer",
            "format": "int64",
            "description": "Shortest incident the page shows, in seconds. `0` shows every incident.",
            "nullable": false,
            "sensitive": false
          },
          "subscribable": {
            "type": "boolean",
            "description": "Whether visitors can subscribe to updates.",
            "nullable": false,
            "sensitive": false
          },
          "hide_from_search_engines": {
            "type": "boolean",
            "description": "Whether to hide the page from search engines with a `noindex` tag.",
            "nullable": false,
            "sensitive": false
          },
          "password_enabled": {
            "type": "boolean",
            "description": "Whether visitors need a password to view the page. Off unless you turn it on or set `password`.",
            "nullable": false,
            "sensitive": false
          },
          "require_sso": {
            "type": "boolean",
            "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with `password_enabled`.",
            "nullable": false,
            "sensitive": false
          },
          "published": {
            "type": "boolean",
            "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows.",
            "nullable": false,
            "sensitive": false
          },
          "history": {
            "type": "integer",
            "format": "int64",
            "description": "Number of days of history the page shows, from 7 to 365.",
            "nullable": false,
            "sensitive": false
          },
          "design": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ],
            "description": "Page design.\n\n- `v1`: The classic design.\n- `v2`: The modern design.",
            "x-enum-descriptions": {
              "v1": "The classic design.",
              "v2": "The modern design."
            },
            "nullable": false,
            "sensitive": false
          },
          "theme": {
            "type": "string",
            "enum": [
              "light",
              "dark",
              "system"
            ],
            "description": "Color theme. Only the `v2` design uses it.",
            "nullable": false,
            "sensitive": false
          },
          "layout": {
            "type": "string",
            "enum": [
              "vertical",
              "horizontal"
            ],
            "description": "Header layout of the page. Only the `v2` design uses it.",
            "nullable": false,
            "sensitive": false
          },
          "automatic_reports": {
            "type": "boolean",
            "description": "Whether status page reports are created automatically for new incidents.",
            "nullable": false,
            "sensitive": false
          },
          "status_page_group_id": {
            "type": "integer",
            "format": "int64",
            "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](/docs/uptime/api/list-all-status-page-groups/).",
            "nullable": true,
            "sensitive": false
          },
          "whitelabeled": {
            "type": "boolean",
            "description": "Whether to remove Better Stack branding from the page.",
            "nullable": false,
            "sensitive": false
          },
          "announcement": {
            "type": "string",
            "description": "Announcement banner text.",
            "nullable": true,
            "sensitive": false
          },
          "announcement_embed_visible": {
            "type": "boolean",
            "description": "Whether the embeddable widget shows the announcement.",
            "nullable": false,
            "sensitive": false
          },
          "announcement_embed_link": {
            "type": "string",
            "description": "Link the announcement points to on the embeddable widget.",
            "nullable": true,
            "sensitive": false
          },
          "announcement_embed_css": {
            "type": "string",
            "description": "Your own CSS for the announcement on the embeddable widget.",
            "nullable": true,
            "sensitive": false
          },
          "navigation_links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The link's text, such as `Maintenance`."
                },
                "href": {
                  "type": "string",
                  "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages."
                }
              }
            },
            "description": "Up to four links in the page's navigation, each with `text` and `href`. Only the `v2` design shows them. An empty list removes them all.",
            "nullable": false,
            "sensitive": false
          },
          "ip_allowlist": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments.",
            "nullable": false,
            "sensitive": false
          },
          "aggregate_state": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "downtime",
              "maintenance"
            ],
            "description": "The page's overall status.\n\n- `operational`: No resource on the page is down, degraded or in maintenance.\n- `degraded`: A resource is degraded and none is down.\n- `downtime`: A resource is down.\n- `maintenance`: A resource is in maintenance and none is down or degraded.",
            "x-enum-descriptions": {
              "operational": "No resource on the page is down, degraded or in maintenance.",
              "degraded": "A resource is degraded and none is down.",
              "downtime": "A resource is down.",
              "maintenance": "A resource is in maintenance and none is down or degraded."
            },
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the status page was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the status page was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "password": {
            "type": "string",
            "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on `password_enabled`, unless `password_enabled` is set too. An empty password removes the password and turns protection off.",
            "nullable": true,
            "sensitive": true,
            "writeonly": true
          }
        }
      },
      "CLIResponse.incidents.status_page_resource.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "status_page_section_id": {
            "type": "string",
            "description": "The ID of the section that holds this resource.",
            "nullable": false,
            "sensitive": false
          },
          "resource_id": {
            "type": "string",
            "description": "ID of the monitor, heartbeat or group to show.",
            "nullable": false,
            "sensitive": false
          },
          "resource_type": {
            "type": "string",
            "enum": [
              "Monitor",
              "MonitorGroup",
              "Heartbeat",
              "HeartbeatGroup",
              "WebhookIntegration",
              "EmailIntegration",
              "IncomingWebhook",
              "AmazonSnsIntegration",
              "ManuallyTrackedItem",
              "LogsChart",
              "CatalogReference",
              "ThirdPartyService"
            ],
            "description": "Type of the resource to show. Responses return a group as a monitor group or a heartbeat group, depending on what it groups.\n\n- `Monitor`: Shows a monitor.\n- `MonitorGroup`: Shows a monitor group.\n- `Heartbeat`: Shows a heartbeat.\n- `HeartbeatGroup`: Shows a heartbeat group.\n- `WebhookIntegration`: Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.\n- `EmailIntegration`: Shows an e-mail integration.\n- `IncomingWebhook`: Shows an incoming webhook.\n- `AmazonSnsIntegration`: Shows an Amazon SNS integration.\n- `ManuallyTrackedItem`: Shows a manually tracked item. A new one is created when you leave out `resource_id`.\n- `LogsChart`: Shows a dashboard chart, given in `chart_id`.\n- `CatalogReference`: Shows a catalog value, given in `catalog_reference`.\n- `ThirdPartyService`: Shows the status of a third-party service. Can only be added in the status page editor.",
            "x-enum-descriptions": {
              "Monitor": "Shows a monitor.",
              "MonitorGroup": "Shows a monitor group.",
              "Heartbeat": "Shows a heartbeat.",
              "HeartbeatGroup": "Shows a heartbeat group.",
              "WebhookIntegration": "Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.",
              "EmailIntegration": "Shows an e-mail integration.",
              "IncomingWebhook": "Shows an incoming webhook.",
              "AmazonSnsIntegration": "Shows an Amazon SNS integration.",
              "ManuallyTrackedItem": "Shows a manually tracked item. A new one is created when you leave out `resource_id`.",
              "LogsChart": "Shows a dashboard chart, given in `chart_id`.",
              "CatalogReference": "Shows a catalog value, given in `catalog_reference`.",
              "ThirdPartyService": "Shows the status of a third-party service. Can only be added in the status page editor."
            },
            "nullable": false,
            "sensitive": false
          },
          "catalog_reference": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "The catalog relation's name."
              },
              "value": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The plain value, when `type` is `String`."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                  },
                  "name": {
                    "type": "string",
                    "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                  },
                  "email": {
                    "type": "string",
                    "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ],
                "description": "The catalog value to show, a plain string or a catalog item."
              }
            },
            "description": "For a `CatalogReference` resource, the catalog value it shows. Send it in place of `resource_id`, and the value is found, or created if it doesn't exist yet. A user's `item_id` is `u123` or their e-mail, and a team's is `t123`. Responses return them in the same form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). `null` for every other type.",
            "nullable": true,
            "sensitive": false
          },
          "chart_id": {
            "type": "string",
            "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows. Send it in place of `resource_id`. Responses then return a `resource_id` of the resource's own, not the chart's ID. The chart must be on one of your organization's dashboards. The chart can't be a table, live tail, text or funnel chart. `null` for every other type.",
            "nullable": true,
            "sensitive": false
          },
          "public_name": {
            "type": "string",
            "description": "The name shown publicly on the status page.",
            "nullable": false,
            "sensitive": false
          },
          "explanation": {
            "type": "string",
            "description": "Tooltip explanation shown to visitors.",
            "nullable": true,
            "sensitive": false
          },
          "history": {
            "type": "boolean",
            "description": "Whether `widget_type` is `history`.",
            "nullable": false,
            "sensitive": false
          },
          "widget_type": {
            "type": "string",
            "enum": [
              "plain",
              "history",
              "intraday_history",
              "response_times",
              "intraday_response_times",
              "chart_only"
            ],
            "description": "How the resource is shown. Defaults to showing the history of its status, or a response times chart for a logs chart.\n\n- `plain`: Shows only the current status.\n- `history`: Shows the current status and a history of it.\n- `intraday_history`: Shows the current status and a detailed history of it.\n- `response_times`: Shows a history of the status and a response times chart, for a monitor or a logs chart.\n- `intraday_response_times`: Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.\n- `chart_only`: Shows only the chart, for a logs chart.",
            "x-enum-descriptions": {
              "plain": "Shows only the current status.",
              "history": "Shows the current status and a history of it.",
              "intraday_history": "Shows the current status and a detailed history of it.",
              "response_times": "Shows a history of the status and a response times chart, for a monitor or a logs chart.",
              "intraday_response_times": "Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.",
              "chart_only": "Shows only the chart, for a logs chart."
            },
            "nullable": false,
            "sensitive": false
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Where the resource sits in its section, counted from zero.",
            "nullable": false,
            "sensitive": false
          },
          "mark_as_down_for": {
            "type": "string",
            "enum": [
              "no_incident",
              "any_incident",
              "incident_matching_metadata"
            ],
            "description": "Which incidents mark this resource down. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.\n\n- `no_incident`: No incident marks the resource down.\n- `any_incident`: Every open incident of the resource marks it down.\n- `incident_matching_metadata`: An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`.",
            "x-enum-descriptions": {
              "no_incident": "No incident marks the resource down.",
              "any_incident": "Every open incident of the resource marks it down.",
              "incident_matching_metadata": "An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`."
            },
            "nullable": false,
            "sensitive": false
          },
          "mark_as_down_metadata_rule": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "The incident metadata key to match."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The plain value, when `type` is `String`."
                    },
                    "item_id": {
                      "type": "string",
                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                    },
                    "email": {
                      "type": "string",
                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "User"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "Team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
              }
            },
            "description": "The incident metadata rule used when `mark_as_down_for` is `incident_matching_metadata`. Send a user's `item_id` as `u123` or their e-mail. Responses return it as `u123`, or as `null` once the user has left the organization. A team's `item_id` is `t123`, and other items' IDs are numbers. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Returned only when `mark_as_down_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "nullable": false,
            "sensitive": false
          },
          "mark_as_degraded_for": {
            "type": "string",
            "enum": [
              "no_incident",
              "any_incident",
              "incident_matching_metadata"
            ],
            "description": "Which incidents mark this resource degraded. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.\n\n- `no_incident`: No incident marks the resource degraded.\n- `any_incident`: Every open incident of the resource marks it degraded.\n- `incident_matching_metadata`: An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`.",
            "x-enum-descriptions": {
              "no_incident": "No incident marks the resource degraded.",
              "any_incident": "Every open incident of the resource marks it degraded.",
              "incident_matching_metadata": "An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`."
            },
            "nullable": false,
            "sensitive": false
          },
          "mark_as_degraded_metadata_rule": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "The incident metadata key to match."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The plain value, when `type` is `String`."
                    },
                    "item_id": {
                      "type": "string",
                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                    },
                    "email": {
                      "type": "string",
                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "User"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "Team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
              }
            },
            "description": "The incident metadata rule used when `mark_as_degraded_for` is `incident_matching_metadata`, in the same shape as `mark_as_down_metadata_rule`. Returned only when `mark_as_degraded_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "nullable": false,
            "sensitive": false
          },
          "availability": {
            "type": "number",
            "description": "Availability over the page's history window, from 0.0 to 1.0.",
            "nullable": false,
            "sensitive": false
          },
          "status": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "downtime",
              "maintenance",
              "not_monitored"
            ],
            "description": "The resource's current status.\n\n- `operational`: Nothing marks the resource down, degraded or in maintenance.\n- `degraded`: An open incident or status report marks the resource degraded.\n- `downtime`: An open incident or status report marks the resource down.\n- `maintenance`: A maintenance in progress covers the resource.\n- `not_monitored`: The resource has no monitor, heartbeat or group behind it, or it's paused, and no open status report covers it.",
            "x-enum-descriptions": {
              "operational": "Nothing marks the resource down, degraded or in maintenance.",
              "degraded": "An open incident or status report marks the resource degraded.",
              "downtime": "An open incident or status report marks the resource down.",
              "maintenance": "A maintenance in progress covers the resource.",
              "not_monitored": "The resource has no monitor, heartbeat or group behind it, or it's paused, and no open status report covers it."
            },
            "nullable": false,
            "sensitive": false
          },
          "ongoing_incident_ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "IDs of the ongoing incidents of the monitor, heartbeat or group the resource shows, including incidents that don't change its `status`. An incident is listed once it has lasted the status page's `min_incident_length`. Get one with [Get an incident](/docs/uptime/api/list-a-single-incident/).",
            "nullable": false,
            "sensitive": false
          },
          "status_history": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "description": "The first day the bar covers, as `YYYY-MM-DD`."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "operational",
                    "degraded",
                    "downtime",
                    "maintenance",
                    "recovered",
                    "recovered_degraded",
                    "not_monitored"
                  ],
                  "description": "The bar's status.\n\n- `operational`: Nothing marked the resource down, degraded or in maintenance during the bar.\n- `degraded`: The resource was degraded during the bar.\n- `downtime`: The resource was down during the bar.\n- `maintenance`: The resource was in maintenance and never down during the bar.\n- `recovered`: The resource was down today and is back up. Only today's bar has it.\n- `recovered_degraded`: The resource was degraded today and is back up. Only today's bar has it.\n- `not_monitored`: The resource wasn't monitored yet during the bar.",
                  "x-enum-descriptions": {
                    "operational": "Nothing marked the resource down, degraded or in maintenance during the bar.",
                    "degraded": "The resource was degraded during the bar.",
                    "downtime": "The resource was down during the bar.",
                    "maintenance": "The resource was in maintenance and never down during the bar.",
                    "recovered": "The resource was down today and is back up. Only today's bar has it.",
                    "recovered_degraded": "The resource was degraded today and is back up. Only today's bar has it.",
                    "not_monitored": "The resource wasn't monitored yet during the bar."
                  }
                },
                "downtime_duration": {
                  "type": "integer",
                  "format": "int64",
                  "description": "Seconds the resource was down or degraded during the bar."
                },
                "maintenance_duration": {
                  "type": "integer",
                  "format": "int64",
                  "description": "Seconds the resource was in maintenance during the bar."
                }
              }
            },
            "description": "The status over the page's history window, oldest first, with one entry per bar on the status page. When the page shows more days than it has bars, each bar covers several days.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.status_page_section.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Section name.",
            "nullable": true,
            "sensitive": false
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Display order on the page, counting from 0. A position past the end lands last. Moving a section shifts only the sections between its old and new place.",
            "nullable": false,
            "sensitive": false
          },
          "status_page_id": {
            "type": "integer",
            "format": "int64",
            "description": "The ID of the status page the section is on.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.status_page_subscriber.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "status_page_id": {
            "type": "integer",
            "format": "int64",
            "description": "Status page to subscribe to.",
            "nullable": false,
            "sensitive": false
          },
          "email": {
            "type": "string",
            "description": "Subscriber e-mail address.",
            "nullable": false,
            "sensitive": false
          },
          "status_page_resource_ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Status page resources to follow. An empty list follows the whole page. Every ID must be a resource of this page other than a third-party service. Get the IDs via [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/).",
            "nullable": false,
            "sensitive": false
          },
          "confirmed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the subscription was confirmed, or `null` while it waits for the subscriber to confirm it. A subscriber created through the API is confirmed at once.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the subscriber was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the subscriber was last updated.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.status_report.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "status_page_id": {
            "type": "integer",
            "format": "int64",
            "description": "Status page this report belongs to.",
            "nullable": false,
            "sensitive": false
          },
          "title": {
            "type": "string",
            "description": "Report title.",
            "nullable": false,
            "sensitive": false
          },
          "report_type": {
            "type": "string",
            "enum": [
              "manual",
              "maintenance",
              "automatic"
            ],
            "description": "Type of report. Can't be changed after create.\n\n- `manual`: A report you write and update yourself.\n- `maintenance`: A report of planned maintenance between `starts_at` and `ends_at`.\n- `automatic`: A report opened automatically when a resource went down. You can't create one with the API.",
            "x-enum-descriptions": {
              "manual": "A report you write and update yourself.",
              "maintenance": "A report of planned maintenance between `starts_at` and `ends_at`.",
              "automatic": "A report opened automatically when a resource went down. You can't create one with the API."
            },
            "nullable": false,
            "sensitive": false
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the report starts. For a maintenance report, when the maintenance window starts. For any other report, the `published_at` of its first status update.",
            "nullable": false,
            "sensitive": false
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the report ends, or `null` when it has no end time. A maintenance report always has one, no earlier than `starts_at`. A manual report has no end time, so this has no effect on one.",
            "nullable": true,
            "sensitive": false
          },
          "affected_resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status_page_resource_id": {
                  "type": "string",
                  "description": "The ID of the status page resource, from [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/)."
                },
                "status": {
                  "type": "string",
                  "description": "The resource's status, `resolved`, `degraded`, `downtime` or `maintenance`."
                }
              }
            },
            "description": "Affected resources and their current states. The status is `resolved`, `degraded` or `downtime` on a manual report, or `maintenance` on a maintenance report. A new manual report has at least one.",
            "nullable": false,
            "sensitive": false
          },
          "aggregate_state": {
            "type": "string",
            "enum": [
              "resolved",
              "degraded",
              "downtime",
              "maintenance"
            ],
            "description": "Overall state of the report.\n\n- `resolved`: Every resource the report covers is back to normal.\n- `degraded`: A resource the report covers is degraded and none is down.\n- `downtime`: A resource the report covers is down.\n- `maintenance`: The resources the report covers are under maintenance.",
            "x-enum-descriptions": {
              "resolved": "Every resource the report covers is back to normal.",
              "degraded": "A resource the report covers is degraded and none is down.",
              "downtime": "A resource the report covers is down.",
              "maintenance": "The resources the report covers are under maintenance."
            },
            "nullable": false,
            "sensitive": false
          },
          "status_updates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The status update's ID."
                }
              }
            },
            "description": "Status updates posted to this report. Get, create and update also return each update in full under `included`, as [Get a status update](/docs/uptime/api/get-a-single-status-update/) returns it, while listing reports returns only their ids. On a maintenance report, each update's `affected_resources` is empty.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.status_update.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "status_report_id": {
            "type": "integer",
            "format": "int64",
            "description": "Report this status update belongs to, as given in the path.",
            "nullable": false,
            "sensitive": false
          },
          "message": {
            "type": "string",
            "description": "The update's text, shown to visitors.",
            "nullable": false,
            "sensitive": false
          },
          "affected_resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status_page_resource_id": {
                  "type": "string",
                  "description": "The ID of the status page resource, from [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/)."
                },
                "status": {
                  "type": "string",
                  "description": "The resource's status, `resolved`, `degraded` or `downtime`."
                }
              }
            },
            "description": "Affected resources and their states. Resources you don't list keep their status from earlier updates. Every status update lists at least one resource, except on a maintenance report, where the resources are set on the report and its status updates list none. A list you send on update replaces the current list. Leave it out to keep the current list.",
            "nullable": false,
            "sensitive": false
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the update is published. On create, it defaults to now.",
            "nullable": false,
            "sensitive": false
          },
          "published_at_timezone": {
            "type": "string",
            "description": "The time zone `published_at` was entered in on the dashboard. `null` for an update posted through the API.",
            "nullable": true,
            "sensitive": false
          },
          "notify_subscribers": {
            "type": "boolean",
            "description": "Whether to notify subscribers of this update. Subscribers are notified at `published_at`, which can be in the future.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.team_maintenance.get": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "maintenance": {
            "type": "boolean",
            "description": "Whether the team is in maintenance now.",
            "nullable": false,
            "sensitive": false
          },
          "maintenance_to": {
            "type": "string",
            "format": "date-time",
            "description": "When the current maintenance ends. `null` when the team isn't in maintenance.",
            "nullable": true,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "The team's ID, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.third_party_service.get": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The vendor's name.",
            "nullable": false,
            "sensitive": false
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other names the vendor goes by. The list's `name` filter and the `id` of a single vendor match them too.",
            "nullable": false,
            "sensitive": false
          },
          "category": {
            "type": "string",
            "description": "The kind of service, as the status page editor groups vendors.",
            "nullable": false,
            "sensitive": false
          },
          "status": {
            "type": "string",
            "description": "The vendor's headline status, as its own status page states it, such as `operational`, `degraded` or `downtime`. A vendor can read `operational` with a few services down, which `services_not_operational` shows.",
            "nullable": false,
            "sensitive": false
          },
          "services_not_operational": {
            "type": "integer",
            "format": "int64",
            "description": "How many of the services or locations the vendor lists aren't operational now.",
            "nullable": false,
            "sensitive": false
          },
          "status_page_url": {
            "type": "string",
            "description": "The vendor's own status page.",
            "nullable": false,
            "sensitive": false
          },
          "status_unknown": {
            "type": "boolean",
            "description": "`true` when Better Stack couldn't read the vendor's status page lately, or hasn't yet.",
            "nullable": false,
            "sensitive": false
          },
          "status_read_at": {
            "type": "string",
            "format": "date-time",
            "description": "When Better Stack last read the vendor's status page. `null` before the first read.",
            "nullable": true,
            "sensitive": false
          },
          "status_page_rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status_page_id": {
                  "type": "string",
                  "description": "The ID of the status page that shows the row."
                },
                "status_page_name": {
                  "type": "string",
                  "description": "The status page's company name."
                },
                "name": {
                  "type": "string",
                  "description": "The row's name, such as `AWS: us-east-1`."
                },
                "status": {
                  "type": "string",
                  "description": "The status the row shows, such as `operational`, `degraded` or `downtime`."
                }
              }
            },
            "description": "The rows the organization's own status pages show for this vendor, each with the status the page shows for it.",
            "nullable": false,
            "sensitive": false
          },
          "from": {
            "type": "string",
            "format": "date-time",
            "description": "Start of the window the changes overlap.",
            "nullable": false,
            "sensitive": false
          },
          "to": {
            "type": "string",
            "format": "date-time",
            "description": "End of the window the changes overlap.",
            "nullable": false,
            "sensitive": false
          },
          "region": {
            "type": "string",
            "description": "The region the changes were narrowed to, or `null` when they weren't.",
            "nullable": true,
            "sensitive": false
          },
          "service": {
            "type": "string",
            "description": "The service the changes were narrowed to, or `null` when they weren't.",
            "nullable": true,
            "sensitive": false
          },
          "services_total": {
            "type": "integer",
            "format": "int64",
            "description": "How many services or locations the vendor lists.",
            "nullable": false,
            "sensitive": false
          },
          "services_matched": {
            "type": "integer",
            "format": "int64",
            "description": "How many of them `region` and `service` matched.",
            "nullable": false,
            "sensitive": false
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The region's or group's name, such as `us-east-1`."
                },
                "status": {
                  "type": "string",
                  "description": "The region's or group's status, such as `operational` or `degraded`."
                },
                "services": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How many services the region or group lists."
                },
                "services_not_operational": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How many of its services aren't operational now."
                }
              }
            },
            "description": "The vendor's regions or groups, to narrow to one with `region`.",
            "nullable": false,
            "sensitive": false
          },
          "changes_total": {
            "type": "integer",
            "format": "int64",
            "description": "How many status changes overlap the window.",
            "nullable": false,
            "sensitive": false
          },
          "changes_truncated": {
            "type": "boolean",
            "description": "`true` when only the newest 50 changes are listed. Narrow the window, `region` or `service` to see the rest.",
            "nullable": false,
            "sensitive": false
          },
          "changes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "string",
                  "description": "The service that changed status, such as `EC2 (us-east-1)`."
                },
                "status": {
                  "type": "string",
                  "description": "The status the service changed to, such as `degraded`."
                },
                "started_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the change started."
                },
                "ended_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the change ended. `null` while it's ongoing.",
                  "nullable": true
                }
              }
            },
            "description": "The status changes of the matched services that overlap the window, newest first.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.incidents.third_party_service.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The vendor's name.",
            "nullable": false,
            "sensitive": false
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other names the vendor goes by. The list's `name` filter and the `id` of a single vendor match them too.",
            "nullable": false,
            "sensitive": false
          },
          "category": {
            "type": "string",
            "description": "The kind of service, as the status page editor groups vendors.",
            "nullable": false,
            "sensitive": false
          },
          "status": {
            "type": "string",
            "description": "The vendor's headline status, as its own status page states it, such as `operational`, `degraded` or `downtime`. A vendor can read `operational` with a few services down, which `services_not_operational` shows.",
            "nullable": false,
            "sensitive": false
          },
          "services_not_operational": {
            "type": "integer",
            "format": "int64",
            "description": "How many of the services or locations the vendor lists aren't operational now.",
            "nullable": false,
            "sensitive": false
          },
          "status_page_url": {
            "type": "string",
            "description": "The vendor's own status page.",
            "nullable": false,
            "sensitive": false
          },
          "status_unknown": {
            "type": "boolean",
            "description": "`true` when Better Stack couldn't read the vendor's status page lately, or hasn't yet.",
            "nullable": false,
            "sensitive": false
          },
          "status_read_at": {
            "type": "string",
            "format": "date-time",
            "description": "When Better Stack last read the vendor's status page. `null` before the first read.",
            "nullable": true,
            "sensitive": false
          },
          "status_page_rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status_page_id": {
                  "type": "string",
                  "description": "The ID of the status page that shows the row."
                },
                "status_page_name": {
                  "type": "string",
                  "description": "The status page's company name."
                },
                "name": {
                  "type": "string",
                  "description": "The row's name, such as `AWS: us-east-1`."
                },
                "status": {
                  "type": "string",
                  "description": "The status the row shows, such as `operational`, `degraded` or `downtime`."
                }
              }
            },
            "description": "The rows the organization's own status pages show for this vendor, each with the status the page shows for it.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CatalogAttribute": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The catalog_attribute's id."
          },
          "type": {
            "type": "string",
            "const": "catalog_attribute"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Attribute name.",
                "examples": [
                  "Team"
                ]
              },
              "primary": {
                "type": "boolean",
                "description": "Whether this attribute is used to match records to incidents. Each primary attribute matches the incident metadata key of the same name. When a record matches, its other attributes are added to the incident as metadata.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "position": {
                "type": "integer",
                "format": "int64",
                "description": "Display order of the attribute among the relation's attributes.",
                "default": 0,
                "examples": [
                  0
                ]
              }
            }
          }
        }
      },
      "CatalogAttributeCreate": {
        "$ref": "#/components/schemas/CatalogAttributeCreateAttributes"
      },
      "CatalogAttributeCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Attribute name.",
            "examples": [
              "Team"
            ]
          },
          "primary": {
            "type": "boolean",
            "description": "Whether this attribute is used to match records to incidents. Each primary attribute matches the incident metadata key of the same name. When a record matches, its other attributes are added to the incident as metadata.",
            "default": false,
            "examples": [
              true
            ]
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Display order of the attribute among the relation's attributes. Defaults to `0` on create.",
            "default": 0,
            "examples": [
              0
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "CatalogAttributeDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CatalogAttribute"
          }
        }
      },
      "CatalogAttributeList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CatalogAttribute"
            }
          }
        }
      },
      "CatalogAttributeUpdate": {
        "$ref": "#/components/schemas/CatalogAttributeUpdateAttributes"
      },
      "CatalogAttributeUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Attribute name.",
            "examples": [
              "Team"
            ]
          },
          "primary": {
            "type": "boolean",
            "description": "Whether this attribute is used to match records to incidents. Each primary attribute matches the incident metadata key of the same name. When a record matches, its other attributes are added to the incident as metadata.",
            "default": false,
            "examples": [
              true
            ]
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Display order of the attribute among the relation's attributes. Defaults to `0` on create.",
            "default": 0,
            "examples": [
              0
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "CatalogRecord": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The catalog_record's id."
          },
          "type": {
            "type": "string",
            "const": "catalog_record"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "attributes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "attribute": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "The catalog attribute's ID."
                        },
                        "name": {
                          "type": "string",
                          "description": "The catalog attribute's name."
                        }
                      },
                      "description": "The catalog attribute to set, by ID or name. Responses include both."
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`String`, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source. Required, unless you send a text value as `{value}` on its own."
                          },
                          "value": {
                            "type": "string",
                            "description": "The text of a String value. Required when `type` is `String`."
                          },
                          "item_id": {
                            "type": "string",
                            "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A reference needs one of `item_id`, `name` or `email`."
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`. A monitor, a Slack integration and a Zapier Zap can't be looked up by name."
                          },
                          "email": {
                            "type": "string",
                            "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                          }
                        },
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "User"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "properties": {
                                "item_id": {
                                  "type": "string",
                                  "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                }
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "Team"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "properties": {
                                "item_id": {
                                  "type": "string",
                                  "pattern": "^t[1-9][0-9]*$"
                                }
                              }
                            }
                          }
                        ]
                      },
                      "description": "Values to set for this attribute."
                    }
                  },
                  "required": [
                    "attribute",
                    "values"
                  ]
                },
                "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.",
                "examples": [
                  [
                    {
                      "attribute": {
                        "id": "56",
                        "name": "Team"
                      },
                      "values": [
                        {
                          "type": "String",
                          "value": "My Team"
                        }
                      ]
                    },
                    {
                      "attribute": {
                        "id": "57",
                        "name": "Team Lead"
                      },
                      "values": [
                        {
                          "type": "Team",
                          "item_id": "t123",
                          "name": "SRE"
                        }
                      ]
                    }
                  ]
                ]
              }
            }
          }
        }
      },
      "CatalogRecordCreate": {
        "$ref": "#/components/schemas/CatalogRecordCreateAttributes"
      },
      "CatalogRecordCreateAttributes": {
        "type": "object",
        "properties": {
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attribute": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The catalog attribute's ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog attribute's name."
                    }
                  },
                  "description": "The catalog attribute to set, by ID or name. Responses include both."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source. Required, unless you send a text value as `{value}` on its own."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a String value. Required when `type` is `String`."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A reference needs one of `item_id`, `name` or `email`."
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`. A monitor, a Slack integration and a Zapier Zap can't be looked up by name."
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "Values to set for this attribute."
                }
              },
              "required": [
                "attribute",
                "values"
              ]
            },
            "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.",
            "examples": [
              [
                {
                  "attribute": {
                    "id": "56",
                    "name": "Team"
                  },
                  "values": [
                    {
                      "type": "String",
                      "value": "My Team"
                    }
                  ]
                },
                {
                  "attribute": {
                    "id": "57",
                    "name": "Team Lead"
                  },
                  "values": [
                    {
                      "type": "Team",
                      "item_id": "t123",
                      "name": "SRE"
                    }
                  ]
                }
              ]
            ]
          }
        },
        "required": [
          "attributes"
        ]
      },
      "CatalogRecordDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CatalogRecord"
          }
        }
      },
      "CatalogRecordList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CatalogRecord"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "CatalogRecordUpdate": {
        "$ref": "#/components/schemas/CatalogRecordUpdateAttributes"
      },
      "CatalogRecordUpdateAttributes": {
        "type": "object",
        "properties": {
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attribute": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The catalog attribute's ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog attribute's name."
                    }
                  },
                  "description": "The catalog attribute to set, by ID or name. Responses include both."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source. Required, unless you send a text value as `{value}` on its own."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a String value. Required when `type` is `String`."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A reference needs one of `item_id`, `name` or `email`."
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`. A monitor, a Slack integration and a Zapier Zap can't be looked up by name."
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "Values to set for this attribute."
                }
              },
              "required": [
                "attribute",
                "values"
              ]
            },
            "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.",
            "examples": [
              [
                {
                  "attribute": {
                    "id": "56",
                    "name": "Team"
                  },
                  "values": [
                    {
                      "type": "String",
                      "value": "My Team"
                    }
                  ]
                },
                {
                  "attribute": {
                    "id": "57",
                    "name": "Team Lead"
                  },
                  "values": [
                    {
                      "type": "Team",
                      "item_id": "t123",
                      "name": "SRE"
                    }
                  ]
                }
              ]
            ]
          }
        },
        "required": [
          "attributes"
        ]
      },
      "CatalogRelation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The catalog_relation's id."
          },
          "type": {
            "type": "string",
            "const": "catalog_relation"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Catalog relation name.",
                "examples": [
                  "Team"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "What this catalog relation describes.",
                "examples": [
                  "Catalog of organization teams"
                ]
              },
              "match_mode": {
                "type": "string",
                "enum": [
                  "any",
                  "all"
                ],
                "description": "How an incident is matched to a record when the relation has several primary attributes.",
                "x-enum-descriptions": {
                  "any": "Matches a record when any primary attribute matches.",
                  "all": "Matches a record when every primary attribute matches."
                },
                "default": "any",
                "examples": [
                  "any"
                ]
              },
              "records_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of catalog records in this catalog relation.",
                "readOnly": true,
                "examples": [
                  12
                ]
              },
              "attributes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Attribute name. Names must be unique within the relation."
                    },
                    "primary": {
                      "type": "boolean",
                      "description": "Whether records are matched by this attribute. Defaults to `false`."
                    },
                    "id": {
                      "type": "string",
                      "description": "ID of an existing attribute to keep. Leave it out to keep the attribute with the same name, or to add a new one."
                    },
                    "position": {
                      "type": "integer",
                      "format": "int64",
                      "description": "Display order, set by the order of the list. Primary attributes count from 0 and added attributes from 1000.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "name"
                  ]
                },
                "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends `attributes` replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave `attributes` out of an update to keep the attributes as they are.",
                "examples": [
                  [
                    {
                      "id": "56",
                      "name": "Service",
                      "primary": true,
                      "position": 0
                    },
                    {
                      "id": "57",
                      "name": "Owner",
                      "primary": false,
                      "position": 1000
                    }
                  ]
                ]
              }
            }
          }
        }
      },
      "CatalogRelationCreate": {
        "$ref": "#/components/schemas/CatalogRelationCreateAttributes"
      },
      "CatalogRelationCreateAttributes": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "description": "Organization that owns this catalog relation, such as `123`. Defaults to the token's own organization. Required when you sign in with OAuth and can access more than one organization.",
            "writeOnly": true,
            "examples": [
              "123456"
            ]
          },
          "name": {
            "type": "string",
            "description": "Catalog relation name.",
            "examples": [
              "Team"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What this catalog relation describes.",
            "examples": [
              "Catalog of organization teams"
            ]
          },
          "match_mode": {
            "type": "string",
            "enum": [
              "any",
              "all"
            ],
            "description": "How an incident is matched to a record when the relation has several primary attributes.",
            "x-enum-descriptions": {
              "any": "Matches a record when any primary attribute matches.",
              "all": "Matches a record when every primary attribute matches."
            },
            "default": "any",
            "examples": [
              "any"
            ]
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Attribute name. Names must be unique within the relation."
                },
                "primary": {
                  "type": "boolean",
                  "description": "Whether records are matched by this attribute. Defaults to `false`."
                },
                "id": {
                  "type": "string",
                  "description": "ID of an existing attribute to keep. Leave it out to keep the attribute with the same name, or to add a new one."
                },
                "position": {
                  "type": "integer",
                  "format": "int64",
                  "description": "Display order, set by the order of the list. Primary attributes count from 0 and added attributes from 1000.",
                  "readOnly": true
                }
              },
              "required": [
                "name"
              ]
            },
            "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends `attributes` replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave `attributes` out of an update to keep the attributes as they are.",
            "examples": [
              [
                {
                  "id": "56",
                  "name": "Service",
                  "primary": true,
                  "position": 0
                },
                {
                  "id": "57",
                  "name": "Owner",
                  "primary": false,
                  "position": 1000
                }
              ]
            ]
          }
        },
        "required": [
          "name",
          "attributes"
        ]
      },
      "CatalogRelationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CatalogRelation"
          }
        }
      },
      "CatalogRelationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CatalogRelation"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "CatalogRelationUpdate": {
        "$ref": "#/components/schemas/CatalogRelationUpdateAttributes"
      },
      "CatalogRelationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Catalog relation name.",
            "examples": [
              "Team"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What this catalog relation describes.",
            "examples": [
              "Catalog of organization teams"
            ]
          },
          "match_mode": {
            "type": "string",
            "enum": [
              "any",
              "all"
            ],
            "description": "How an incident is matched to a record when the relation has several primary attributes.",
            "x-enum-descriptions": {
              "any": "Matches a record when any primary attribute matches.",
              "all": "Matches a record when every primary attribute matches."
            },
            "default": "any",
            "examples": [
              "any"
            ]
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Attribute name. Names must be unique within the relation."
                },
                "primary": {
                  "type": "boolean",
                  "description": "Whether records are matched by this attribute. Defaults to `false`."
                },
                "id": {
                  "type": "string",
                  "description": "ID of an existing attribute to keep. Leave it out to keep the attribute with the same name, or to add a new one."
                },
                "position": {
                  "type": "integer",
                  "format": "int64",
                  "description": "Display order, set by the order of the list. Primary attributes count from 0 and added attributes from 1000.",
                  "readOnly": true
                }
              },
              "required": [
                "name"
              ]
            },
            "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends `attributes` replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave `attributes` out of an update to keep the attributes as they are.",
            "examples": [
              [
                {
                  "id": "56",
                  "name": "Service",
                  "primary": true,
                  "position": 0
                },
                {
                  "id": "57",
                  "name": "Owner",
                  "primary": false,
                  "position": 1000
                }
              ]
            ]
          }
        }
      },
      "EscalationPolicy": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The escalation_policy's id."
          },
          "type": {
            "type": "string",
            "const": "escalation_policy"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Policy name.",
                "examples": [
                  "Standard Escalation Policy"
                ]
              },
              "repeat_count": {
                "type": "integer",
                "format": "int64",
                "description": "How many times the whole policy repeats if nobody acknowledges the incident.",
                "default": 0,
                "examples": [
                  3
                ]
              },
              "repeat_delay": {
                "type": "integer",
                "format": "int64",
                "description": "Seconds until the steps repeat.",
                "default": 0,
                "examples": [
                  1800
                ]
              },
              "escalation_policy_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the escalation policy group this policy is in, or `null` when it's in none.",
                "examples": [
                  "123456"
                ]
              },
              "fallback_escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Escalation policy to escalate to after these steps and repeats run out. Must belong to the same organization.",
                "examples": [
                  "456789"
                ]
              },
              "incident_token": {
                "type": "string",
                "description": "The secret token in the link to the policy's incident report form, used to open incidents on this policy.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "s3cr3t-placeholder"
                ]
              },
              "steps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "escalation",
                        "time_branching",
                        "metadata_branching",
                        "instructions",
                        "resolve_remove"
                      ],
                      "description": "The step type.\n\n- `escalation`: Notifies people or integrations.\n- `time_branching`: Acts when the incident happens in a time window, and otherwise continues with the next step.\n- `metadata_branching`: Acts when the incident's metadata matches a value, and otherwise continues with the next step.\n- `instructions`: Posts instructions into the incident timeline.\n- `resolve_remove`: Resolves or removes the incident.",
                      "x-enum-descriptions": {
                        "escalation": "Notifies people or integrations.",
                        "time_branching": "Acts when the incident happens in a time window, and otherwise continues with the next step.",
                        "metadata_branching": "Acts when the incident's metadata matches a value, and otherwise continues with the next step.",
                        "instructions": "Posts instructions into the incident timeline.",
                        "resolve_remove": "Resolves or removes the incident."
                      }
                    },
                    "wait_before": {
                      "type": "integer",
                      "format": "int64",
                      "description": "How long the step waits after the previous step, in seconds, from `0` to `691200`, which is 8 days. Defaults to `0`. Leave it out when the step waits until a time of day with `wait_until_time`."
                    },
                    "wait_until_time": {
                      "type": "string",
                      "description": "The time of day the step runs, in `HH:MM` format, instead of waiting `wait_before`. Requires `wait_until_timezone`. Responses show it in place of `wait_before` on such steps."
                    },
                    "wait_until_timezone": {
                      "type": "string",
                      "description": "The time zone of `wait_until_time`, as a time zone name such as `London` or `Eastern Time (US & Canada)`."
                    },
                    "wait_until_days": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The days on which `wait_until_time` applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Defaults to every day."
                    },
                    "severity_id": {
                      "type": "string",
                      "description": "The ID of the severity that sets how the step's members are notified. Required on `escalation` steps. Get the severity ID via [List severities](/docs/uptime/api/list-all-severities/)."
                    },
                    "step_members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "The member type. `current_on_call` notifies whoever is on call, and `entire_team` everyone in the team. `user` notifies one person, `policy` runs another escalation policy, `incident_metadata` notifies the people or integrations the incident's metadata names under `metadata_key`, and `ai_sre` starts an AI SRE investigation. A member can also be one integration, with type `webhook`, `email_integration`, `slack_integration`, `linear_integration`, `jira_integration`, `halo_psa_integration`, `microsoft_teams_integration`, `pagerduty_integration`, `zapier_webhook`, `zoom_integration` or `google_meet_integration`. Or it can be every integration of one kind, with type `all_slack_integrations`, `all_linear_integrations`, `all_jira_integrations`, `all_microsoft_teams_integrations`, `all_zapier_integrations`, `all_pagerduty_integrations`, `all_webhook_integrations`, `all_email_integrations`, `all_splunk_on_call_integrations`, `all_incident_io_integrations`, `all_zoom_integrations` or `all_google_meet_integrations`."
                          },
                          "id": {
                            "type": "string",
                            "description": "The ID of the member's target. Required for `user` unless `email` is set, and for `policy`, `ai_sre` and every type that notifies one integration. A `user` member is `u123` or their e-mail, and responses return `u123`. A `current_on_call` member accepts the ID of an on-call schedule to notify instead of your team's default schedule. An `entire_team` member accepts another team in the organization, as its ID such as `t123`. Responses return it the same way. Both come back without an ID when they use the policy's own team. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                          },
                          "email": {
                            "type": "string",
                            "description": "The e-mail of a `user` member, instead of its `id`."
                          },
                          "metadata_key": {
                            "type": "string",
                            "description": "For an `incident_metadata` member, the incident metadata key that says who to notify. The member notifies the users, teams, on-call schedules, escalation policies and integrations stored under that key."
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "entire_team"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^t[1-9][0-9]*$"
                                }
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "user"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                }
                              }
                            }
                          }
                        ]
                      },
                      "description": "Who or what the step notifies, at least one member. Required on `escalation` steps. Each member has a `type`, plus an `id`, `email` or `metadata_key` depending on the type."
                    },
                    "timezone": {
                      "type": "string",
                      "description": "The time zone of the time window. Required on `time_branching` steps."
                    },
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The days on which the time window applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Used on `time_branching` steps and defaults to every day."
                    },
                    "time_from": {
                      "type": "string",
                      "description": "Start of the time window, in `HH:MM` format. Required on `time_branching` steps."
                    },
                    "time_to": {
                      "type": "string",
                      "description": "End of the time window, in `HH:MM` format. Required on `time_branching` steps."
                    },
                    "metadata_key": {
                      "type": "string",
                      "description": "The incident metadata key the step checks. Required on `metadata_branching` steps."
                    },
                    "metadata_values": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`String`, `no_value`, or a catalog item's type, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. `no_value` matches when the incident's metadata doesn't have the key or the key is empty."
                          },
                          "value": {
                            "type": "string",
                            "description": "The text of a `String` value."
                          },
                          "item_id": {
                            "type": "string",
                            "description": "The catalog item's ID. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                          },
                          "name": {
                            "type": "string",
                            "description": "The catalog item's name. An item can also be found by its name instead of `item_id`."
                          },
                          "email": {
                            "type": "string",
                            "description": "A User item's e-mail, returned for a User. A user can also be found by e-mail."
                          }
                        },
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "User"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "properties": {
                                "item_id": {
                                  "type": "string",
                                  "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                }
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "Team"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "properties": {
                                "item_id": {
                                  "type": "string",
                                  "pattern": "^t[1-9][0-9]*$"
                                }
                              }
                            }
                          }
                        ]
                      },
                      "description": "The metadata values that match, at least one. Required on `metadata_branching` steps. Each is `{type: \"String\", value}`, `{type: \"no_value\"}` or a catalog item reference. `no_value` matches when the key is missing or blank."
                    },
                    "action_type": {
                      "type": "string",
                      "enum": [
                        "escalate_to_policy",
                        "resolve_incident",
                        "remove_incident",
                        "do_not_escalate"
                      ],
                      "description": "What the step does. Required on `resolve_remove` steps, which accept only resolving or removing. On branching steps, the action applies when the incident matches. Defaults to running another policy when you set `escalation_policy_id` or `policy_metadata_key`, and to stopping otherwise.\n\n- `escalate_to_policy`: Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.\n- `resolve_incident`: Resolves the incident and stops this policy.\n- `remove_incident`: Removes the incident for good and stops this policy.\n- `do_not_escalate`: Stops this policy.",
                      "x-enum-descriptions": {
                        "escalate_to_policy": "Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.",
                        "resolve_incident": "Resolves the incident and stops this policy.",
                        "remove_incident": "Removes the incident for good and stops this policy.",
                        "do_not_escalate": "Stops this policy."
                      }
                    },
                    "escalation_policy_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The ID of another escalation policy in your organization to run when the incident matches. Used on `time_branching` and `metadata_branching` steps. Can't be combined with `policy_metadata_key`."
                    },
                    "policy_metadata_key": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "A key in the incident's metadata that holds the escalation policy to run when the incident matches, instead of `escalation_policy_id`. Used on `time_branching` and `metadata_branching` steps. If the key is missing or holds no policy, the policy stops."
                    },
                    "instructions_comment": {
                      "type": "string",
                      "description": "The instructions posted as a comment into the incident timeline. Supports Markdown, checkboxes like `- [ ] Step 1`, and values from the incident's metadata as `{key}`, such as `{server_region}`. Required on `instructions` steps."
                    },
                    "instructions_reminder_enabled": {
                      "type": "boolean",
                      "description": "Whether to post a reminder periodically until every checkbox in the instructions is checked. Defaults to `false`."
                    },
                    "instructions_reminder_interval_hours": {
                      "type": "integer",
                      "format": "int64",
                      "description": "How often the reminder is posted, in hours, on `instructions` steps with `instructions_reminder_enabled` on. At least `1`, and `4` by default."
                    }
                  },
                  "required": [
                    "type"
                  ]
                },
                "description": "Ordered escalation steps. An update with steps replaces the whole list. An empty list makes a silent policy that only collects incidents. Every step has a type, a wait set by `wait_before` or by `wait_until_time` and `wait_until_timezone`, and the keys its type uses.",
                "examples": [
                  [
                    {
                      "type": "escalation",
                      "wait_before": 0,
                      "severity_id": "12345",
                      "step_members": [
                        {
                          "type": "current_on_call"
                        }
                      ]
                    },
                    {
                      "type": "escalation",
                      "wait_before": 600,
                      "severity_id": "12345",
                      "step_members": [
                        {
                          "type": "entire_team"
                        }
                      ]
                    }
                  ]
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this policy, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this policy.",
                "readOnly": true,
                "examples": [
                  "Test team"
                ]
              }
            }
          }
        }
      },
      "EscalationPolicyCreate": {
        "$ref": "#/components/schemas/EscalationPolicyCreateAttributes"
      },
      "EscalationPolicyCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Policy name.",
            "examples": [
              "Standard Escalation Policy"
            ]
          },
          "repeat_count": {
            "type": "integer",
            "format": "int64",
            "description": "How many times the whole policy repeats if nobody acknowledges the incident.",
            "default": 0,
            "examples": [
              3
            ]
          },
          "repeat_delay": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds until the steps repeat.",
            "default": 0,
            "examples": [
              1800
            ]
          },
          "escalation_policy_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the escalation policy group this policy is in, or `null` when it's in none. Send `null` to remove it from its group.",
            "examples": [
              "123456"
            ]
          },
          "fallback_escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Escalation policy to escalate to after these steps and repeats run out. Must belong to the same organization.",
            "examples": [
              "456789"
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "escalation",
                    "time_branching",
                    "metadata_branching",
                    "instructions",
                    "resolve_remove"
                  ],
                  "description": "The step type.\n\n- `escalation`: Notifies people or integrations.\n- `time_branching`: Acts when the incident happens in a time window, and otherwise continues with the next step.\n- `metadata_branching`: Acts when the incident's metadata matches a value, and otherwise continues with the next step.\n- `instructions`: Posts instructions into the incident timeline.\n- `resolve_remove`: Resolves or removes the incident.",
                  "x-enum-descriptions": {
                    "escalation": "Notifies people or integrations.",
                    "time_branching": "Acts when the incident happens in a time window, and otherwise continues with the next step.",
                    "metadata_branching": "Acts when the incident's metadata matches a value, and otherwise continues with the next step.",
                    "instructions": "Posts instructions into the incident timeline.",
                    "resolve_remove": "Resolves or removes the incident."
                  }
                },
                "wait_before": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How long the step waits after the previous step, in seconds, from `0` to `691200`, which is 8 days. Defaults to `0`. Leave it out when the step waits until a time of day with `wait_until_time`."
                },
                "wait_until_time": {
                  "type": "string",
                  "description": "The time of day the step runs, in `HH:MM` format, instead of waiting `wait_before`. Requires `wait_until_timezone`. Responses show it in place of `wait_before` on such steps."
                },
                "wait_until_timezone": {
                  "type": "string",
                  "description": "The time zone of `wait_until_time`, as a time zone name such as `London` or `Eastern Time (US & Canada)`."
                },
                "wait_until_days": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The days on which `wait_until_time` applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Defaults to every day."
                },
                "severity_id": {
                  "type": "string",
                  "description": "The ID of the severity that sets how the step's members are notified. Required on `escalation` steps. Get the severity ID via [List severities](/docs/uptime/api/list-all-severities/)."
                },
                "step_members": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "The member type. `current_on_call` notifies whoever is on call, and `entire_team` everyone in the team. `user` notifies one person, `policy` runs another escalation policy, `incident_metadata` notifies the people or integrations the incident's metadata names under `metadata_key`, and `ai_sre` starts an AI SRE investigation. A member can also be one integration, with type `webhook`, `email_integration`, `slack_integration`, `linear_integration`, `jira_integration`, `halo_psa_integration`, `microsoft_teams_integration`, `pagerduty_integration`, `zapier_webhook`, `zoom_integration` or `google_meet_integration`. Or it can be every integration of one kind, with type `all_slack_integrations`, `all_linear_integrations`, `all_jira_integrations`, `all_microsoft_teams_integrations`, `all_zapier_integrations`, `all_pagerduty_integrations`, `all_webhook_integrations`, `all_email_integrations`, `all_splunk_on_call_integrations`, `all_incident_io_integrations`, `all_zoom_integrations` or `all_google_meet_integrations`."
                      },
                      "id": {
                        "type": "string",
                        "description": "The ID of the member's target. Required for `user` unless `email` is set, and for `policy`, `ai_sre` and every type that notifies one integration. A `user` member is `u123` or their e-mail, and responses return `u123`. A `current_on_call` member accepts the ID of an on-call schedule to notify instead of your team's default schedule. An `entire_team` member accepts another team in the organization, as its ID such as `t123`. Responses return it the same way. Both come back without an ID when they use the policy's own team. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "email": {
                        "type": "string",
                        "description": "The e-mail of a `user` member, instead of its `id`."
                      },
                      "metadata_key": {
                        "type": "string",
                        "description": "For an `incident_metadata` member, the incident metadata key that says who to notify. The member notifies the users, teams, on-call schedules, escalation policies and integrations stored under that key."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "entire_team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "user"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "Who or what the step notifies, at least one member. Required on `escalation` steps. Each member has a `type`, plus an `id`, `email` or `metadata_key` depending on the type."
                },
                "timezone": {
                  "type": "string",
                  "description": "The time zone of the time window. Required on `time_branching` steps."
                },
                "days": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The days on which the time window applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Used on `time_branching` steps and defaults to every day."
                },
                "time_from": {
                  "type": "string",
                  "description": "Start of the time window, in `HH:MM` format. Required on `time_branching` steps."
                },
                "time_to": {
                  "type": "string",
                  "description": "End of the time window, in `HH:MM` format. Required on `time_branching` steps."
                },
                "metadata_key": {
                  "type": "string",
                  "description": "The incident metadata key the step checks. Required on `metadata_branching` steps."
                },
                "metadata_values": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, `no_value`, or a catalog item's type, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. `no_value` matches when the incident's metadata doesn't have the key or the key is empty."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "The catalog item's ID. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": "string",
                        "description": "The catalog item's name. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "A User item's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "The metadata values that match, at least one. Required on `metadata_branching` steps. Each is `{type: \"String\", value}`, `{type: \"no_value\"}` or a catalog item reference. `no_value` matches when the key is missing or blank."
                },
                "action_type": {
                  "type": "string",
                  "enum": [
                    "escalate_to_policy",
                    "resolve_incident",
                    "remove_incident",
                    "do_not_escalate"
                  ],
                  "description": "What the step does. Required on `resolve_remove` steps, which accept only resolving or removing. On branching steps, the action applies when the incident matches. Defaults to running another policy when you set `escalation_policy_id` or `policy_metadata_key`, and to stopping otherwise.\n\n- `escalate_to_policy`: Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.\n- `resolve_incident`: Resolves the incident and stops this policy.\n- `remove_incident`: Removes the incident for good and stops this policy.\n- `do_not_escalate`: Stops this policy.",
                  "x-enum-descriptions": {
                    "escalate_to_policy": "Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.",
                    "resolve_incident": "Resolves the incident and stops this policy.",
                    "remove_incident": "Removes the incident for good and stops this policy.",
                    "do_not_escalate": "Stops this policy."
                  }
                },
                "escalation_policy_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The ID of another escalation policy in your organization to run when the incident matches. Used on `time_branching` and `metadata_branching` steps. Can't be combined with `policy_metadata_key`."
                },
                "policy_metadata_key": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "A key in the incident's metadata that holds the escalation policy to run when the incident matches, instead of `escalation_policy_id`. Used on `time_branching` and `metadata_branching` steps. If the key is missing or holds no policy, the policy stops."
                },
                "instructions_comment": {
                  "type": "string",
                  "description": "The instructions posted as a comment into the incident timeline. Supports Markdown, checkboxes like `- [ ] Step 1`, and values from the incident's metadata as `{key}`, such as `{server_region}`. Required on `instructions` steps."
                },
                "instructions_reminder_enabled": {
                  "type": "boolean",
                  "description": "Whether to post a reminder periodically until every checkbox in the instructions is checked. Defaults to `false`."
                },
                "instructions_reminder_interval_hours": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How often the reminder is posted, in hours, on `instructions` steps with `instructions_reminder_enabled` on. At least `1`, and `4` by default."
                }
              },
              "required": [
                "type"
              ]
            },
            "description": "Ordered escalation steps. An update with steps replaces the whole list. An empty list makes a silent policy that only collects incidents. Every step has a type, a wait set by `wait_before` or by `wait_until_time` and `wait_until_timezone`, and the keys its type uses.",
            "examples": [
              [
                {
                  "type": "escalation",
                  "wait_before": 0,
                  "severity_id": "12345",
                  "step_members": [
                    {
                      "type": "current_on_call"
                    }
                  ]
                },
                {
                  "type": "escalation",
                  "wait_before": 600,
                  "severity_id": "12345",
                  "step_members": [
                    {
                      "type": "entire_team"
                    }
                  ]
                }
              ]
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "EscalationPolicyDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/EscalationPolicy"
          }
        }
      },
      "EscalationPolicyGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The escalation_policy_group's id."
          },
          "type": {
            "type": "string",
            "const": "escalation_policy_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Group name.",
                "examples": [
                  "Example"
                ]
              },
              "sort_index": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "The group's position in your list of escalation policy groups, lower values first. `null` when no position was set.",
                "examples": [
                  0
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was created.",
                "readOnly": true,
                "examples": [
                  "2024-07-26T15:07:46.350Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was last updated.",
                "readOnly": true,
                "examples": [
                  "2024-07-26T15:07:46.350Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this group, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this group.",
                "readOnly": true,
                "examples": [
                  "Test team"
                ]
              }
            }
          }
        }
      },
      "EscalationPolicyGroupCreate": {
        "$ref": "#/components/schemas/EscalationPolicyGroupCreateAttributes"
      },
      "EscalationPolicyGroupCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Example"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The group's position in your list of escalation policy groups, lower values first. `null` when no position was set. Requests can also name it `position`.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "EscalationPolicyGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/EscalationPolicyGroup"
          }
        }
      },
      "EscalationPolicyGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EscalationPolicyGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "EscalationPolicyGroupUpdate": {
        "$ref": "#/components/schemas/EscalationPolicyGroupUpdateAttributes"
      },
      "EscalationPolicyGroupUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Example"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The group's position in your list of escalation policy groups, lower values first. `null` when no position was set. Requests can also name it `position`.",
            "examples": [
              0
            ]
          }
        }
      },
      "EscalationPolicyList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EscalationPolicy"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "EscalationPolicyUpdate": {
        "$ref": "#/components/schemas/EscalationPolicyUpdateAttributes"
      },
      "EscalationPolicyUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Policy name.",
            "examples": [
              "Standard Escalation Policy"
            ]
          },
          "repeat_count": {
            "type": "integer",
            "format": "int64",
            "description": "How many times the whole policy repeats if nobody acknowledges the incident.",
            "default": 0,
            "examples": [
              3
            ]
          },
          "repeat_delay": {
            "type": "integer",
            "format": "int64",
            "description": "Seconds until the steps repeat.",
            "default": 0,
            "examples": [
              1800
            ]
          },
          "escalation_policy_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the escalation policy group this policy is in, or `null` when it's in none. Send `null` to remove it from its group.",
            "examples": [
              "123456"
            ]
          },
          "fallback_escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Escalation policy to escalate to after these steps and repeats run out. Must belong to the same organization.",
            "examples": [
              "456789"
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "escalation",
                    "time_branching",
                    "metadata_branching",
                    "instructions",
                    "resolve_remove"
                  ],
                  "description": "The step type.\n\n- `escalation`: Notifies people or integrations.\n- `time_branching`: Acts when the incident happens in a time window, and otherwise continues with the next step.\n- `metadata_branching`: Acts when the incident's metadata matches a value, and otherwise continues with the next step.\n- `instructions`: Posts instructions into the incident timeline.\n- `resolve_remove`: Resolves or removes the incident.",
                  "x-enum-descriptions": {
                    "escalation": "Notifies people or integrations.",
                    "time_branching": "Acts when the incident happens in a time window, and otherwise continues with the next step.",
                    "metadata_branching": "Acts when the incident's metadata matches a value, and otherwise continues with the next step.",
                    "instructions": "Posts instructions into the incident timeline.",
                    "resolve_remove": "Resolves or removes the incident."
                  }
                },
                "wait_before": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How long the step waits after the previous step, in seconds, from `0` to `691200`, which is 8 days. Defaults to `0`. Leave it out when the step waits until a time of day with `wait_until_time`."
                },
                "wait_until_time": {
                  "type": "string",
                  "description": "The time of day the step runs, in `HH:MM` format, instead of waiting `wait_before`. Requires `wait_until_timezone`. Responses show it in place of `wait_before` on such steps."
                },
                "wait_until_timezone": {
                  "type": "string",
                  "description": "The time zone of `wait_until_time`, as a time zone name such as `London` or `Eastern Time (US & Canada)`."
                },
                "wait_until_days": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The days on which `wait_until_time` applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Defaults to every day."
                },
                "severity_id": {
                  "type": "string",
                  "description": "The ID of the severity that sets how the step's members are notified. Required on `escalation` steps. Get the severity ID via [List severities](/docs/uptime/api/list-all-severities/)."
                },
                "step_members": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "The member type. `current_on_call` notifies whoever is on call, and `entire_team` everyone in the team. `user` notifies one person, `policy` runs another escalation policy, `incident_metadata` notifies the people or integrations the incident's metadata names under `metadata_key`, and `ai_sre` starts an AI SRE investigation. A member can also be one integration, with type `webhook`, `email_integration`, `slack_integration`, `linear_integration`, `jira_integration`, `halo_psa_integration`, `microsoft_teams_integration`, `pagerduty_integration`, `zapier_webhook`, `zoom_integration` or `google_meet_integration`. Or it can be every integration of one kind, with type `all_slack_integrations`, `all_linear_integrations`, `all_jira_integrations`, `all_microsoft_teams_integrations`, `all_zapier_integrations`, `all_pagerduty_integrations`, `all_webhook_integrations`, `all_email_integrations`, `all_splunk_on_call_integrations`, `all_incident_io_integrations`, `all_zoom_integrations` or `all_google_meet_integrations`."
                      },
                      "id": {
                        "type": "string",
                        "description": "The ID of the member's target. Required for `user` unless `email` is set, and for `policy`, `ai_sre` and every type that notifies one integration. A `user` member is `u123` or their e-mail, and responses return `u123`. A `current_on_call` member accepts the ID of an on-call schedule to notify instead of your team's default schedule. An `entire_team` member accepts another team in the organization, as its ID such as `t123`. Responses return it the same way. Both come back without an ID when they use the policy's own team. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "email": {
                        "type": "string",
                        "description": "The e-mail of a `user` member, instead of its `id`."
                      },
                      "metadata_key": {
                        "type": "string",
                        "description": "For an `incident_metadata` member, the incident metadata key that says who to notify. The member notifies the users, teams, on-call schedules, escalation policies and integrations stored under that key."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "entire_team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "user"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "Who or what the step notifies, at least one member. Required on `escalation` steps. Each member has a `type`, plus an `id`, `email` or `metadata_key` depending on the type."
                },
                "timezone": {
                  "type": "string",
                  "description": "The time zone of the time window. Required on `time_branching` steps."
                },
                "days": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The days on which the time window applies, out of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. Used on `time_branching` steps and defaults to every day."
                },
                "time_from": {
                  "type": "string",
                  "description": "Start of the time window, in `HH:MM` format. Required on `time_branching` steps."
                },
                "time_to": {
                  "type": "string",
                  "description": "End of the time window, in `HH:MM` format. Required on `time_branching` steps."
                },
                "metadata_key": {
                  "type": "string",
                  "description": "The incident metadata key the step checks. Required on `metadata_branching` steps."
                },
                "metadata_values": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, `no_value`, or a catalog item's type, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. `no_value` matches when the incident's metadata doesn't have the key or the key is empty."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "The catalog item's ID. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": "string",
                        "description": "The catalog item's name. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "A User item's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  },
                  "description": "The metadata values that match, at least one. Required on `metadata_branching` steps. Each is `{type: \"String\", value}`, `{type: \"no_value\"}` or a catalog item reference. `no_value` matches when the key is missing or blank."
                },
                "action_type": {
                  "type": "string",
                  "enum": [
                    "escalate_to_policy",
                    "resolve_incident",
                    "remove_incident",
                    "do_not_escalate"
                  ],
                  "description": "What the step does. Required on `resolve_remove` steps, which accept only resolving or removing. On branching steps, the action applies when the incident matches. Defaults to running another policy when you set `escalation_policy_id` or `policy_metadata_key`, and to stopping otherwise.\n\n- `escalate_to_policy`: Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.\n- `resolve_incident`: Resolves the incident and stops this policy.\n- `remove_incident`: Removes the incident for good and stops this policy.\n- `do_not_escalate`: Stops this policy.",
                  "x-enum-descriptions": {
                    "escalate_to_policy": "Runs the escalation policy in `escalation_policy_id` or `policy_metadata_key` and stops this policy.",
                    "resolve_incident": "Resolves the incident and stops this policy.",
                    "remove_incident": "Removes the incident for good and stops this policy.",
                    "do_not_escalate": "Stops this policy."
                  }
                },
                "escalation_policy_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The ID of another escalation policy in your organization to run when the incident matches. Used on `time_branching` and `metadata_branching` steps. Can't be combined with `policy_metadata_key`."
                },
                "policy_metadata_key": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "A key in the incident's metadata that holds the escalation policy to run when the incident matches, instead of `escalation_policy_id`. Used on `time_branching` and `metadata_branching` steps. If the key is missing or holds no policy, the policy stops."
                },
                "instructions_comment": {
                  "type": "string",
                  "description": "The instructions posted as a comment into the incident timeline. Supports Markdown, checkboxes like `- [ ] Step 1`, and values from the incident's metadata as `{key}`, such as `{server_region}`. Required on `instructions` steps."
                },
                "instructions_reminder_enabled": {
                  "type": "boolean",
                  "description": "Whether to post a reminder periodically until every checkbox in the instructions is checked. Defaults to `false`."
                },
                "instructions_reminder_interval_hours": {
                  "type": "integer",
                  "format": "int64",
                  "description": "How often the reminder is posted, in hours, on `instructions` steps with `instructions_reminder_enabled` on. At least `1`, and `4` by default."
                }
              },
              "required": [
                "type"
              ]
            },
            "description": "Ordered escalation steps. An update with steps replaces the whole list. An empty list makes a silent policy that only collects incidents. Every step has a type, a wait set by `wait_before` or by `wait_until_time` and `wait_until_timezone`, and the keys its type uses.",
            "examples": [
              [
                {
                  "type": "escalation",
                  "wait_before": 0,
                  "severity_id": "12345",
                  "step_members": [
                    {
                      "type": "current_on_call"
                    }
                  ]
                },
                {
                  "type": "escalation",
                  "wait_before": 600,
                  "severity_id": "12345",
                  "step_members": [
                    {
                      "type": "entire_team"
                    }
                  ]
                }
              ]
            ]
          }
        }
      },
      "FileUpload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The file_upload's id."
          },
          "type": {
            "type": "string",
            "const": "file_upload"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "organization_id": {
                "type": "string",
                "description": "Organization the upload belongs to, such as `123`. Required when you sign in with OAuth and can access more than one organization. Without it, the upload belongs to your token's organization.",
                "examples": [
                  "123456"
                ]
              },
              "filename": {
                "type": "string",
                "description": "The name the attachment gets, without a path, double quotes or control characters, up to 255 characters.",
                "examples": [
                  "checkout-errors.log"
                ]
              },
              "content_type": {
                "type": "string",
                "description": "The file's MIME type, such as `text/plain`, `image/png` or `application/pdf`. When the file's contents are of a different type, the file is saved as the type of its contents.",
                "examples": [
                  "text/plain"
                ]
              },
              "status": {
                "type": "string",
                "description": "`pending` until the file is sent to `upload_url`, then `uploaded`.",
                "readOnly": true,
                "examples": [
                  "pending"
                ]
              },
              "size": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "The file's size in bytes, once it's uploaded.",
                "readOnly": true,
                "examples": [
                  35
                ]
              },
              "upload_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where to send the file with `PUT`, without a token. Accepts one file of up to 10 MB. The URL expires after 15 minutes. Present while the upload is `pending`.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://uptime.betterstack.com/api/v3/file-uploads/123/content?signature=…"
                ]
              },
              "upload_url_expires_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When `upload_url` expires.",
                "readOnly": true,
                "examples": [
                  "2026-11-23T16:30:07Z"
                ]
              },
              "upload_command": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A `curl` command that sends the file from the current directory to `upload_url`. Present while the upload is `pending`.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "curl --fail-with-body --globoff -T './checkout-errors.log' -H 'Content-Type: text/plain' 'https://uptime.betterstack.com/api/v3/file-uploads/123/content?signature=…'"
                ]
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the upload is removed if nothing attached it, a day after it was created.",
                "readOnly": true,
                "examples": [
                  "2026-11-24T16:15:07Z"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the upload was created.",
                "readOnly": true,
                "examples": [
                  "2026-11-23T16:15:07Z"
                ]
              }
            }
          }
        }
      },
      "FileUploadCreate": {
        "$ref": "#/components/schemas/FileUploadCreateAttributes"
      },
      "FileUploadCreateAttributes": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "description": "Organization the upload belongs to, such as `123`. Required when you sign in with OAuth and can access more than one organization. Without it, the upload belongs to your token's organization.",
            "examples": [
              "123456"
            ]
          },
          "filename": {
            "type": "string",
            "description": "The name the attachment gets, without a path, double quotes or control characters, up to 255 characters.",
            "examples": [
              "checkout-errors.log"
            ]
          },
          "content_type": {
            "type": "string",
            "description": "The file's MIME type, such as `text/plain`, `image/png` or `application/pdf`. When the file's contents are of a different type, the file is saved as the type of its contents.",
            "examples": [
              "text/plain"
            ]
          }
        },
        "required": [
          "filename",
          "content_type"
        ]
      },
      "FileUploadDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/FileUpload"
          }
        }
      },
      "Heartbeat": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The heartbeat's id."
          },
          "type": {
            "type": "string",
            "const": "heartbeat"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Heartbeat name.",
                "examples": [
                  "Testing heartbeat"
                ]
              },
              "url": {
                "type": "string",
                "description": "The unique URL your service requests to report a heartbeat.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://uptime.betterstack.com/api/v1/heartbeat/s3cr3t-placeholder"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "paused",
                  "pending",
                  "maintenance",
                  "up",
                  "validating",
                  "down"
                ],
                "description": "The heartbeat's current status.",
                "x-enum-descriptions": {
                  "paused": "The heartbeat is paused.",
                  "pending": "The first request hasn't arrived yet.",
                  "maintenance": "The heartbeat is in its maintenance window.",
                  "up": "There's no open incident.",
                  "validating": "Requests arrive again, and the open incident resolves once the recovery period passes.",
                  "down": "A request didn't arrive in time or reported a failure."
                },
                "readOnly": true,
                "examples": [
                  "up"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the heartbeat is paused. A paused heartbeat doesn't notify you about downtime.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "period": {
                "type": "integer",
                "format": "int64",
                "description": "How often the heartbeat expects a request, in seconds. At least `30` and less than a year.",
                "examples": [
                  10800
                ]
              },
              "grace": {
                "type": "integer",
                "format": "int64",
                "description": "How late a request can arrive after `period`, in seconds, before it counts as missed. At least `0` and less than a year.",
                "examples": [
                  300
                ]
              },
              "heartbeat_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the heartbeat group this heartbeat belongs to.",
                "examples": [
                  "123456"
                ]
              },
              "sort_index": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "A sort value you can set through the API. The dashboard doesn't use it to order heartbeats.",
                "examples": [
                  0
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Get the ID via [List escalation policies](/docs/uptime/api/list-all-escalation-policies/).",
                "examples": [
                  "456"
                ]
              },
              "server_timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The time zone your job runs in, as an IANA name like `Europe/Berlin`. Set it so a job scheduled by local time isn't counted as late when the clocks change for daylight saving.",
                "examples": [
                  "Europe/London"
                ]
              },
              "maintenance_from": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Start time of the daily maintenance window, like `01:00`. We don't check the heartbeat during the window. Returned as `HH:MM:SS`, or `null` when no window is set.",
                "examples": [
                  "01:02:00"
                ]
              },
              "maintenance_to": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "End time of the daily maintenance window, like `03:00`. Required with `maintenance_from`. A window that ends before it starts runs overnight. Returned as `HH:MM:SS`, or `null` when no window is set.",
                "examples": [
                  "03:04:00"
                ]
              },
              "maintenance_timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "time-zone",
                "description": "Time zone of the maintenance window, as a short name like `Amsterdam` or an IANA name like `Europe/Amsterdam`. Returned as the short name. `null` means UTC.",
                "examples": [
                  "Amsterdam"
                ]
              },
              "maintenance_days": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "uniqueItems": true,
                "x-unordered": true,
                "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window counts for the day it starts. Order doesn't matter.",
                "default": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri",
                  "sat",
                  "sun"
                ],
                "examples": [
                  [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ]
                ]
              },
              "paused_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the heartbeat was paused.",
                "readOnly": true,
                "examples": [
                  "2020-12-10T15:00:15.089Z"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the heartbeat was created.",
                "readOnly": true,
                "examples": [
                  "2020-05-05T11:41:49.327Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the heartbeat was last updated.",
                "readOnly": true,
                "examples": [
                  "2020-12-10T15:00:15.089Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this heartbeat, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this heartbeat.",
                "readOnly": true,
                "examples": [
                  "Test team"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  }
                },
                "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat.",
                "examples": [
                  {
                    "Service": [
                      {
                        "type": "String",
                        "value": "Checkout"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "escalation_policy": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "required": [
                      "id",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "const": "escalation_policy"
                      }
                    }
                  }
                },
                "description": "The escalation policy used for alerts, linked by its ID. `null` when the heartbeat has none."
              }
            }
          }
        }
      },
      "HeartbeatCreate": {
        "$ref": "#/components/schemas/HeartbeatCreateAttributes"
      },
      "HeartbeatCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Heartbeat name.",
            "examples": [
              "Testing heartbeat"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the heartbeat is paused. A paused heartbeat doesn't notify you about downtime. Send `false` to resume it.",
            "default": false,
            "examples": [
              false
            ]
          },
          "period": {
            "type": "integer",
            "format": "int64",
            "description": "How often the heartbeat expects a request, in seconds. At least `30` and less than a year.",
            "examples": [
              10800
            ]
          },
          "grace": {
            "type": "integer",
            "format": "int64",
            "description": "How late a request can arrive after `period`, in seconds, before it counts as missed. At least `0` and less than a year.",
            "examples": [
              300
            ]
          },
          "heartbeat_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the heartbeat group this heartbeat belongs to.",
            "examples": [
              "123456"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "A sort value you can set through the API. The dashboard doesn't use it to order heartbeats.",
            "examples": [
              0
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Get the ID via [List escalation policies](/docs/uptime/api/list-all-escalation-policies/).",
            "examples": [
              "456"
            ]
          },
          "server_timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "The time zone your job runs in, as an IANA name like `Europe/Berlin`. Set it so a job scheduled by local time isn't counted as late when the clocks change for daylight saving. Only accepted for a `period` of at least 3600 seconds, which is 1 hour. Send `null` or an empty string to clear it.",
            "examples": [
              "Europe/London"
            ]
          },
          "maintenance_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start time of the daily maintenance window, like `01:00`. We don't check the heartbeat during the window. Returned as `HH:MM:SS`, or `null` when no window is set.",
            "examples": [
              "01:02:00"
            ]
          },
          "maintenance_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "End time of the daily maintenance window, like `03:00`. Required with `maintenance_from`. A window that ends before it starts runs overnight. Returned as `HH:MM:SS`, or `null` when no window is set.",
            "examples": [
              "03:04:00"
            ]
          },
          "maintenance_timezone": {
            "type": [
              "string",
              "null"
            ],
            "format": "time-zone",
            "description": "Time zone of the maintenance window, as a short name like `Amsterdam` or an IANA name like `Europe/Amsterdam`. Returned as the short name. `null` means UTC.",
            "examples": [
              "Amsterdam"
            ]
          },
          "maintenance_days": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window counts for the day it starts. Order doesn't matter.",
            "default": [
              "mon",
              "tue",
              "wed",
              "thu",
              "fri",
              "sat",
              "sun"
            ],
            "examples": [
              [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri",
                "sat",
                "sun"
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. An update replaces all of the heartbeat's metadata with the object. `{}` removes it all. Leave `metadata` out to keep it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "name",
          "period",
          "grace"
        ]
      },
      "HeartbeatDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Heartbeat"
          }
        }
      },
      "HeartbeatGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The heartbeat_group's id."
          },
          "type": {
            "type": "string",
            "const": "heartbeat_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Group name.",
                "examples": [
                  "Backend services"
                ]
              },
              "sort_index": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "The position of the group in your list of heartbeat groups, lower values first. `null` when no position was set.",
                "examples": [
                  0
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether every heartbeat in the group is paused, `false` when the group has none.",
                "examples": [
                  false
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was created.",
                "readOnly": true,
                "examples": [
                  "2020-09-18T17:20:42.514Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was last updated.",
                "readOnly": true,
                "examples": [
                  "2020-09-18T17:21:27.251Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this heartbeat group, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this heartbeat group.",
                "readOnly": true,
                "examples": [
                  "Test team"
                ]
              }
            }
          }
        }
      },
      "HeartbeatGroupCreate": {
        "$ref": "#/components/schemas/HeartbeatGroupCreateAttributes"
      },
      "HeartbeatGroupCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Backend services"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The position of the group in your list of heartbeat groups, lower values first. `null` when no position was set.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "HeartbeatGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/HeartbeatGroup"
          }
        }
      },
      "HeartbeatGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HeartbeatGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "HeartbeatGroupUpdate": {
        "$ref": "#/components/schemas/HeartbeatGroupUpdateAttributes"
      },
      "HeartbeatGroupUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Backend services"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The position of the group in your list of heartbeat groups, lower values first. `null` when no position was set.",
            "examples": [
              0
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether every heartbeat in the group is paused, `false` when the group has none. Send `true` to pause every heartbeat in the group or `false` to resume them. Accepted on create, but has no effect there.",
            "examples": [
              false
            ]
          }
        }
      },
      "HeartbeatList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Heartbeat"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "HeartbeatUpdate": {
        "$ref": "#/components/schemas/HeartbeatUpdateAttributes"
      },
      "HeartbeatUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Heartbeat name.",
            "examples": [
              "Testing heartbeat"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the heartbeat is paused. A paused heartbeat doesn't notify you about downtime. Send `false` to resume it.",
            "default": false,
            "examples": [
              false
            ]
          },
          "period": {
            "type": "integer",
            "format": "int64",
            "description": "How often the heartbeat expects a request, in seconds. At least `30` and less than a year.",
            "examples": [
              10800
            ]
          },
          "grace": {
            "type": "integer",
            "format": "int64",
            "description": "How late a request can arrive after `period`, in seconds, before it counts as missed. At least `0` and less than a year.",
            "examples": [
              300
            ]
          },
          "heartbeat_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the heartbeat group this heartbeat belongs to.",
            "examples": [
              "123456"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "A sort value you can set through the API. The dashboard doesn't use it to order heartbeats.",
            "examples": [
              0
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Get the ID via [List escalation policies](/docs/uptime/api/list-all-escalation-policies/).",
            "examples": [
              "456"
            ]
          },
          "server_timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "The time zone your job runs in, as an IANA name like `Europe/Berlin`. Set it so a job scheduled by local time isn't counted as late when the clocks change for daylight saving. Only accepted for a `period` of at least 3600 seconds, which is 1 hour. Send `null` or an empty string to clear it.",
            "examples": [
              "Europe/London"
            ]
          },
          "maintenance_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start time of the daily maintenance window, like `01:00`. We don't check the heartbeat during the window. Returned as `HH:MM:SS`, or `null` when no window is set.",
            "examples": [
              "01:02:00"
            ]
          },
          "maintenance_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "End time of the daily maintenance window, like `03:00`. Required with `maintenance_from`. A window that ends before it starts runs overnight. Returned as `HH:MM:SS`, or `null` when no window is set.",
            "examples": [
              "03:04:00"
            ]
          },
          "maintenance_timezone": {
            "type": [
              "string",
              "null"
            ],
            "format": "time-zone",
            "description": "Time zone of the maintenance window, as a short name like `Amsterdam` or an IANA name like `Europe/Amsterdam`. Returned as the short name. `null` means UTC.",
            "examples": [
              "Amsterdam"
            ]
          },
          "maintenance_days": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window counts for the day it starts. Order doesn't matter.",
            "default": [
              "mon",
              "tue",
              "wed",
              "thu",
              "fri",
              "sat",
              "sun"
            ],
            "examples": [
              [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri",
                "sat",
                "sun"
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. An update replaces all of the heartbeat's metadata with the object. `{}` removes it all. Leave `metadata` out to keep it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "HolidayMode": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The holiday_mode's id."
          },
          "type": {
            "type": "string",
            "const": "holiday_mode"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "on_holiday": {
                "type": "boolean",
                "description": "Whether the team member is on holiday now.",
                "readOnly": true,
                "examples": [
                  true
                ]
              },
              "holiday_ends_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the holiday ends, rounded up to the whole second. `null` when holiday mode is off.",
                "examples": [
                  "2026-12-24T09:00:00Z"
                ]
              }
            }
          }
        }
      },
      "HolidayModeDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/HolidayMode"
          }
        }
      },
      "Incident": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incident's id."
          },
          "type": {
            "type": "string",
            "const": "incident"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Incident name.",
                "examples": [
                  "uptime homepage"
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to alert by phone call. When your plan doesn't include phone calls, the call is skipped and the incident timeline records it.",
                "examples": [
                  true
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to alert by SMS. When your plan doesn't include SMS, the SMS is skipped and the incident timeline records it.",
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to alert by e-mail.",
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to alert by push notification. When your plan doesn't include push notifications, the push notification is skipped and the incident timeline records it.",
                "examples": [
                  true
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical alert, a push notification that bypasses silent mode. A phone that has Critical alerts turned off and Push notifications on in the Better Stack app gets an ordinary push notification instead. When your plan doesn't include push notifications, the critical alert is skipped and the incident timeline records it.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "cause": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "What triggered the incident, such as `Status 500` or `Missed heartbeat`. For a manual incident, the cause is its summary. `null` when no cause was given or extracted.",
                "readOnly": true,
                "examples": [
                  "Status 404"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "Started",
                  "Acknowledged",
                  "Resolved",
                  "Validating",
                  "Unconfirmed"
                ],
                "description": "The incident's state. Listing returns only confirmed incidents.",
                "x-enum-descriptions": {
                  "Started": "The incident is open and nobody has acknowledged it yet.",
                  "Acknowledged": "Someone acknowledged the incident and it isn't resolved yet.",
                  "Resolved": "The incident is resolved.",
                  "Validating": "The check or alert has recovered and the recovery period runs.",
                  "Unconfirmed": "The failure is still being confirmed."
                },
                "readOnly": true,
                "examples": [
                  "Started"
                ]
              },
              "shared": {
                "type": "boolean",
                "description": "Whether this incident belongs to another team and was escalated here.",
                "readOnly": true,
                "examples": [
                  false
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The escalation policy for this incident. An escalation policy from another team returns a 404 error.",
                "examples": [
                  "123"
                ]
              },
              "incident_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Incident group this incident is in.",
                "readOnly": true,
                "examples": [
                  "98765"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The URL the monitor checked. `null` for incidents a monitor didn't raise.",
                "readOnly": true,
                "examples": [
                  "https://uptime.betterstack.com/"
                ]
              },
              "http_method": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The HTTP method of the monitor's check, such as `get`, `post` or `head`. `null` for incidents a monitor didn't raise.",
                "readOnly": true,
                "examples": [
                  "get"
                ]
              },
              "regions": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                },
                "description": "The regions the monitor was set to check from when the incident opened, any of `us`, `eu`, `as` and `au`.",
                "readOnly": true,
                "examples": [
                  [
                    "us",
                    "eu",
                    "as",
                    "au"
                  ]
                ]
              },
              "response_content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text of the response that triggered the incident, with HTML removed, when it's shorter than 500 characters. Longer bodies are linked in `response_url` instead.",
                "readOnly": true,
                "examples": [
                  "\n404 Not Found\n\nNot Found\nThe requested URL /fail was not found on this server.\n"
                ]
              },
              "response_options": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Details of the check that triggered the incident, as a JSON string, such as its timings, response code and response headers.",
                "readOnly": true,
                "examples": [
                  "{}"
                ]
              },
              "response_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A link to the full response body that triggered the incident, when its text is 500 characters or longer.",
                "readOnly": true,
                "examples": [
                  "https://example.com/incidents/25/response.html"
                ]
              },
              "screenshot_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL of the screenshot we captured when the check failed.",
                "readOnly": true,
                "examples": [
                  "https://example.com/incidents/25/screenshot.png"
                ]
              },
              "origin_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL to the third-party alert this incident originated from, if any.",
                "readOnly": true,
                "examples": [
                  "https://example.com/alerts/25"
                ]
              },
              "slack_channels": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Slack channels notified about the incident.",
                "readOnly": true,
                "examples": [
                  [
                    "inc-20-03-09-uptime-homepage-not-found"
                  ]
                ]
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the incident started. `null` while the incident is `Unconfirmed`.",
                "readOnly": true,
                "examples": [
                  "2020-03-09T17:37:56.662Z"
                ]
              },
              "acknowledged_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the incident was acknowledged.",
                "readOnly": true,
                "examples": [
                  "2020-03-09T17:42:10.000Z"
                ]
              },
              "acknowledged_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Full name of the team member, or the free-text attribution."
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "E-mail of the team member. `null` when no team member acknowledged it, such as for a free-text attribution, `API` or Slack."
                  }
                },
                "description": "Who acknowledged the incident. `null` while nobody has.",
                "readOnly": true,
                "examples": [
                  {
                    "name": "John Smith",
                    "email": "john@example.com"
                  }
                ]
              },
              "resolved_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the incident was resolved.",
                "readOnly": true,
                "examples": [
                  "2020-03-09T18:05:00.000Z"
                ]
              },
              "resolved_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Full name of the team member, or the free-text attribution."
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "E-mail of the team member. `null` when no team member resolved it, such as for a free-text attribution, `API` or Slack."
                  }
                },
                "description": "Who resolved the incident. `null` while nobody has.",
                "readOnly": true,
                "examples": [
                  {
                    "name": "John Smith",
                    "email": "john@example.com"
                  }
                ]
              },
              "domain_expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the domain that opened this incident expires. Returned only for an incident about an expiring domain.",
                "readOnly": true,
                "examples": [
                  "2026-12-31T00:00:00Z"
                ]
              },
              "ssl_certificate_expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the TLS certificate that opened this incident expires. Returned only for an incident about an expiring certificate.",
                "readOnly": true,
                "examples": [
                  "2026-12-31T00:00:00Z"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": true,
                "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name}`, plus `email` for a User. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). To write metadata, give each key one value or a list of values. A value can be a plain string, `{value}`, or a reference as `{type, item_id}`, `{type, name}` or `{type, email}`. An update replaces all of the incident's metadata, including keys Better Stack added such as `Origin`, and `{}` removes it all.",
                "examples": [
                  {
                    "Affected Services": [
                      {
                        "type": "String",
                        "value": "Homepage"
                      },
                      {
                        "type": "String",
                        "value": "Login"
                      }
                    ]
                  }
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns the incident, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the incident.",
                "readOnly": true,
                "examples": [
                  "Testing team"
                ]
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "monitor": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "required": [
                      "id",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "const": "monitor"
                      }
                    }
                  }
                },
                "description": "The monitor that raised the incident, for an incident a monitor raised."
              },
              "heartbeat": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "required": [
                      "id",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "const": "heartbeat"
                      }
                    }
                  }
                },
                "description": "The heartbeat that raised the incident, for an incident a heartbeat raised."
              }
            }
          }
        }
      },
      "IncidentComment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incident_comment's id."
          },
          "type": {
            "type": "string",
            "const": "incident_comment"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The comment's ID, the same as the top-level `id`.",
                "readOnly": true,
                "examples": [
                  "123456789"
                ]
              },
              "content": {
                "type": "string",
                "description": "The comment text in Markdown, up to 100,000 characters. A user mention you send can name the user by `u123` or their e-mail. Responses name each mentioned user by `u123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/).",
                "examples": [
                  "Rolled back the 14:05 deploy. Error rate is back to normal."
                ]
              },
              "user_email": {
                "type": "string",
                "description": "On create, the e-mail of a user in your organization to tag. The comment then starts with a mention of them. In a response, the e-mail of the user who posted the comment. Left out when the comment was posted with an API token.",
                "examples": [
                  "test@example.com"
                ]
              },
              "attachments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The attachment's ID."
                    },
                    "filename": {
                      "type": "string",
                      "description": "The file's name."
                    },
                    "content_type": {
                      "type": "string",
                      "description": "The file's MIME type."
                    },
                    "size": {
                      "type": "integer",
                      "format": "int64",
                      "description": "The file's size in bytes."
                    },
                    "url": {
                      "type": "string",
                      "description": "A link to the file. For a file attached through the API it expires after 15 minutes, so read the comment again for a fresh one."
                    }
                  }
                },
                "description": "The comment's files, oldest first.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "id": "124",
                      "filename": "checkout-errors.log",
                      "content_type": "text/plain",
                      "size": 35,
                      "url": "https://…"
                    }
                  ]
                ]
              },
              "user_id": {
                "type": "string",
                "description": "The user who posted the comment, as `u123`. Left out when the comment was posted with an API token.",
                "readOnly": true,
                "examples": [
                  "u123"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the comment was created.",
                "readOnly": true,
                "examples": [
                  "2025-06-03T12:10:28.357Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the comment was last updated.",
                "readOnly": true,
                "examples": [
                  "2025-06-03T12:10:28.357Z"
                ]
              }
            }
          }
        }
      },
      "IncidentCommentCreate": {
        "$ref": "#/components/schemas/IncidentCommentCreateAttributes"
      },
      "IncidentCommentCreateAttributes": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "The comment text in Markdown, up to 100,000 characters. A user mention you send can name the user by `u123` or their e-mail. Responses name each mentioned user by `u123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/).",
            "examples": [
              "Rolled back the 14:05 deploy. Error rate is back to normal."
            ]
          },
          "user_email": {
            "type": "string",
            "description": "On create, the e-mail of a user in your organization to tag. The comment then starts with a mention of them. In a response, the e-mail of the user who posted the comment. Left out when the comment was posted with an API token.",
            "examples": [
              "test@example.com"
            ]
          },
          "attachment_upload_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Files to attach, as upload IDs. Get one by creating a file upload and sending the file with its `upload_command`. Up to 10 files of up to 10 MB each per request, counting `attachment_urls`. An upload expires after a day. An upload can be attached only once, and only in the organization that created it.",
            "writeOnly": true,
            "examples": [
              [
                "123"
              ]
            ]
          },
          "attachment_urls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Files to attach, as public `https://` URLs to download the files from. Up to 10 files of up to 10 MB each per request, counting `attachment_upload_ids`.",
            "writeOnly": true,
            "examples": [
              [
                "https://example.com/reports/trace.txt"
              ]
            ]
          }
        },
        "required": [
          "content"
        ]
      },
      "IncidentCommentDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentComment"
          }
        }
      },
      "IncidentCommentList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentComment"
            }
          }
        }
      },
      "IncidentCommentUpdate": {
        "$ref": "#/components/schemas/IncidentCommentUpdateAttributes"
      },
      "IncidentCommentUpdateAttributes": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "The comment text in Markdown, up to 100,000 characters. A user mention you send can name the user by `u123` or their e-mail. Responses name each mentioned user by `u123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/).",
            "examples": [
              "Rolled back the 14:05 deploy. Error rate is back to normal."
            ]
          },
          "attachment_upload_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Files to attach, as upload IDs. Get one by creating a file upload and sending the file with its `upload_command`. Up to 10 files of up to 10 MB each per request, counting `attachment_urls`. On update, the files are added to the comment's existing files. An upload expires after a day. An upload can be attached only once, and only in the organization that created it.",
            "writeOnly": true,
            "examples": [
              [
                "123"
              ]
            ]
          },
          "attachment_urls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Files to attach, as public `https://` URLs to download the files from. Up to 10 files of up to 10 MB each per request, counting `attachment_upload_ids`. On update, the files are added to the comment's existing files.",
            "writeOnly": true,
            "examples": [
              [
                "https://example.com/reports/trace.txt"
              ]
            ]
          }
        }
      },
      "IncidentCreate": {
        "$ref": "#/components/schemas/IncidentCreateAttributes"
      },
      "IncidentCreateAttributes": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string",
            "description": "One-line summary of what's wrong. Responses return it as `cause`.",
            "writeOnly": true,
            "examples": [
              "Test incident"
            ]
          },
          "description": {
            "type": "string",
            "description": "Longer description, posted as the incident's first comment.",
            "writeOnly": true,
            "examples": [
              "No need to worry, everything is fine, this is just testing the great Incidents API."
            ]
          },
          "requester_email": {
            "type": "string",
            "description": "E-mail of the person reporting the incident. Defaults to the user the OAuth token belongs to. Required with an API token.",
            "writeOnly": true,
            "examples": [
              "my-great-email@example.com"
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before alerting the whole team. Any value other than a whole number of 0 or more means the whole team isn't alerted.",
            "writeOnly": true,
            "examples": [
              180
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Incident name.",
            "examples": [
              "uptime homepage"
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to alert by phone call. When your plan doesn't include phone calls, the call is skipped and the incident timeline records it.",
            "examples": [
              true
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to alert by SMS. When your plan doesn't include SMS, the SMS is skipped and the incident timeline records it.",
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to alert by e-mail.",
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to alert by push notification. When your plan doesn't include push notifications, the push notification is skipped and the incident timeline records it.",
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical alert, a push notification that bypasses silent mode. A phone that has Critical alerts turned off and Push notifications on in the Better Stack app gets an ordinary push notification instead. When your plan doesn't include push notifications, the critical alert is skipped and the incident timeline records it.",
            "default": false,
            "examples": [
              false
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The escalation policy for this incident. An escalation policy from another team returns a 404 error. Can only be set when you open the incident.",
            "examples": [
              "123"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name}`, plus `email` for a User. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). To write metadata, give each key one value or a list of values. A value can be a plain string, `{value}`, or a reference as `{type, item_id}`, `{type, name}` or `{type, email}`. An update replaces all of the incident's metadata, including keys Better Stack added such as `Origin`, and `{}` removes it all.",
            "examples": [
              {
                "Affected Services": [
                  {
                    "type": "String",
                    "value": "Homepage"
                  },
                  {
                    "type": "String",
                    "value": "Login"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "summary"
        ]
      },
      "IncidentDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Incident"
          }
        }
      },
      "IncidentGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incident_group's id."
          },
          "type": {
            "type": "string",
            "const": "incident_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The group's name, up to 100 characters. `null` when it has none.",
                "examples": [
                  "Checkout 502s"
                ]
              },
              "incidents_count": {
                "type": "integer",
                "format": "int64",
                "description": "How many incidents the group holds. Incidents still being confirmed aren't counted.",
                "readOnly": true,
                "examples": [
                  3
                ]
              },
              "started_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group's earliest incident started. Removing that incident from the group doesn't change it.",
                "readOnly": true,
                "examples": [
                  "2026-11-21T22:04:11.000Z"
                ]
              },
              "acknowledged_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When someone acknowledged the group. New incidents that join it later are acknowledged too. `null` while nobody has.",
                "readOnly": true,
                "examples": [
                  "2026-11-21T22:09:30.000Z"
                ]
              },
              "acknowledged_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Full name of the team member, or the text credited instead of a team member."
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "E-mail of the team member. `null` when the group was credited to something other than a team member, such as `API`, Slack or a custom text."
                  }
                },
                "description": "Who acknowledged the group. `null` while nobody has.",
                "readOnly": true,
                "examples": [
                  {
                    "name": "John Smith",
                    "email": "john@example.com"
                  }
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns the group, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the group.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentGroup"
          }
        }
      },
      "IncidentGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationInline:incidentGroup#list"
          }
        }
      },
      "IncidentGroupUpdate": {
        "$ref": "#/components/schemas/IncidentGroupUpdateAttributes"
      },
      "IncidentGroupUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The group's name, up to 100 characters. `null` when it has none. Send `null` or an empty string to remove it.",
            "examples": [
              "Checkout 502s"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "IncidentGroupingChange": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incident_grouping_change's id."
          },
          "type": {
            "type": "string",
            "const": "incident_grouping_change"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "grouped",
                  "ungrouped"
                ],
                "description": "What the person did to the group.",
                "x-enum-descriptions": {
                  "grouped": "The person put incidents into the group.",
                  "ungrouped": "The person removed incidents from the group."
                },
                "readOnly": true,
                "examples": [
                  "ungrouped"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the person made the change.",
                "readOnly": true,
                "examples": [
                  "2026-11-20T09:12:40Z"
                ]
              },
              "user": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The person's user ID, such as `u123`."
                  },
                  "name": {
                    "type": "string",
                    "description": "The person's full name."
                  },
                  "email": {
                    "type": "string",
                    "description": "The person's e-mail."
                  }
                },
                "description": "Who made the change. `null` once the person's account is removed.",
                "readOnly": true,
                "examples": [
                  {
                    "id": "u4471",
                    "name": "Ana Novak",
                    "email": "ana@example.com"
                  }
                ]
              },
              "incident_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the incident group the incidents joined or left. The group may no longer exist.",
                "readOnly": true,
                "examples": [
                  "98765"
                ]
              },
              "incident_group_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The group's name. `null` once the group is gone, or when it has no name.",
                "readOnly": true,
                "examples": [
                  "Checkout 502s"
                ]
              },
              "incidents": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The incident's ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "The incident's name."
                    },
                    "cause": {
                      "type": "string",
                      "description": "The incident's cause as plain text, cut to 200 characters."
                    },
                    "started_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the incident started."
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The incident's metadata, each key with its text values."
                    }
                  }
                },
                "description": "Up to 5 of the incidents the person moved. Incidents removed since aren't listed.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "id": "103",
                      "name": "api.example.com",
                      "cause": "Status 502",
                      "started_at": "2026-11-20T08:55:02Z",
                      "metadata": {}
                    }
                  ]
                ]
              },
              "incidents_count": {
                "type": "integer",
                "format": "int64",
                "description": "How many incidents the person moved.",
                "readOnly": true,
                "examples": [
                  1
                ]
              },
              "group_incidents": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The incident's ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "The incident's name."
                    },
                    "cause": {
                      "type": "string",
                      "description": "The incident's cause as plain text, cut to 200 characters."
                    },
                    "started_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the incident started."
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The incident's metadata, each key with its text values."
                    }
                  }
                },
                "description": "Up to 5 of the group's other incidents, the ones the moved incidents joined or were removed from, in the same shape as `incidents`.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "id": "101",
                      "name": "api.example.com",
                      "cause": "Status 502",
                      "started_at": "2026-11-20T08:41:17Z",
                      "metadata": {}
                    }
                  ]
                ]
              },
              "group_incidents_count": {
                "type": "integer",
                "format": "int64",
                "description": "How many other incidents the group held at the time of the change.",
                "readOnly": true,
                "examples": [
                  2
                ]
              }
            }
          }
        }
      },
      "IncidentGroupingChangeList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentGroupingChange"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationInline:incidentGroupingChange#list"
          }
        }
      },
      "IncidentList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Incident"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationInline:incident#list"
          }
        }
      },
      "IncidentUpdate": {
        "$ref": "#/components/schemas/IncidentUpdateAttributes"
      },
      "IncidentUpdateAttributes": {
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name}`, plus `email` for a User. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). To write metadata, give each key one value or a list of values. A value can be a plain string, `{value}`, or a reference as `{type, item_id}`, `{type, name}` or `{type, email}`. An update replaces all of the incident's metadata, including keys Better Stack added such as `Origin`, and `{}` removes it all.",
            "examples": [
              {
                "Affected Services": [
                  {
                    "type": "String",
                    "value": "Homepage"
                  },
                  {
                    "type": "String",
                    "value": "Login"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "metadata"
        ]
      },
      "IncidentsAmazonSnsIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_amazon_sns_integration's id."
          },
          "type": {
            "type": "string",
            "const": "amazon_sns_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "topic_arn": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ARN of the subscribed Amazon SNS topic, or `null` until AWS confirms the subscription.",
                "readOnly": true,
                "examples": [
                  "arn:aws:sns:eu-west-1:123456789012:backend-alerts"
                ]
              },
              "subscription_state": {
                "type": "string",
                "enum": [
                  "awaiting",
                  "active"
                ],
                "description": "Whether AWS has confirmed the SNS subscription.",
                "x-enum-descriptions": {
                  "awaiting": "AWS hasn't confirmed the subscription yet.",
                  "active": "AWS has confirmed the subscription."
                },
                "readOnly": true,
                "examples": [
                  "active"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The name of the Amazon SNS integration shown in the dashboard.",
                "examples": [
                  "Backend alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
                "examples": [
                  "73"
                ]
              },
              "url": {
                "type": "string",
                "description": "The endpoint to subscribe your Amazon SNS topic to. Leave **Enable raw message delivery** off on the subscription, or every notification is rejected with `400`.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/incoming-webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": "integer",
                "format": "int64",
                "enum": [
                  0,
                  60,
                  180,
                  300,
                  900,
                  1800,
                  3600,
                  7200
                ],
                "description": "How long to wait, in seconds, after a matching resolving notification before the incident resolves. Applies only while `resolved_rule_type` isn't `unused`.",
                "default": 0,
                "examples": [
                  0
                ]
              },
              "started_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When notifications open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the notification goes to that incident instead of opening a new one.",
                "x-enum-descriptions": {
                  "unused": "Every notification that doesn't acknowledge or resolve an incident opens one.",
                  "any": "A notification opens an incident when at least one of `started_rules` matches.",
                  "all": "A notification opens an incident when all of `started_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "acknowledged_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When notifications acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
                "x-enum-descriptions": {
                  "unused": "Notifications never acknowledge an incident.",
                  "any": "A notification acknowledges an incident when at least one of `acknowledged_rules` matches.",
                  "all": "A notification acknowledges an incident when all of `acknowledged_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "resolved_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When notifications resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Resolving is checked first, then acknowledging, then opening, and a notification that matches no open incident can still open one.",
                "x-enum-descriptions": {
                  "unused": "Notifications never resolve an incident.",
                  "any": "A notification resolves an incident when at least one of `resolved_rules` matches.",
                  "all": "A notification resolves an incident when all of `resolved_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "cause_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                    "x-enum-descriptions": {
                      "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                      "header": "A header of AWS's own HTTPS request, which never contains your message.",
                      "body": "The message your publisher sent, as plain text.",
                      "json": "A value in the message your publisher sent, read as JSON.",
                      "xml": "An element in the message your publisher sent, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the incident cause from the notification that starts an incident. Defaults to the whole message.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "cause",
                    "field_target": "body",
                    "match_type": "match_everything",
                    "target_field": null,
                    "content": null,
                    "content_before": null,
                    "content_after": null
                  }
                ]
              },
              "title_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                    "x-enum-descriptions": {
                      "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                      "header": "A header of AWS's own HTTPS request, which never contains your message.",
                      "body": "The message your publisher sent, as plain text.",
                      "json": "A value in the message your publisher sent, read as JSON.",
                      "xml": "An element in the message your publisher sent, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract a custom incident title from the notification that starts an incident, with the same keys as `cause_field`. By default, the title is the whole SNS `Subject`, with `field_target` set to `sns_envelope`, `target_field` to `Subject` and `match_type` to `match_everything`. `null` extracts no title.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "title",
                    "field_target": "sns_envelope",
                    "match_type": "match_everything",
                    "target_field": "Subject",
                    "content": null,
                    "content_before": null,
                    "content_after": null
                  }
                ]
              },
              "started_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                    "x-enum-descriptions": {
                      "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                      "header": "A header of AWS's own HTTPS request, which never contains your message.",
                      "body": "The message your publisher sent, as plain text.",
                      "json": "A value in the message your publisher sent, read as JSON.",
                      "xml": "An element in the message your publisher sent, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from the notification that starts an incident, with the same keys as `cause_field`. Later notifications acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "alert_id",
                    "field_target": "json",
                    "match_type": "match_everything",
                    "target_field": "alert.id",
                    "content": null,
                    "content_before": null,
                    "content_after": null
                  }
                ]
              },
              "acknowledged_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                    "x-enum-descriptions": {
                      "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                      "header": "A header of AWS's own HTTPS request, which never contains your message.",
                      "body": "The message your publisher sent, as plain text.",
                      "json": "A value in the message your publisher sent, read as JSON.",
                      "xml": "An element in the message your publisher sent, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from a notification that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "alert_id",
                    "field_target": "json",
                    "match_type": "match_everything",
                    "target_field": "alert.id",
                    "content": null,
                    "content_before": null,
                    "content_after": null
                  }
                ]
              },
              "resolved_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                    "x-enum-descriptions": {
                      "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                      "header": "A header of AWS's own HTTPS request, which never contains your message.",
                      "body": "The message your publisher sent, as plain text.",
                      "json": "A value in the message your publisher sent, read as JSON.",
                      "xml": "An element in the message your publisher sent, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from a notification that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "alert_id",
                    "field_target": "json",
                    "match_type": "match_everything",
                    "target_field": "alert.id",
                    "content": null,
                    "content_before": null,
                    "content_after": null
                  }
                ]
              },
              "other_started_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                      "x-enum-descriptions": {
                        "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                        "header": "A header of AWS's own HTTPS request, which never contains your message.",
                        "body": "The message your publisher sent, as plain text.",
                        "json": "A value in the message your publisher sent, read as JSON.",
                        "xml": "An element in the message your publisher sent, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from the notification that starts an incident, saved as incident metadata.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "special_type": null,
                      "field_target": "json",
                      "match_type": "match_everything",
                      "target_field": "alert.service",
                      "content": null,
                      "content_before": null,
                      "content_after": null
                    }
                  ]
                ]
              },
              "other_acknowledged_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                      "x-enum-descriptions": {
                        "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                        "header": "A header of AWS's own HTTPS request, which never contains your message.",
                        "body": "The message your publisher sent, as plain text.",
                        "json": "A value in the message your publisher sent, read as JSON.",
                        "xml": "An element in the message your publisher sent, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from a notification that acknowledges an incident.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "special_type": null,
                      "field_target": "json",
                      "match_type": "match_everything",
                      "target_field": "alert.service",
                      "content": null,
                      "content_before": null,
                      "content_after": null
                    }
                  ]
                ]
              },
              "other_resolved_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                      "x-enum-descriptions": {
                        "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                        "header": "A header of AWS's own HTTPS request, which never contains your message.",
                        "body": "The message your publisher sent, as plain text.",
                        "json": "A value in the message your publisher sent, read as JSON.",
                        "xml": "An element in the message your publisher sent, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from a notification that resolves an incident.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "special_type": null,
                      "field_target": "json",
                      "match_type": "match_everything",
                      "target_field": "alert.service",
                      "content": null,
                      "content_before": null,
                      "content_after": null
                    }
                  ]
                ]
              },
              "started_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                      "x-enum-descriptions": {
                        "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                        "header": "A header of AWS's own HTTPS request, which never contains your message.",
                        "body": "The message your publisher sent, as plain text.",
                        "json": "A value in the message your publisher sent, read as JSON.",
                        "xml": "An element in the message your publisher sent, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "json",
                      "target_field": "alert.status",
                      "match_type": "equals",
                      "content": "firing"
                    }
                  ]
                ]
              },
              "acknowledged_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                      "x-enum-descriptions": {
                        "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                        "header": "A header of AWS's own HTTPS request, which never contains your message.",
                        "body": "The message your publisher sent, as plain text.",
                        "json": "A value in the message your publisher sent, read as JSON.",
                        "xml": "An element in the message your publisher sent, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "json",
                      "target_field": "alert.status",
                      "match_type": "equals",
                      "content": "acknowledged"
                    }
                  ]
                ]
              },
              "resolved_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                      "x-enum-descriptions": {
                        "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                        "header": "A header of AWS's own HTTPS request, which never contains your message.",
                        "body": "The message your publisher sent, as plain text.",
                        "json": "A value in the message your publisher sent, read as JSON.",
                        "xml": "An element in the message your publisher sent, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "json",
                      "target_field": "alert.status",
                      "match_type": "equals",
                      "content": "resolved"
                    }
                  ]
                ]
              },
              "sample_query_string": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The query string of the sample notification saved in the dashboard to preview extraction.",
                "readOnly": true,
                "examples": [
                  "env=production"
                ]
              },
              "sample_headers": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The headers of the sample notification saved in the dashboard to preview extraction.",
                "readOnly": true,
                "examples": [
                  "x-amz-sns-message-type: Notification\nContent-Type: text/plain; charset=UTF-8"
                ]
              },
              "sample_body": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The body of the sample SNS message saved in the dashboard to preview extraction.",
                "readOnly": true,
                "examples": [
                  "{\"alert\":{\"id\":\"a1b2c3\",\"title\":\"High CPU on web-1\",\"status\":\"firing\",\"service\":\"Checkout\"}}"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the integration was created.",
                "readOnly": true,
                "examples": [
                  "2026-09-09T10:06:12.418Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the integration was last updated.",
                "readOnly": true,
                "examples": [
                  "2026-09-09T10:06:31.902Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  }
                },
                "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat.",
                "examples": [
                  {
                    "Service": [
                      {
                        "type": "String",
                        "value": "Checkout"
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "IncidentsAmazonSnsIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationCreateAttributes"
      },
      "IncidentsAmazonSnsIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the Amazon SNS integration shown in the dashboard.",
            "examples": [
              "Backend alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait, in seconds, after a matching resolving notification before the incident resolves. Applies only while `resolved_rule_type` isn't `unused`.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the notification goes to that incident instead of opening a new one.",
            "x-enum-descriptions": {
              "unused": "Every notification that doesn't acknowledge or resolve an incident opens one.",
              "any": "A notification opens an incident when at least one of `started_rules` matches.",
              "all": "A notification opens an incident when all of `started_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
            "x-enum-descriptions": {
              "unused": "Notifications never acknowledge an incident.",
              "any": "A notification acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "A notification acknowledges an incident when all of `acknowledged_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Resolving is checked first, then acknowledging, then opening, and a notification that matches no open incident can still open one.",
            "x-enum-descriptions": {
              "unused": "Notifications never resolve an incident.",
              "any": "A notification resolves an incident when at least one of `resolved_rules` matches.",
              "all": "A notification resolves an incident when all of `resolved_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "cause_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the notification that starts an incident. Defaults to the whole message.",
            "examples": [
              {
                "name": null,
                "special_type": "cause",
                "field_target": "body",
                "match_type": "match_everything",
                "target_field": null,
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "title_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract a custom incident title from the notification that starts an incident, with the same keys as `cause_field`. By default, the title is the whole SNS `Subject`, with `field_target` set to `sns_envelope`, `target_field` to `Subject` and `match_type` to `match_everything`. `null` extracts no title.",
            "examples": [
              {
                "name": null,
                "special_type": "title",
                "field_target": "sns_envelope",
                "match_type": "match_everything",
                "target_field": "Subject",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "started_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the notification that starts an incident, with the same keys as `cause_field`. Later notifications acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "json",
                "match_type": "match_everything",
                "target_field": "alert.id",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "acknowledged_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a notification that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "json",
                "match_type": "match_everything",
                "target_field": "alert.id",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "resolved_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a notification that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "json",
                "match_type": "match_everything",
                "target_field": "alert.id",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "other_started_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the notification that starts an incident, saved as incident metadata.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "json",
                  "match_type": "match_everything",
                  "target_field": "alert.service",
                  "content": null,
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_acknowledged_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a notification that acknowledges an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "json",
                  "match_type": "match_everything",
                  "target_field": "alert.service",
                  "content": null,
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_resolved_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a notification that resolves an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "json",
                  "match_type": "match_everything",
                  "target_field": "alert.service",
                  "content": null,
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "firing"
                }
              ]
            ]
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "acknowledged"
                }
              ]
            ]
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "resolved"
                }
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving `metadata` out keeps it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "IncidentsAmazonSnsIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsAmazonSnsIntegration"
          }
        }
      },
      "IncidentsAmazonSnsIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsAmazonSnsIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsAmazonSnsIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsAmazonSnsIntegrationUpdateAttributes"
      },
      "IncidentsAmazonSnsIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the Amazon SNS integration shown in the dashboard.",
            "examples": [
              "Backend alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait, in seconds, after a matching resolving notification before the incident resolves. Applies only while `resolved_rule_type` isn't `unused`.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the notification goes to that incident instead of opening a new one.",
            "x-enum-descriptions": {
              "unused": "Every notification that doesn't acknowledge or resolve an incident opens one.",
              "any": "A notification opens an incident when at least one of `started_rules` matches.",
              "all": "A notification opens an incident when all of `started_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
            "x-enum-descriptions": {
              "unused": "Notifications never acknowledge an incident.",
              "any": "A notification acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "A notification acknowledges an incident when all of `acknowledged_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When notifications resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Resolving is checked first, then acknowledging, then opening, and a notification that matches no open incident can still open one.",
            "x-enum-descriptions": {
              "unused": "Notifications never resolve an incident.",
              "any": "A notification resolves an incident when at least one of `resolved_rules` matches.",
              "all": "A notification resolves an incident when all of `resolved_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "cause_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the notification that starts an incident. Defaults to the whole message.",
            "examples": [
              {
                "name": null,
                "special_type": "cause",
                "field_target": "body",
                "match_type": "match_everything",
                "target_field": null,
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "title_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract a custom incident title from the notification that starts an incident, with the same keys as `cause_field`. By default, the title is the whole SNS `Subject`, with `field_target` set to `sns_envelope`, `target_field` to `Subject` and `match_type` to `match_everything`. `null` extracts no title.",
            "examples": [
              {
                "name": null,
                "special_type": "title",
                "field_target": "sns_envelope",
                "match_type": "match_everything",
                "target_field": "Subject",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "started_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the notification that starts an incident, with the same keys as `cause_field`. Later notifications acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "json",
                "match_type": "match_everything",
                "target_field": "alert.id",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "acknowledged_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a notification that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "json",
                "match_type": "match_everything",
                "target_field": "alert.id",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "resolved_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                "x-enum-descriptions": {
                  "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                  "header": "A header of AWS's own HTTPS request, which never contains your message.",
                  "body": "The message your publisher sent, as plain text.",
                  "json": "A value in the message your publisher sent, read as JSON.",
                  "xml": "An element in the message your publisher sent, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a notification that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "json",
                "match_type": "match_everything",
                "target_field": "alert.id",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "other_started_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the notification that starts an incident, saved as incident metadata.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "json",
                  "match_type": "match_everything",
                  "target_field": "alert.service",
                  "content": null,
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_acknowledged_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a notification that acknowledges an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "json",
                  "match_type": "match_everything",
                  "target_field": "alert.service",
                  "content": null,
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_resolved_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later notifications to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later notifications to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification to read.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a notification that resolves an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "json",
                  "match_type": "match_everything",
                  "target_field": "alert.service",
                  "content": null,
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "firing"
                }
              ]
            ]
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "acknowledged"
                }
              ]
            ]
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Which part of the notification the rule checks.\n\n- `query_string`: The query string of AWS's own HTTPS request, which never contains your message.\n- `header`: A header of AWS's own HTTPS request, which never contains your message.\n- `body`: The message your publisher sent, as plain text.\n- `json`: A value in the message your publisher sent, read as JSON.\n- `xml`: An element in the message your publisher sent, read as XML.\n- `sns_envelope`: A value of the SNS envelope, such as its `Subject`.",
                  "x-enum-descriptions": {
                    "query_string": "The query string of AWS's own HTTPS request, which never contains your message.",
                    "header": "A header of AWS's own HTTPS request, which never contains your message.",
                    "body": "The message your publisher sent, as plain text.",
                    "json": "A value in the message your publisher sent, read as JSON.",
                    "xml": "An element in the message your publisher sent, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, such as its `Subject`."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, a CSS selector for `xml`, or `TopicArn`, `MessageId` or `Subject` for `sns_envelope`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "resolved"
                }
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving `metadata` out keeps it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "IncidentsAwsCloudWatchIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_aws_cloudwatch_integration's id."
          },
          "type": {
            "type": "string",
            "const": "aws_cloudwatch_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "AWS CloudWatch alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into AWS CloudWatch. Alerts AWS CloudWatch sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/aws-cloudwatch/webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as AWS CloudWatch reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsAwsCloudWatchIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationCreateAttributes"
      },
      "IncidentsAwsCloudWatchIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "AWS CloudWatch alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as AWS CloudWatch reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsAwsCloudWatchIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegration"
          }
        }
      },
      "IncidentsAwsCloudWatchIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsAwsCloudWatchIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsAwsCloudWatchIntegrationUpdateAttributes"
      },
      "IncidentsAwsCloudWatchIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "AWS CloudWatch alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as AWS CloudWatch reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsAzureIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_azure_integration's id."
          },
          "type": {
            "type": "string",
            "const": "azure_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "Azure alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into Azure. Alerts Azure sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/azure/webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Azure reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsAzureIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsAzureIntegrationCreateAttributes"
      },
      "IncidentsAzureIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Azure alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Azure reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsAzureIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsAzureIntegration"
          }
        }
      },
      "IncidentsAzureIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsAzureIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsAzureIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsAzureIntegrationUpdateAttributes"
      },
      "IncidentsAzureIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Azure alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Azure reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsDatadogIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_datadog_integration's id."
          },
          "type": {
            "type": "string",
            "const": "datadog_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "Datadog alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into Datadog. Alerts Datadog sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/datadog/webhook/token-placeholder"
                ]
              },
              "alerting_rule": {
                "type": "string",
                "enum": [
                  "alert",
                  "alert_and_warn"
                ],
                "description": "Which Datadog alert levels open incidents.",
                "x-enum-descriptions": {
                  "alert": "Opens an incident for alerts only.",
                  "alert_and_warn": "Opens an incident for alerts and warnings."
                },
                "default": "alert",
                "examples": [
                  "alert"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Datadog reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsDatadogIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsDatadogIntegrationCreateAttributes"
      },
      "IncidentsDatadogIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Datadog alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "alerting_rule": {
            "type": "string",
            "enum": [
              "alert",
              "alert_and_warn"
            ],
            "description": "Which Datadog alert levels open incidents.",
            "x-enum-descriptions": {
              "alert": "Opens an incident for alerts only.",
              "alert_and_warn": "Opens an incident for alerts and warnings."
            },
            "default": "alert",
            "examples": [
              "alert"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Datadog reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsDatadogIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsDatadogIntegration"
          }
        }
      },
      "IncidentsDatadogIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsDatadogIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsDatadogIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsDatadogIntegrationUpdateAttributes"
      },
      "IncidentsDatadogIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Datadog alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "alerting_rule": {
            "type": "string",
            "enum": [
              "alert",
              "alert_and_warn"
            ],
            "description": "Which Datadog alert levels open incidents.",
            "x-enum-descriptions": {
              "alert": "Opens an incident for alerts only.",
              "alert_and_warn": "Opens an incident for alerts and warnings."
            },
            "default": "alert",
            "examples": [
              "alert"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Datadog reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsElasticIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_elastic_integration's id."
          },
          "type": {
            "type": "string",
            "const": "elastic_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "Elastic alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into Elastic. Alerts Elastic sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/elastic/webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Elastic reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsElasticIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsElasticIntegrationCreateAttributes"
      },
      "IncidentsElasticIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Elastic alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Elastic reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsElasticIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsElasticIntegration"
          }
        }
      },
      "IncidentsElasticIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsElasticIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsElasticIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsElasticIntegrationUpdateAttributes"
      },
      "IncidentsElasticIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Elastic alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Elastic reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsError": {
        "type": "object",
        "description": "An object whose `errors` key holds the message.",
        "properties": {
          "errors": {
            "type": [
              "string",
              "object",
              "array"
            ],
            "description": "Human-readable failure message."
          },
          "required_attributes": {
            "type": [
              "string",
              "object",
              "array"
            ],
            "description": "Required attributes."
          },
          "invalid_attributes": {
            "type": [
              "string",
              "object",
              "array"
            ],
            "description": "Invalid attributes."
          },
          "allowed_values": {
            "type": [
              "string",
              "object",
              "array"
            ],
            "description": "Allowed values."
          },
          "unauthorized_attributes": {
            "type": [
              "string",
              "object",
              "array"
            ],
            "description": "Unauthorized attributes."
          }
        }
      },
      "IncidentsGoogleMonitoringIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_google_monitoring_integration's id."
          },
          "type": {
            "type": "string",
            "const": "google_monitoring_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "Google Monitoring alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into Google Monitoring. Alerts Google Monitoring sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/google-monitoring/webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Google Monitoring reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsGoogleMonitoringIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationCreateAttributes"
      },
      "IncidentsGoogleMonitoringIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Google Monitoring alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Google Monitoring reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsGoogleMonitoringIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegration"
          }
        }
      },
      "IncidentsGoogleMonitoringIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsGoogleMonitoringIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsGoogleMonitoringIntegrationUpdateAttributes"
      },
      "IncidentsGoogleMonitoringIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Google Monitoring alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Google Monitoring reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsGrafanaIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_grafana_integration's id."
          },
          "type": {
            "type": "string",
            "const": "grafana_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "Grafana alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into Grafana. Alerts Grafana sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/grafana/webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Grafana reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsGrafanaIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsGrafanaIntegrationCreateAttributes"
      },
      "IncidentsGrafanaIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Grafana alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Grafana reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsGrafanaIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsGrafanaIntegration"
          }
        }
      },
      "IncidentsGrafanaIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsGrafanaIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsGrafanaIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsGrafanaIntegrationUpdateAttributes"
      },
      "IncidentsGrafanaIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Grafana alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Grafana reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsIncomingEmailIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_incoming_email_integration's id."
          },
          "type": {
            "type": "string",
            "const": "email_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The name of the e-mail integration shown in the dashboard.",
                "examples": [
                  "Backend e-mail alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
                "examples": [
                  "73"
                ]
              },
              "email_address": {
                "type": "string",
                "description": "The address to forward your e-mails to. E-mails sent to it open incidents.",
                "readOnly": true,
                "examples": [
                  "pdqshpdxj3@incidents.uptime.betterstack.com"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": "integer",
                "format": "int64",
                "enum": [
                  0,
                  60,
                  180,
                  300,
                  900,
                  1800,
                  3600,
                  7200
                ],
                "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while `resolved_rule_type` isn't `unused`.",
                "default": 0,
                "examples": [
                  0
                ]
              },
              "started_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When e-mails open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one.",
                "x-enum-descriptions": {
                  "unused": "Every e-mail that doesn't acknowledge or resolve an incident opens one.",
                  "any": "An e-mail opens an incident when at least one of `started_rules` matches.",
                  "all": "An e-mail opens an incident when all of `started_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "acknowledged_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When e-mails acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
                "x-enum-descriptions": {
                  "unused": "E-mails never acknowledge an incident.",
                  "any": "An e-mail acknowledges an incident when at least one of `acknowledged_rules` matches.",
                  "all": "An e-mail acknowledges an incident when all of `acknowledged_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "resolved_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When e-mails resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one.",
                "x-enum-descriptions": {
                  "unused": "E-mails never resolve an incident.",
                  "any": "An e-mail resolves an incident when at least one of `resolved_rules` matches.",
                  "all": "An e-mail resolves an incident when all of `resolved_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "cause_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "from_email",
                      "subject",
                      "body"
                    ],
                    "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                    "x-enum-descriptions": {
                      "from_email": "The sender's e-mail address.",
                      "subject": "The e-mail's subject.",
                      "body": "The e-mail's body."
                    }
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "cause",
                    "field_target": "subject",
                    "match_type": "match_everything",
                    "content": null,
                    "content_before": null,
                    "content_after": null
                  }
                ]
              },
              "title_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "from_email",
                      "subject",
                      "body"
                    ],
                    "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                    "x-enum-descriptions": {
                      "from_email": "The sender's e-mail address.",
                      "subject": "The e-mail's subject.",
                      "body": "The e-mail's body."
                    }
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "Field that extracts the incident title, with the same keys as `cause_field`.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "title",
                    "field_target": "subject",
                    "match_type": "match_after",
                    "content": "Alert: ",
                    "content_before": null,
                    "content_after": null
                  }
                ]
              },
              "started_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "from_email",
                      "subject",
                      "body"
                    ],
                    "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                    "x-enum-descriptions": {
                      "from_email": "The sender's e-mail address.",
                      "subject": "The e-mail's subject.",
                      "body": "The e-mail's body."
                    }
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as `cause_field`. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "alert_id",
                    "field_target": "body",
                    "match_type": "match_between",
                    "content": null,
                    "content_before": "Alert ID: ",
                    "content_after": "\n"
                  }
                ]
              },
              "acknowledged_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "from_email",
                      "subject",
                      "body"
                    ],
                    "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                    "x-enum-descriptions": {
                      "from_email": "The sender's e-mail address.",
                      "subject": "The e-mail's subject.",
                      "body": "The e-mail's body."
                    }
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "alert_id",
                    "field_target": "body",
                    "match_type": "match_between",
                    "content": null,
                    "content_before": "Alert ID: ",
                    "content_after": "\n"
                  }
                ]
              },
              "resolved_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "from_email",
                      "subject",
                      "body"
                    ],
                    "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                    "x-enum-descriptions": {
                      "from_email": "The sender's e-mail address.",
                      "subject": "The e-mail's subject.",
                      "body": "The e-mail's body."
                    }
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "name": null,
                    "special_type": "alert_id",
                    "field_target": "body",
                    "match_type": "match_between",
                    "content": null,
                    "content_before": "Alert ID: ",
                    "content_after": "\n"
                  }
                ]
              },
              "other_started_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "from_email",
                        "subject",
                        "body"
                      ],
                      "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                      "x-enum-descriptions": {
                        "from_email": "The sender's e-mail address.",
                        "subject": "The e-mail's subject.",
                        "body": "The e-mail's body."
                      }
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "special_type": null,
                      "field_target": "body",
                      "match_type": "match_regex",
                      "content": "Service: (\\w+)",
                      "content_before": null,
                      "content_after": null
                    }
                  ]
                ]
              },
              "other_acknowledged_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "from_email",
                        "subject",
                        "body"
                      ],
                      "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                      "x-enum-descriptions": {
                        "from_email": "The sender's e-mail address.",
                        "subject": "The e-mail's subject.",
                        "body": "The e-mail's body."
                      }
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from an e-mail that acknowledges an incident.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "special_type": null,
                      "field_target": "body",
                      "match_type": "match_regex",
                      "content": "Service: (\\w+)",
                      "content_before": null,
                      "content_after": null
                    }
                  ]
                ]
              },
              "other_resolved_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "from_email",
                        "subject",
                        "body"
                      ],
                      "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                      "x-enum-descriptions": {
                        "from_email": "The sender's e-mail address.",
                        "subject": "The e-mail's subject.",
                        "body": "The e-mail's body."
                      }
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from an e-mail that resolves an incident.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "special_type": null,
                      "field_target": "body",
                      "match_type": "match_regex",
                      "content": "Service: (\\w+)",
                      "content_before": null,
                      "content_after": null
                    }
                  ]
                ]
              },
              "started_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "from_email",
                        "subject",
                        "body"
                      ],
                      "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                      "x-enum-descriptions": {
                        "from_email": "The sender's e-mail address.",
                        "subject": "The e-mail's subject.",
                        "body": "The e-mail's body."
                      }
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "subject",
                      "match_type": "contains",
                      "content": "[FIRING]"
                    }
                  ]
                ]
              },
              "acknowledged_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "from_email",
                        "subject",
                        "body"
                      ],
                      "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                      "x-enum-descriptions": {
                        "from_email": "The sender's e-mail address.",
                        "subject": "The e-mail's subject.",
                        "body": "The e-mail's body."
                      }
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "subject",
                      "match_type": "contains",
                      "content": "[ACKNOWLEDGED]"
                    }
                  ]
                ]
              },
              "resolved_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "from_email",
                        "subject",
                        "body"
                      ],
                      "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                      "x-enum-descriptions": {
                        "from_email": "The sender's e-mail address.",
                        "subject": "The e-mail's subject.",
                        "body": "The e-mail's body."
                      }
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "subject",
                      "match_type": "contains",
                      "content": "[RESOLVED]"
                    }
                  ]
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the integration was created.",
                "readOnly": true,
                "examples": [
                  "2026-09-09T10:06:12.418Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the integration was last updated.",
                "readOnly": true,
                "examples": [
                  "2026-09-09T10:06:31.902Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  }
                },
                "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat.",
                "examples": [
                  {
                    "Service": [
                      {
                        "type": "String",
                        "value": "Checkout"
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "IncidentsIncomingEmailIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationCreateAttributes"
      },
      "IncidentsIncomingEmailIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the e-mail integration shown in the dashboard.",
            "examples": [
              "Backend e-mail alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while `resolved_rule_type` isn't `unused`.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one.",
            "x-enum-descriptions": {
              "unused": "Every e-mail that doesn't acknowledge or resolve an incident opens one.",
              "any": "An e-mail opens an incident when at least one of `started_rules` matches.",
              "all": "An e-mail opens an incident when all of `started_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
            "x-enum-descriptions": {
              "unused": "E-mails never acknowledge an incident.",
              "any": "An e-mail acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "An e-mail acknowledges an incident when all of `acknowledged_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one.",
            "x-enum-descriptions": {
              "unused": "E-mails never resolve an incident.",
              "any": "An e-mail resolves an incident when at least one of `resolved_rules` matches.",
              "all": "An e-mail resolves an incident when all of `resolved_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "cause_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.",
            "examples": [
              {
                "name": null,
                "special_type": "cause",
                "field_target": "subject",
                "match_type": "match_everything",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "title_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "Field that extracts the incident title, with the same keys as `cause_field`.",
            "examples": [
              {
                "name": null,
                "special_type": "title",
                "field_target": "subject",
                "match_type": "match_after",
                "content": "Alert: ",
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "started_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as `cause_field`. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "body",
                "match_type": "match_between",
                "content": null,
                "content_before": "Alert ID: ",
                "content_after": "\n"
              }
            ]
          },
          "acknowledged_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "body",
                "match_type": "match_between",
                "content": null,
                "content_before": "Alert ID: ",
                "content_after": "\n"
              }
            ]
          },
          "resolved_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "body",
                "match_type": "match_between",
                "content": null,
                "content_before": "Alert ID: ",
                "content_after": "\n"
              }
            ]
          },
          "other_started_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "body",
                  "match_type": "match_regex",
                  "content": "Service: (\\w+)",
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_acknowledged_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from an e-mail that acknowledges an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "body",
                  "match_type": "match_regex",
                  "content": "Service: (\\w+)",
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_resolved_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from an e-mail that resolves an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "body",
                  "match_type": "match_regex",
                  "content": "Service: (\\w+)",
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "subject",
                  "match_type": "contains",
                  "content": "[FIRING]"
                }
              ]
            ]
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "subject",
                  "match_type": "contains",
                  "content": "[ACKNOWLEDGED]"
                }
              ]
            ]
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "subject",
                  "match_type": "contains",
                  "content": "[RESOLVED]"
                }
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving `metadata` out keeps it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "IncidentsIncomingEmailIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsIncomingEmailIntegration"
          }
        }
      },
      "IncidentsIncomingEmailIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsIncomingEmailIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsIncomingEmailIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsIncomingEmailIntegrationUpdateAttributes"
      },
      "IncidentsIncomingEmailIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the e-mail integration shown in the dashboard.",
            "examples": [
              "Backend e-mail alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while `resolved_rule_type` isn't `unused`.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one.",
            "x-enum-descriptions": {
              "unused": "Every e-mail that doesn't acknowledge or resolve an incident opens one.",
              "any": "An e-mail opens an incident when at least one of `started_rules` matches.",
              "all": "An e-mail opens an incident when all of `started_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
            "x-enum-descriptions": {
              "unused": "E-mails never acknowledge an incident.",
              "any": "An e-mail acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "An e-mail acknowledges an incident when all of `acknowledged_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When e-mails resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one.",
            "x-enum-descriptions": {
              "unused": "E-mails never resolve an incident.",
              "any": "An e-mail resolves an incident when at least one of `resolved_rules` matches.",
              "all": "An e-mail resolves an incident when all of `resolved_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "cause_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.",
            "examples": [
              {
                "name": null,
                "special_type": "cause",
                "field_target": "subject",
                "match_type": "match_everything",
                "content": null,
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "title_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "Field that extracts the incident title, with the same keys as `cause_field`.",
            "examples": [
              {
                "name": null,
                "special_type": "title",
                "field_target": "subject",
                "match_type": "match_after",
                "content": "Alert: ",
                "content_before": null,
                "content_after": null
              }
            ]
          },
          "started_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as `cause_field`. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "body",
                "match_type": "match_between",
                "content": null,
                "content_before": "Alert ID: ",
                "content_after": "\n"
              }
            ]
          },
          "acknowledged_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "body",
                "match_type": "match_between",
                "content": null,
                "content_before": "Alert ID: ",
                "content_after": "\n"
              }
            ]
          },
          "resolved_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "from_email",
                  "subject",
                  "body"
                ],
                "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                "x-enum-descriptions": {
                  "from_email": "The sender's e-mail address.",
                  "subject": "The e-mail's subject.",
                  "body": "The e-mail's body."
                }
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "name": null,
                "special_type": "alert_id",
                "field_target": "body",
                "match_type": "match_between",
                "content": null,
                "content_before": "Alert ID: ",
                "content_after": "\n"
              }
            ]
          },
          "other_started_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "body",
                  "match_type": "match_regex",
                  "content": "Service: (\\w+)",
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_acknowledged_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from an e-mail that acknowledges an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "body",
                  "match_type": "match_regex",
                  "content": "Service: (\\w+)",
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "other_resolved_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later e-mails to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later e-mails to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this field reads.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from an e-mail that resolves an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "special_type": null,
                  "field_target": "body",
                  "match_type": "match_regex",
                  "content": "Service: (\\w+)",
                  "content_before": null,
                  "content_after": null
                }
              ]
            ]
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "subject",
                  "match_type": "contains",
                  "content": "[FIRING]"
                }
              ]
            ]
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "subject",
                  "match_type": "contains",
                  "content": "[ACKNOWLEDGED]"
                }
              ]
            ]
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "from_email",
                    "subject",
                    "body"
                  ],
                  "description": "Part of the e-mail this rule matches.\n\n- `from_email`: The sender's e-mail address.\n- `subject`: The e-mail's subject.\n- `body`: The e-mail's body.",
                  "x-enum-descriptions": {
                    "from_email": "The sender's e-mail address.",
                    "subject": "The e-mail's subject.",
                    "body": "The e-mail's body."
                  }
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "subject",
                  "match_type": "contains",
                  "content": "[RESOLVED]"
                }
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving `metadata` out keeps it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "IncidentsIncomingWebhookIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_incoming_webhook_integration's id."
          },
          "type": {
            "type": "string",
            "const": "incoming_webhook"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The name of the incoming webhook shown in the dashboard.",
                "examples": [
                  "Backend service"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
                "examples": [
                  "73"
                ]
              },
              "url": {
                "type": "string",
                "description": "The URL that receives your webhooks.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/incoming-webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": "integer",
                "format": "int64",
                "enum": [
                  0,
                  60,
                  180,
                  300,
                  900,
                  1800,
                  3600,
                  7200
                ],
                "description": "How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while `resolved_rule_type` isn't `unused`.",
                "default": 0,
                "examples": [
                  0
                ]
              },
              "started_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When requests open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one.",
                "x-enum-descriptions": {
                  "unused": "Every request that doesn't acknowledge or resolve an incident opens one.",
                  "any": "A request opens an incident when at least one of `started_rules` matches.",
                  "all": "A request opens an incident when all of `started_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "acknowledged_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When requests acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
                "x-enum-descriptions": {
                  "unused": "Requests never acknowledge an incident.",
                  "any": "A request acknowledges an incident when at least one of `acknowledged_rules` matches.",
                  "all": "A request acknowledges an incident when all of `acknowledged_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "resolved_rule_type": {
                "type": "string",
                "enum": [
                  "unused",
                  "any",
                  "all"
                ],
                "description": "When requests resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one.",
                "x-enum-descriptions": {
                  "unused": "Requests never resolve an incident.",
                  "any": "A request resolves an incident when at least one of `resolved_rules` matches.",
                  "all": "A request resolves an incident when all of `resolved_rules` match."
                },
                "default": "unused",
                "examples": [
                  "any"
                ]
              },
              "cause_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                    "x-enum-descriptions": {
                      "query_string": "A parameter in the request's query string.",
                      "header": "A request header.",
                      "body": "The whole request body, as plain text.",
                      "json": "A value in the request body, read as JSON.",
                      "xml": "An element in the request body, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is `Unknown cause`.",
                "examples": [
                  {
                    "special_type": "cause",
                    "field_target": "body",
                    "match_type": "match_everything"
                  }
                ]
              },
              "title_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                    "x-enum-descriptions": {
                      "query_string": "A parameter in the request's query string.",
                      "header": "A request header.",
                      "body": "The whole request body, as plain text.",
                      "json": "A value in the request body, read as JSON.",
                      "xml": "An element in the request body, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "Field that extracts the incident title, with the same keys as `cause_field`.",
                "examples": [
                  {
                    "special_type": "title",
                    "field_target": "json",
                    "target_field": "alert.title",
                    "match_type": "match_everything"
                  }
                ]
              },
              "started_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                    "x-enum-descriptions": {
                      "query_string": "A parameter in the request's query string.",
                      "header": "A request header.",
                      "body": "The whole request body, as plain text.",
                      "json": "A value in the request body, read as JSON.",
                      "xml": "An element in the request body, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from the request that starts an incident, with the same keys as `cause_field`. Later requests acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "special_type": "alert_id",
                    "field_target": "json",
                    "target_field": "alert.id",
                    "match_type": "match_everything"
                  }
                ]
              },
              "acknowledged_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                    "x-enum-descriptions": {
                      "query_string": "A parameter in the request's query string.",
                      "header": "A request header.",
                      "body": "The whole request body, as plain text.",
                      "json": "A value in the request body, read as JSON.",
                      "xml": "An element in the request body, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from a request that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "special_type": "alert_id",
                    "field_target": "json",
                    "target_field": "alert.id",
                    "match_type": "match_everything"
                  }
                ]
              },
              "resolved_alert_id_field": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
                  },
                  "special_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "alert_id",
                      "cause",
                      "title",
                      null
                    ],
                    "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                    "x-enum-descriptions": {
                      "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                      "cause": "Extracts the incident cause.",
                      "title": "Extracts the incident title."
                    }
                  },
                  "field_target": {
                    "type": "string",
                    "enum": [
                      "query_string",
                      "header",
                      "body",
                      "json",
                      "xml",
                      "sns_envelope"
                    ],
                    "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                    "x-enum-descriptions": {
                      "query_string": "A parameter in the request's query string.",
                      "header": "A request header.",
                      "body": "The whole request body, as plain text.",
                      "json": "A value in the request body, read as JSON.",
                      "xml": "An element in the request body, read as XML.",
                      "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                    }
                  },
                  "target_field": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                  },
                  "match_type": {
                    "type": "string",
                    "enum": [
                      "match_before",
                      "match_after",
                      "match_between",
                      "match_regex",
                      "match_everything"
                    ],
                    "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                    "x-enum-descriptions": {
                      "match_before": "Extracts the text before `content`.",
                      "match_after": "Extracts the text after `content`.",
                      "match_between": "Extracts the text between `content_before` and `content_after`.",
                      "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                      "match_everything": "Extracts the whole value."
                    }
                  },
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                  },
                  "content_before": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The start delimiter for `match_between`."
                  },
                  "content_after": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                  }
                },
                "required": [
                  "field_target",
                  "match_type"
                ],
                "description": "How to extract the alert ID from a request that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
                "examples": [
                  {
                    "special_type": "alert_id",
                    "field_target": "json",
                    "target_field": "alert.id",
                    "match_type": "match_everything"
                  }
                ]
              },
              "other_started_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                      "x-enum-descriptions": {
                        "query_string": "A parameter in the request's query string.",
                        "header": "A request header.",
                        "body": "The whole request body, as plain text.",
                        "json": "A value in the request body, read as JSON.",
                        "xml": "An element in the request body, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from the request that opens an incident, saved as incident metadata.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "field_target": "json",
                      "target_field": "alert.service",
                      "match_type": "match_everything"
                    }
                  ]
                ]
              },
              "other_acknowledged_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                      "x-enum-descriptions": {
                        "query_string": "A parameter in the request's query string.",
                        "header": "A request header.",
                        "body": "The whole request body, as plain text.",
                        "json": "A value in the request body, read as JSON.",
                        "xml": "An element in the request body, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from a request that acknowledges an incident.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "field_target": "json",
                      "target_field": "alert.service",
                      "match_type": "match_everything"
                    }
                  ]
                ]
              },
              "other_resolved_fields": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                    },
                    "special_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "alert_id",
                        "cause",
                        "title",
                        null
                      ],
                      "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                      "x-enum-descriptions": {
                        "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                        "cause": "Extracts the incident cause.",
                        "title": "Extracts the incident title."
                      }
                    },
                    "field_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                      "x-enum-descriptions": {
                        "query_string": "A parameter in the request's query string.",
                        "header": "A request header.",
                        "body": "The whole request body, as plain text.",
                        "json": "A value in the request body, read as JSON.",
                        "xml": "An element in the request body, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "match_before",
                        "match_after",
                        "match_between",
                        "match_regex",
                        "match_everything"
                      ],
                      "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                      "x-enum-descriptions": {
                        "match_before": "Extracts the text before `content`.",
                        "match_after": "Extracts the text after `content`.",
                        "match_between": "Extracts the text between `content_before` and `content_after`.",
                        "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                        "match_everything": "Extracts the whole value."
                      }
                    },
                    "content": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                    },
                    "content_before": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The start delimiter for `match_between`."
                    },
                    "content_after": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                    }
                  },
                  "required": [
                    "name",
                    "field_target",
                    "match_type"
                  ]
                },
                "description": "Custom fields extracted from a request that resolves an incident.",
                "examples": [
                  [
                    {
                      "name": "Service",
                      "field_target": "json",
                      "target_field": "alert.service",
                      "match_type": "match_everything"
                    }
                  ]
                ]
              },
              "started_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                      "x-enum-descriptions": {
                        "query_string": "A parameter in the request's query string.",
                        "header": "A request header.",
                        "body": "The whole request body, as plain text.",
                        "json": "A value in the request body, read as JSON.",
                        "xml": "An element in the request body, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "json",
                      "target_field": "alert.status",
                      "match_type": "equals",
                      "content": "firing"
                    }
                  ]
                ]
              },
              "acknowledged_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                      "x-enum-descriptions": {
                        "query_string": "A parameter in the request's query string.",
                        "header": "A request header.",
                        "body": "The whole request body, as plain text.",
                        "json": "A value in the request body, read as JSON.",
                        "xml": "An element in the request body, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "json",
                      "target_field": "alert.status",
                      "match_type": "equals",
                      "content": "acknowledged"
                    }
                  ]
                ]
              },
              "resolved_rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rule_target": {
                      "type": "string",
                      "enum": [
                        "query_string",
                        "header",
                        "body",
                        "json",
                        "xml",
                        "sns_envelope"
                      ],
                      "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                      "x-enum-descriptions": {
                        "query_string": "A parameter in the request's query string.",
                        "header": "A request header.",
                        "body": "The whole request body, as plain text.",
                        "json": "A value in the request body, read as JSON.",
                        "xml": "An element in the request body, read as XML.",
                        "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                      }
                    },
                    "target_field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                    },
                    "match_type": {
                      "type": "string",
                      "enum": [
                        "contains",
                        "contains_not",
                        "matches_regex",
                        "matches_regex_not",
                        "equals",
                        "equals_not"
                      ],
                      "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                      "x-enum-descriptions": {
                        "contains": "Matches when the value contains `content`.",
                        "contains_not": "Matches when the value doesn't contain `content`.",
                        "matches_regex": "Matches when the value matches the regular expression in `content`.",
                        "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                        "equals": "Matches when the value equals `content`.",
                        "equals_not": "Matches when the value doesn't equal `content`."
                      }
                    },
                    "content": {
                      "type": "string",
                      "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was created.",
                      "readOnly": true
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the rule was last changed.",
                      "readOnly": true
                    }
                  },
                  "required": [
                    "rule_target",
                    "match_type",
                    "content"
                  ]
                },
                "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
                "examples": [
                  [
                    {
                      "rule_target": "json",
                      "target_field": "alert.status",
                      "match_type": "equals",
                      "content": "resolved"
                    }
                  ]
                ]
              },
              "sample_query_string": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The query string of the sample request saved in the dashboard to preview extraction.",
                "readOnly": true,
                "examples": [
                  "source=grafana&env=production"
                ]
              },
              "sample_headers": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The headers of the sample request saved in the dashboard to preview extraction.",
                "readOnly": true,
                "examples": [
                  "Content-Type: application/json; charset=utf-8"
                ]
              },
              "sample_body": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The body of the sample request saved in the dashboard to preview extraction.",
                "readOnly": true,
                "examples": [
                  "{\"alert\":{\"id\":\"a1b2c3\",\"title\":\"High CPU on web-1\",\"status\":\"firing\",\"service\":\"Checkout\"}}"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the integration was created.",
                "readOnly": true,
                "examples": [
                  "2026-09-09T10:06:12.418Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the integration was last updated.",
                "readOnly": true,
                "examples": [
                  "2026-09-09T10:06:31.902Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  }
                },
                "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat.",
                "examples": [
                  {
                    "Service": [
                      {
                        "type": "String",
                        "value": "Checkout"
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "IncidentsIncomingWebhookIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationCreateAttributes"
      },
      "IncidentsIncomingWebhookIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the incoming webhook shown in the dashboard.",
            "examples": [
              "Backend service"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while `resolved_rule_type` isn't `unused`.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When requests open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one.",
            "x-enum-descriptions": {
              "unused": "Every request that doesn't acknowledge or resolve an incident opens one.",
              "any": "A request opens an incident when at least one of `started_rules` matches.",
              "all": "A request opens an incident when all of `started_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When requests acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
            "x-enum-descriptions": {
              "unused": "Requests never acknowledge an incident.",
              "any": "A request acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "A request acknowledges an incident when all of `acknowledged_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When requests resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one.",
            "x-enum-descriptions": {
              "unused": "Requests never resolve an incident.",
              "any": "A request resolves an incident when at least one of `resolved_rules` matches.",
              "all": "A request resolves an incident when all of `resolved_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "cause_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is `Unknown cause`.",
            "examples": [
              {
                "special_type": "cause",
                "field_target": "body",
                "match_type": "match_everything"
              }
            ]
          },
          "title_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "Field that extracts the incident title, with the same keys as `cause_field`.",
            "examples": [
              {
                "special_type": "title",
                "field_target": "json",
                "target_field": "alert.title",
                "match_type": "match_everything"
              }
            ]
          },
          "started_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the request that starts an incident, with the same keys as `cause_field`. Later requests acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "special_type": "alert_id",
                "field_target": "json",
                "target_field": "alert.id",
                "match_type": "match_everything"
              }
            ]
          },
          "acknowledged_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a request that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "examples": [
              {
                "special_type": "alert_id",
                "field_target": "json",
                "target_field": "alert.id",
                "match_type": "match_everything"
              }
            ]
          },
          "resolved_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a request that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "special_type": "alert_id",
                "field_target": "json",
                "target_field": "alert.id",
                "match_type": "match_everything"
              }
            ]
          },
          "other_started_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the request that opens an incident, saved as incident metadata.",
            "examples": [
              [
                {
                  "name": "Service",
                  "field_target": "json",
                  "target_field": "alert.service",
                  "match_type": "match_everything"
                }
              ]
            ]
          },
          "other_acknowledged_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a request that acknowledges an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "field_target": "json",
                  "target_field": "alert.service",
                  "match_type": "match_everything"
                }
              ]
            ]
          },
          "other_resolved_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a request that resolves an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "field_target": "json",
                  "target_field": "alert.service",
                  "match_type": "match_everything"
                }
              ]
            ]
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "firing"
                }
              ]
            ]
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "acknowledged"
                }
              ]
            ]
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "resolved"
                }
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving `metadata` out keeps it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "IncidentsIncomingWebhookIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegration"
          }
        }
      },
      "IncidentsIncomingWebhookIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsIncomingWebhookIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsIncomingWebhookIntegrationUpdateAttributes"
      },
      "IncidentsIncomingWebhookIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the incoming webhook shown in the dashboard.",
            "examples": [
              "Backend service"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly. Returned as a string.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while `resolved_rule_type` isn't `unused`.",
            "default": 0,
            "examples": [
              0
            ]
          },
          "started_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When requests open an incident. Every value other than `unused` needs at least one rule. When `started_alert_id_field` finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one.",
            "x-enum-descriptions": {
              "unused": "Every request that doesn't acknowledge or resolve an incident opens one.",
              "any": "A request opens an incident when at least one of `started_rules` matches.",
              "all": "A request opens an incident when all of `started_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "acknowledged_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When requests acknowledge an incident. Any value other than `unused` needs `started_alert_id_field`, `acknowledged_alert_id_field` and at least one rule.",
            "x-enum-descriptions": {
              "unused": "Requests never acknowledge an incident.",
              "any": "A request acknowledges an incident when at least one of `acknowledged_rules` matches.",
              "all": "A request acknowledges an incident when all of `acknowledged_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "resolved_rule_type": {
            "type": "string",
            "enum": [
              "unused",
              "any",
              "all"
            ],
            "description": "When requests resolve an incident. Any value other than `unused` needs `started_alert_id_field`, `resolved_alert_id_field` and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one.",
            "x-enum-descriptions": {
              "unused": "Requests never resolve an incident.",
              "any": "A request resolves an incident when at least one of `resolved_rules` matches.",
              "all": "A request resolves an incident when all of `resolved_rules` match."
            },
            "default": "unused",
            "examples": [
              "any"
            ]
          },
          "cause_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is `Unknown cause`.",
            "examples": [
              {
                "special_type": "cause",
                "field_target": "body",
                "match_type": "match_everything"
              }
            ]
          },
          "title_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "Field that extracts the incident title, with the same keys as `cause_field`.",
            "examples": [
              {
                "special_type": "title",
                "field_target": "json",
                "target_field": "alert.title",
                "match_type": "match_everything"
              }
            ]
          },
          "started_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from the request that starts an incident, with the same keys as `cause_field`. Later requests acknowledge or resolve the open incident with the same alert ID. Required when `acknowledged_rule_type` or `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "special_type": "alert_id",
                "field_target": "json",
                "target_field": "alert.id",
                "match_type": "match_everything"
              }
            ]
          },
          "acknowledged_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a request that acknowledges an incident, with the same keys as `cause_field`. Required when `acknowledged_rule_type` isn't `unused`.",
            "examples": [
              {
                "special_type": "alert_id",
                "field_target": "json",
                "target_field": "alert.id",
                "match_type": "match_everything"
              }
            ]
          },
          "resolved_alert_id_field": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields."
              },
              "special_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "alert_id",
                  "cause",
                  "title",
                  null
                ],
                "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                "x-enum-descriptions": {
                  "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                  "cause": "Extracts the incident cause.",
                  "title": "Extracts the incident title."
                }
              },
              "field_target": {
                "type": "string",
                "enum": [
                  "query_string",
                  "header",
                  "body",
                  "json",
                  "xml",
                  "sns_envelope"
                ],
                "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                "x-enum-descriptions": {
                  "query_string": "A parameter in the request's query string.",
                  "header": "A request header.",
                  "body": "The whole request body, as plain text.",
                  "json": "A value in the request body, read as JSON.",
                  "xml": "An element in the request body, read as XML.",
                  "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                }
              },
              "target_field": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
              },
              "match_type": {
                "type": "string",
                "enum": [
                  "match_before",
                  "match_after",
                  "match_between",
                  "match_regex",
                  "match_everything"
                ],
                "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                "x-enum-descriptions": {
                  "match_before": "Extracts the text before `content`.",
                  "match_after": "Extracts the text after `content`.",
                  "match_between": "Extracts the text between `content_before` and `content_after`.",
                  "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                  "match_everything": "Extracts the whole value."
                }
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
              },
              "content_before": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The start delimiter for `match_between`."
              },
              "content_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
              }
            },
            "required": [
              "field_target",
              "match_type"
            ],
            "description": "How to extract the alert ID from a request that resolves an incident, with the same keys as `cause_field`. Required when `resolved_rule_type` isn't `unused`.",
            "examples": [
              {
                "special_type": "alert_id",
                "field_target": "json",
                "target_field": "alert.id",
                "match_type": "match_everything"
              }
            ]
          },
          "other_started_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from the request that opens an incident, saved as incident metadata.",
            "examples": [
              [
                {
                  "name": "Service",
                  "field_target": "json",
                  "target_field": "alert.service",
                  "match_type": "match_everything"
                }
              ]
            ]
          },
          "other_acknowledged_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a request that acknowledges an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "field_target": "json",
                  "target_field": "alert.service",
                  "match_type": "match_everything"
                }
              ]
            ]
          },
          "other_resolved_fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The metadata key to save the extracted value under. Required, and must be unique within the array."
                },
                "special_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "alert_id",
                    "cause",
                    "title",
                    null
                  ],
                  "description": "The built-in role of this field. `null` for a custom field.\n\n- `alert_id`: Extracts the alert ID that ties later requests to the same incident.\n- `cause`: Extracts the incident cause.\n- `title`: Extracts the incident title.",
                  "x-enum-descriptions": {
                    "alert_id": "Extracts the alert ID that ties later requests to the same incident.",
                    "cause": "Extracts the incident cause.",
                    "title": "Extracts the incident title."
                  }
                },
                "field_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this field reads.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "match_before",
                    "match_after",
                    "match_between",
                    "match_regex",
                    "match_everything"
                  ],
                  "description": "What to extract.\n\n- `match_before`: Extracts the text before `content`.\n- `match_after`: Extracts the text after `content`.\n- `match_between`: Extracts the text between `content_before` and `content_after`.\n- `match_regex`: Extracts the match of the regular expression in `content`, or its capture group.\n- `match_everything`: Extracts the whole value.",
                  "x-enum-descriptions": {
                    "match_before": "Extracts the text before `content`.",
                    "match_after": "Extracts the text after `content`.",
                    "match_between": "Extracts the text between `content_before` and `content_after`.",
                    "match_regex": "Extracts the match of the regular expression in `content`, or its capture group.",
                    "match_everything": "Extracts the whole value."
                  }
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The text to extract around for `match_before` and `match_after`, or the regular expression for `match_regex`. Required with `match_before`, `match_after` and `match_regex`."
                },
                "content_before": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The start delimiter for `match_between`."
                },
                "content_after": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where extraction stops for `match_between`. Leave it empty to extract to the end."
                }
              },
              "required": [
                "name",
                "field_target",
                "match_type"
              ]
            },
            "description": "Custom fields extracted from a request that resolves an incident.",
            "examples": [
              [
                {
                  "name": "Service",
                  "field_target": "json",
                  "target_field": "alert.service",
                  "match_type": "match_everything"
                }
              ]
            ]
          },
          "started_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `started_rule_type` checks. At least one rule is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "firing"
                }
              ]
            ]
          },
          "acknowledged_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `acknowledged_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "acknowledged"
                }
              ]
            ]
          },
          "resolved_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule_target": {
                  "type": "string",
                  "enum": [
                    "query_string",
                    "header",
                    "body",
                    "json",
                    "xml",
                    "sns_envelope"
                  ],
                  "description": "Part of the payload this rule matches.\n\n- `query_string`: A parameter in the request's query string.\n- `header`: A request header.\n- `body`: The whole request body, as plain text.\n- `json`: A value in the request body, read as JSON.\n- `xml`: An element in the request body, read as XML.\n- `sns_envelope`: A value of the SNS envelope, which only Amazon SNS integrations receive.",
                  "x-enum-descriptions": {
                    "query_string": "A parameter in the request's query string.",
                    "header": "A request header.",
                    "body": "The whole request body, as plain text.",
                    "json": "A value in the request body, read as JSON.",
                    "xml": "An element in the request body, read as XML.",
                    "sns_envelope": "A value of the SNS envelope, which only Amazon SNS integrations receive."
                  }
                },
                "target_field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for `json` and `query_string`, a header name for `header`, or a CSS selector for `xml`. Not used with `body`."
                },
                "match_type": {
                  "type": "string",
                  "enum": [
                    "contains",
                    "contains_not",
                    "matches_regex",
                    "matches_regex_not",
                    "equals",
                    "equals_not"
                  ],
                  "description": "How to compare the value with `content`.\n\n- `contains`: Matches when the value contains `content`.\n- `contains_not`: Matches when the value doesn't contain `content`.\n- `matches_regex`: Matches when the value matches the regular expression in `content`.\n- `matches_regex_not`: Matches when the value doesn't match the regular expression in `content`.\n- `equals`: Matches when the value equals `content`.\n- `equals_not`: Matches when the value doesn't equal `content`.",
                  "x-enum-descriptions": {
                    "contains": "Matches when the value contains `content`.",
                    "contains_not": "Matches when the value doesn't contain `content`.",
                    "matches_regex": "Matches when the value matches the regular expression in `content`.",
                    "matches_regex_not": "Matches when the value doesn't match the regular expression in `content`.",
                    "equals": "Matches when the value equals `content`.",
                    "equals_not": "Matches when the value doesn't equal `content`."
                  }
                },
                "content": {
                  "type": "string",
                  "description": "The value to compare with. Must be a valid regular expression for `matches_regex` and `matches_regex_not`."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was created.",
                  "readOnly": true
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the rule was last changed.",
                  "readOnly": true
                }
              },
              "required": [
                "rule_target",
                "match_type",
                "content"
              ]
            },
            "description": "The conditions `resolved_rule_type` checks, with the same keys as `started_rules`. At least one is required when the type is `any` or `all`.",
            "examples": [
              [
                {
                  "rule_target": "json",
                  "target_field": "alert.status",
                  "match_type": "equals",
                  "content": "resolved"
                }
              ]
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving `metadata` out keeps it.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "IncidentsIntegrationAuthorization": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_integration_authorization's id."
          },
          "type": {
            "type": "string",
            "const": "integration_authorization"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "integration_type": {
                "type": "string",
                "enum": [
                  "slack",
                  "linear",
                  "jira"
                ],
                "description": "The integration being connected.",
                "readOnly": true,
                "examples": [
                  "slack"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "completed",
                  "failed",
                  "expired"
                ],
                "description": "Whether the integration is connected yet.",
                "x-enum-descriptions": {
                  "pending": "Waiting for a person to open `authorization_url` and finish the sign-in.",
                  "completed": "The integration is connected. `integration_id` is its ID.",
                  "failed": "The sign-in didn't connect the integration. `status_reason` says why.",
                  "expired": "Nobody finished the sign-in in time."
                },
                "readOnly": true,
                "examples": [
                  "pending"
                ]
              },
              "status_reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why connecting failed, as the sign-in page showed it. `null` unless `status` is `failed`.",
                "readOnly": true
              },
              "authorization_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The link that connects the integration. Open it in a browser, sign in to Better Stack, then sign in with the provider. `null` once the link expires or the sign-in ends. A link created with your own sign-in rather than an API token opens only for you.",
                "readOnly": true,
                "examples": [
                  "https://uptime.betterstack.com/team/t123/integrations/slack/authorize?authorization_id=hD0Ms9nZ2Yd4mVq1pX7bL8cT3rF6wK5jA0eS9uG2iNy&product=uptime"
                ]
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the link stops opening, 30 minutes after it was created. A sign-in started before then has 30 more minutes to finish.",
                "readOnly": true,
                "examples": [
                  "2026-11-24T16:30:00.000Z"
                ]
              },
              "integration_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the connected integration. `null` until `status` is `completed`.",
                "readOnly": true
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team the integration is connected to, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              }
            }
          }
        }
      },
      "IncidentsIntegrationAuthorizationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsIntegrationAuthorization"
          }
        }
      },
      "IncidentsJiraIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_jira_integration's id."
          },
          "type": {
            "type": "string",
            "const": "jira_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name. `null` while the integration is still being connected.",
                "examples": [
                  "Incident tickets"
                ]
              },
              "automatic_issue_creation": {
                "type": "boolean",
                "description": "Whether to create a Jira issue for every incident automatically.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "jira_project_key": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Key of the Jira project that issues are created in. Get the key from your Jira issue keys, such as `ABC` in `ABC-123`. A key that isn't found is refused, and the error lists the available keys.",
                "examples": [
                  "OPS"
                ]
              },
              "jira_issue_type_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the Jira issue type for created issues. Get the ID via the Get issue types for project endpoint of Jira's REST API.",
                "examples": [
                  "10006"
                ]
              },
              "jira_fields": {
                "type": "object",
                "additionalProperties": true,
                "description": "Extra Jira fields to set on created issues, keyed by Jira field ID. Set the integration up in the app, then use the `jira_fields` from [Get a Jira integration](/docs/uptime/api/single-jira-integration/) as a template. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{\"customfield_10042\": \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.",
                "default": {},
                "examples": [
                  {
                    "labels": [
                      {
                        "label": "outage",
                        "value": "outage"
                      }
                    ],
                    "assignee": {
                      "label": "John Doe",
                      "value": "5b10ac8d82e05b22cc7d4ef5"
                    }
                  }
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsJiraIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsJiraIntegration"
          }
        }
      },
      "IncidentsJiraIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsJiraIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsJiraIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsJiraIntegrationUpdateAttributes"
      },
      "IncidentsJiraIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name. `null` while the integration is still being connected.",
            "examples": [
              "Incident tickets"
            ]
          },
          "automatic_issue_creation": {
            "type": "boolean",
            "description": "Whether to create a Jira issue for every incident automatically.",
            "default": false,
            "examples": [
              true
            ]
          },
          "jira_project_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "Key of the Jira project that issues are created in. Get the key from your Jira issue keys, such as `ABC` in `ABC-123`. A key that isn't found is refused, and the error lists the available keys.",
            "examples": [
              "OPS"
            ]
          },
          "jira_issue_type_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the Jira issue type for created issues. Get the ID via the Get issue types for project endpoint of Jira's REST API.",
            "examples": [
              "10006"
            ]
          },
          "jira_fields": {
            "type": "object",
            "additionalProperties": true,
            "description": "Extra Jira fields to set on created issues, keyed by Jira field ID. Set the integration up in the app, then use the `jira_fields` from [Get a Jira integration](/docs/uptime/api/single-jira-integration/) as a template. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{\"customfield_10042\": \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.",
            "default": {},
            "examples": [
              {
                "labels": [
                  {
                    "label": "outage",
                    "value": "outage"
                  }
                ],
                "assignee": {
                  "label": "John Doe",
                  "value": "5b10ac8d82e05b22cc7d4ef5"
                }
              }
            ]
          }
        }
      },
      "IncidentsLinearIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_linear_integration's id."
          },
          "type": {
            "type": "string",
            "const": "linear_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Integration name.",
                "examples": [
                  "Engineering incidents"
                ]
              },
              "linear_team_id": {
                "type": "string",
                "description": "ID of the Linear team that issues are created in.",
                "examples": [
                  "0a058344-2e3c-4ae6-a0a9-cff783744f6a"
                ]
              },
              "linear_assignee_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the Linear user that issues are assigned to. `null` leaves issues unassigned.",
                "examples": [
                  "cc60f33b-8913-4be7-b517-f8f1906edace"
                ]
              },
              "linear_priority": {
                "type": "string",
                "enum": [
                  "no_priority",
                  "urgent",
                  "high",
                  "medium",
                  "low"
                ],
                "description": "Priority of the issues created.",
                "examples": [
                  "urgent"
                ]
              },
              "linear_status_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the Linear status that issues start in. `null` uses the Linear team's default status.",
                "examples": [
                  "4e8e4830-4059-4cf5-a1a8-9445835ed0b3"
                ]
              },
              "linear_project_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the Linear project that issues are added to. `null` adds them to no project."
              },
              "linear_labels": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the Linear label."
                    },
                    "name": {
                      "type": "string",
                      "description": "The label's name in Linear when it was set.",
                      "readOnly": true
                    }
                  }
                },
                "description": "Labels added to the issues created.",
                "examples": [
                  [
                    {
                      "id": "13a3e688-2159-4309-9282-f4b17323d35c",
                      "name": "Bug"
                    }
                  ]
                ]
              },
              "automatic_issue_creation": {
                "type": "boolean",
                "description": "Whether to create a Linear issue for every incident automatically.",
                "examples": [
                  true
                ]
              },
              "automatic_issue_closure": {
                "type": "boolean",
                "description": "Whether to move the issue to `linear_resolved_status_id` when the incident is resolved.",
                "examples": [
                  true
                ]
              },
              "linear_resolved_status_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the Linear status that issues move to when the incident is resolved.",
                "examples": [
                  "df16acd5-9e27-4eef-bb3c-ab09787f163b"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsLinearIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsLinearIntegration"
          }
        }
      },
      "IncidentsLinearIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsLinearIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsLinearIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsLinearIntegrationUpdateAttributes"
      },
      "IncidentsLinearIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Integration name.",
            "examples": [
              "Engineering incidents"
            ]
          },
          "linear_team_id": {
            "type": "string",
            "description": "ID of the Linear team that issues are created in.",
            "examples": [
              "0a058344-2e3c-4ae6-a0a9-cff783744f6a"
            ]
          },
          "linear_assignee_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the Linear user that issues are assigned to. `null` leaves issues unassigned.",
            "examples": [
              "cc60f33b-8913-4be7-b517-f8f1906edace"
            ]
          },
          "linear_priority": {
            "type": "string",
            "enum": [
              "no_priority",
              "urgent",
              "high",
              "medium",
              "low"
            ],
            "description": "Priority of the issues created.",
            "examples": [
              "urgent"
            ]
          },
          "linear_status_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the Linear status that issues start in. `null` uses the Linear team's default status.",
            "examples": [
              "4e8e4830-4059-4cf5-a1a8-9445835ed0b3"
            ]
          },
          "linear_project_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the Linear project that issues are added to. `null` adds them to no project."
          },
          "linear_labels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the Linear label."
                },
                "name": {
                  "type": "string",
                  "description": "The label's name in Linear when it was set.",
                  "readOnly": true
                }
              }
            },
            "description": "Labels added to the issues created. Send each label as an object with its `id`, as a read returns it. An update replaces the whole list. Only one label from each Linear label group can be set.",
            "examples": [
              [
                {
                  "id": "13a3e688-2159-4309-9282-f4b17323d35c",
                  "name": "Bug"
                }
              ]
            ]
          },
          "automatic_issue_creation": {
            "type": "boolean",
            "description": "Whether to create a Linear issue for every incident automatically.",
            "examples": [
              true
            ]
          },
          "automatic_issue_closure": {
            "type": "boolean",
            "description": "Whether to move the issue to `linear_resolved_status_id` when the incident is resolved.",
            "examples": [
              true
            ]
          },
          "linear_resolved_status_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the Linear status that issues move to when the incident is resolved. Required when `automatic_issue_closure` is `true`.",
            "examples": [
              "df16acd5-9e27-4eef-bb3c-ab09787f163b"
            ]
          }
        }
      },
      "IncidentsNewRelicIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_new_relic_integration's id."
          },
          "type": {
            "type": "string",
            "const": "new_relic_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "New Relic alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into New Relic. Alerts New Relic sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/new-relic/webhook/token-placeholder"
                ]
              },
              "alerting_rule": {
                "type": "string",
                "enum": [
                  "alert",
                  "alert_and_warn"
                ],
                "description": "Which New Relic alert levels open incidents.",
                "x-enum-descriptions": {
                  "alert": "Opens an incident for alerts only.",
                  "alert_and_warn": "Opens an incident for alerts and warnings."
                },
                "default": "alert",
                "examples": [
                  "alert"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as New Relic reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsNewRelicIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsNewRelicIntegrationCreateAttributes"
      },
      "IncidentsNewRelicIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "New Relic alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "alerting_rule": {
            "type": "string",
            "enum": [
              "alert",
              "alert_and_warn"
            ],
            "description": "Which New Relic alert levels open incidents.",
            "x-enum-descriptions": {
              "alert": "Opens an incident for alerts only.",
              "alert_and_warn": "Opens an incident for alerts and warnings."
            },
            "default": "alert",
            "examples": [
              "alert"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as New Relic reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsNewRelicIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsNewRelicIntegration"
          }
        }
      },
      "IncidentsNewRelicIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsNewRelicIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsNewRelicIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsNewRelicIntegrationUpdateAttributes"
      },
      "IncidentsNewRelicIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "New Relic alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "alerting_rule": {
            "type": "string",
            "enum": [
              "alert",
              "alert_and_warn"
            ],
            "description": "Which New Relic alert levels open incidents.",
            "x-enum-descriptions": {
              "alert": "Opens an incident for alerts only.",
              "alert_and_warn": "Opens an incident for alerts and warnings."
            },
            "default": "alert",
            "examples": [
              "alert"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as New Relic reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsOutgoingEmailIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_outgoing_email_integration's id."
          },
          "type": {
            "type": "string",
            "const": "outgoing_email"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The integration's name, shown in the dashboard.",
                "examples": [
                  "Client distribution list"
                ]
              },
              "recipients": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "string",
                      "description": "The recipient's e-mail address."
                    }
                  }
                },
                "description": "The people the integration e-mails. Each recipient is an object with an `email` key and up to 10 extra text keys, such as `first_name`, which templates render as `$RECIPIENT.<key>`.",
                "examples": [
                  [
                    {
                      "email": "ops@example.com"
                    },
                    {
                      "email": "noc@example.com"
                    }
                  ]
                ]
              },
              "templates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "incident_stage": {
                      "type": "string",
                      "enum": [
                        "started",
                        "acknowledged",
                        "resolved",
                        "reopened",
                        "comment"
                      ],
                      "description": "Incident stage this template applies to."
                    },
                    "subject": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The e-mail subject, up to 500 characters. Supports incident variables such as `$NAME`, `$STATUS`, `$CAUSE` and `$INCIDENT_URL`, a metadata value as `$METADATA.Key`, all metadata as `$METADATA_ARRAY` and a recipient's attributes as `$RECIPIENT.<key>`. `null` uses the default template."
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The e-mail title, up to 500 characters. Supports the same variables as `subject`. `null` uses the default template."
                    },
                    "body": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The e-mail body in Markdown, up to 20,000 characters. Supports the same variables as `subject`. `null` uses the default template."
                    }
                  }
                },
                "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.",
                "examples": [
                  [
                    {
                      "incident_stage": "started",
                      "subject": "Incident: $NAME",
                      "title": "We're investigating an issue with $NAME",
                      "body": "Hi $RECIPIENT.first_name, we detected a problem: $CAUSE. Follow along at $INCIDENT_URL."
                    }
                  ]
                ]
              },
              "on_incident_started": {
                "type": "boolean",
                "description": "Whether to e-mail the recipients when an incident starts.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "on_incident_acknowledged": {
                "type": "boolean",
                "description": "Whether to e-mail the recipients when an incident is acknowledged.",
                "default": true,
                "examples": [
                  false
                ]
              },
              "on_incident_resolved": {
                "type": "boolean",
                "description": "Whether to e-mail the recipients when an incident is resolved.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "on_incident_reopened": {
                "type": "boolean",
                "description": "Whether to e-mail the recipients when an incident is reopened.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "on_incident_comment": {
                "type": "boolean",
                "description": "Whether to e-mail the recipients when a new comment is posted on an incident.",
                "default": true,
                "examples": [
                  false
                ]
              },
              "notify_alongside_primary_responder": {
                "type": "boolean",
                "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration sends no e-mails.",
                "readOnly": true,
                "examples": [
                  false
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsOutgoingEmailIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationCreateAttributes"
      },
      "IncidentsOutgoingEmailIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The integration's name, shown in the dashboard.",
            "examples": [
              "Client distribution list"
            ]
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "description": "The recipient's e-mail address."
                }
              }
            },
            "description": "The people the integration e-mails. Each recipient is an object with an `email` key and up to 10 extra text keys, such as `first_name`, which templates render as `$RECIPIENT.<key>`. A plain e-mail address is also accepted in place of the object.",
            "examples": [
              [
                {
                  "email": "ops@example.com"
                },
                {
                  "email": "noc@example.com"
                }
              ]
            ]
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "incident_stage": {
                  "type": "string",
                  "enum": [
                    "started",
                    "acknowledged",
                    "resolved",
                    "reopened",
                    "comment"
                  ],
                  "description": "Incident stage this template applies to."
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The e-mail subject, up to 500 characters. Supports incident variables such as `$NAME`, `$STATUS`, `$CAUSE` and `$INCIDENT_URL`, a metadata value as `$METADATA.Key`, all metadata as `$METADATA_ARRAY` and a recipient's attributes as `$RECIPIENT.<key>`. `null` uses the default template."
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The e-mail title, up to 500 characters. Supports the same variables as `subject`. `null` uses the default template."
                },
                "body": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The e-mail body in Markdown, up to 20,000 characters. Supports the same variables as `subject`. `null` uses the default template."
                }
              }
            },
            "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.",
            "examples": [
              [
                {
                  "incident_stage": "started",
                  "subject": "Incident: $NAME",
                  "title": "We're investigating an issue with $NAME",
                  "body": "Hi $RECIPIENT.first_name, we detected a problem: $CAUSE. Follow along at $INCIDENT_URL."
                }
              ]
            ]
          },
          "on_incident_started": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident starts.",
            "default": true,
            "examples": [
              true
            ]
          },
          "on_incident_acknowledged": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is acknowledged.",
            "default": true,
            "examples": [
              false
            ]
          },
          "on_incident_resolved": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is resolved.",
            "default": true,
            "examples": [
              true
            ]
          },
          "on_incident_reopened": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is reopened.",
            "default": true,
            "examples": [
              true
            ]
          },
          "on_incident_comment": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when a new comment is posted on an incident.",
            "default": true,
            "examples": [
              false
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy.",
            "default": true,
            "examples": [
              true
            ]
          }
        },
        "required": [
          "recipients"
        ]
      },
      "IncidentsOutgoingEmailIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegration"
          }
        }
      },
      "IncidentsOutgoingEmailIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsOutgoingEmailIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsOutgoingEmailIntegrationUpdateAttributes"
      },
      "IncidentsOutgoingEmailIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The integration's name, shown in the dashboard.",
            "examples": [
              "Client distribution list"
            ]
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "description": "The recipient's e-mail address."
                }
              }
            },
            "description": "The people the integration e-mails. Each recipient is an object with an `email` key and up to 10 extra text keys, such as `first_name`, which templates render as `$RECIPIENT.<key>`. A plain e-mail address is also accepted in place of the object.",
            "examples": [
              [
                {
                  "email": "ops@example.com"
                },
                {
                  "email": "noc@example.com"
                }
              ]
            ]
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "incident_stage": {
                  "type": "string",
                  "enum": [
                    "started",
                    "acknowledged",
                    "resolved",
                    "reopened",
                    "comment"
                  ],
                  "description": "Incident stage this template applies to."
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The e-mail subject, up to 500 characters. Supports incident variables such as `$NAME`, `$STATUS`, `$CAUSE` and `$INCIDENT_URL`, a metadata value as `$METADATA.Key`, all metadata as `$METADATA_ARRAY` and a recipient's attributes as `$RECIPIENT.<key>`. `null` uses the default template."
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The e-mail title, up to 500 characters. Supports the same variables as `subject`. `null` uses the default template."
                },
                "body": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The e-mail body in Markdown, up to 20,000 characters. Supports the same variables as `subject`. `null` uses the default template."
                }
              }
            },
            "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.",
            "examples": [
              [
                {
                  "incident_stage": "started",
                  "subject": "Incident: $NAME",
                  "title": "We're investigating an issue with $NAME",
                  "body": "Hi $RECIPIENT.first_name, we detected a problem: $CAUSE. Follow along at $INCIDENT_URL."
                }
              ]
            ]
          },
          "on_incident_started": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident starts.",
            "default": true,
            "examples": [
              true
            ]
          },
          "on_incident_acknowledged": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is acknowledged.",
            "default": true,
            "examples": [
              false
            ]
          },
          "on_incident_resolved": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is resolved.",
            "default": true,
            "examples": [
              true
            ]
          },
          "on_incident_reopened": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when an incident is reopened.",
            "default": true,
            "examples": [
              true
            ]
          },
          "on_incident_comment": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients when a new comment is posted on an incident.",
            "default": true,
            "examples": [
              false
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy.",
            "default": true,
            "examples": [
              true
            ]
          }
        }
      },
      "IncidentsOutgoingPagerDutyIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_outgoing_pagerduty_integration's id."
          },
          "type": {
            "type": "string",
            "const": "pagerduty_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Integration name.",
                "examples": [
                  "PagerDuty alerts"
                ]
              },
              "key": {
                "type": "string",
                "description": "PagerDuty integration key, also called the routing key.",
                "x-sensitive": true,
                "examples": [
                  "routing-key-placeholder"
                ]
              },
              "severity": {
                "type": "string",
                "enum": [
                  "info",
                  "warning",
                  "error",
                  "critical"
                ],
                "description": "PagerDuty severity sent with the event.",
                "examples": [
                  "critical"
                ]
              },
              "notify_alongside_primary_responder": {
                "type": "boolean",
                "description": "Whether to alert this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's alerted only when a step of that policy notifies it.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsOutgoingPagerDutyIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationCreateAttributes"
      },
      "IncidentsOutgoingPagerDutyIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Integration name.",
            "examples": [
              "PagerDuty alerts"
            ]
          },
          "key": {
            "type": "string",
            "description": "PagerDuty integration key, also called the routing key.",
            "x-sensitive": true,
            "examples": [
              "routing-key-placeholder"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "info",
              "warning",
              "error",
              "critical"
            ],
            "description": "PagerDuty severity sent with the event.",
            "examples": [
              "critical"
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to alert this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's alerted only when a step of that policy notifies it.",
            "default": true,
            "examples": [
              true
            ]
          }
        },
        "required": [
          "name",
          "key",
          "severity"
        ]
      },
      "IncidentsOutgoingPagerDutyIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegration"
          }
        }
      },
      "IncidentsOutgoingPagerDutyIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsOutgoingPagerDutyIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsOutgoingPagerDutyIntegrationUpdateAttributes"
      },
      "IncidentsOutgoingPagerDutyIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Integration name.",
            "examples": [
              "PagerDuty alerts"
            ]
          },
          "key": {
            "type": "string",
            "description": "PagerDuty integration key, also called the routing key.",
            "x-sensitive": true,
            "examples": [
              "routing-key-placeholder"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "info",
              "warning",
              "error",
              "critical"
            ],
            "description": "PagerDuty severity sent with the event.",
            "examples": [
              "critical"
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to alert this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's alerted only when a step of that policy notifies it.",
            "default": true,
            "examples": [
              true
            ]
          }
        }
      },
      "IncidentsOutgoingWebhookIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_outgoing_webhook_integration's id."
          },
          "type": {
            "type": "string",
            "const": "outgoing_webhook"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The integration's name, shown in the dashboard.",
                "examples": [
                  "Incident updates to ops tooling"
                ]
              },
              "url": {
                "type": "string",
                "description": "The URL the webhook is sent to. For an `incident_change` webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.",
                "examples": [
                  "https://example.com/webhooks/better-stack"
                ]
              },
              "trigger_type": {
                "type": "string",
                "enum": [
                  "incident_change",
                  "on_call_change",
                  "monitor_change"
                ],
                "description": "What triggers the webhook. Fixed once the integration is created.",
                "x-enum-descriptions": {
                  "incident_change": "Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment.",
                  "on_call_change": "Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift.",
                  "monitor_change": "Sends the webhook when a monitor is created, updated, paused, unpaused or removed."
                },
                "examples": [
                  "incident_change"
                ]
              },
              "metadata_api_version": {
                "type": "string",
                "enum": [
                  "v2",
                  "v3"
                ],
                "description": "How the `$METADATA` variables in the URL and `body_template` render.",
                "x-enum-descriptions": {
                  "v2": "Renders `$METADATA.<key>` as the key's last plain-text value.",
                  "v3": "Renders `$METADATA.<key>` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.<key>.values` list each value with its type."
                },
                "default": "v3",
                "examples": [
                  "v3"
                ]
              },
              "on_incident_started": {
                "type": "boolean",
                "description": "Whether to send the webhook when an incident starts. Only for an `incident_change` webhook.",
                "examples": [
                  true
                ]
              },
              "on_incident_acknowledged": {
                "type": "boolean",
                "description": "Whether to send the webhook when an incident is acknowledged. Only for an `incident_change` webhook.",
                "examples": [
                  true
                ]
              },
              "on_incident_resolved": {
                "type": "boolean",
                "description": "Whether to send the webhook when an incident is resolved. Only for an `incident_change` webhook.",
                "examples": [
                  true
                ]
              },
              "on_incident_reopened": {
                "type": "boolean",
                "description": "Whether to send the webhook when an incident is reopened. Only for an `incident_change` webhook.",
                "examples": [
                  true
                ]
              },
              "on_incident_comment": {
                "type": "boolean",
                "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a `comment` object, whose `attributes` hold the comment's `content`, `created_at`, `updated_at`, `user_id` and `user_email`. Only for an `incident_change` webhook.",
                "examples": [
                  false
                ]
              },
              "notify_alongside_primary_responder": {
                "type": "boolean",
                "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an `incident_change` webhook.",
                "examples": [
                  true
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration sends no webhooks.",
                "readOnly": true,
                "examples": [
                  false
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            },
            "allOf": [
              {
                "if": {
                  "properties": {
                    "trigger_type": {
                      "enum": [
                        "incident_change"
                      ]
                    }
                  },
                  "required": [
                    "trigger_type"
                  ]
                },
                "then": {
                  "properties": {
                    "on_incident_started": {
                      "default": true
                    },
                    "on_incident_acknowledged": {
                      "default": true
                    },
                    "on_incident_resolved": {
                      "default": true
                    },
                    "on_incident_reopened": {
                      "default": true
                    },
                    "on_incident_comment": {
                      "default": true
                    },
                    "notify_alongside_primary_responder": {
                      "default": true
                    }
                  }
                }
              },
              {
                "if": {
                  "properties": {
                    "trigger_type": {
                      "not": {
                        "enum": [
                          "incident_change"
                        ]
                      }
                    }
                  },
                  "required": [
                    "trigger_type"
                  ]
                },
                "then": {
                  "properties": {
                    "on_incident_started": false,
                    "on_incident_acknowledged": false,
                    "on_incident_resolved": false,
                    "on_incident_reopened": false,
                    "on_incident_comment": false,
                    "notify_alongside_primary_responder": false
                  }
                }
              }
            ]
          },
          "relationships": {
            "type": "object",
            "properties": {
              "custom_webhook_template": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "required": [
                      "id",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "const": "custom_webhook_template"
                      }
                    }
                  }
                },
                "description": "The saved request template, returned under `included`. `null` when the webhook has no custom template."
              }
            }
          }
        }
      },
      "IncidentsOutgoingWebhookIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationCreateAttributes"
      },
      "IncidentsOutgoingWebhookIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The integration's name, shown in the dashboard.",
            "examples": [
              "Incident updates to ops tooling"
            ]
          },
          "url": {
            "type": "string",
            "description": "The URL the webhook is sent to. For an `incident_change` webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.",
            "examples": [
              "https://example.com/webhooks/better-stack"
            ]
          },
          "trigger_type": {
            "type": "string",
            "enum": [
              "incident_change",
              "on_call_change",
              "monitor_change"
            ],
            "description": "What triggers the webhook. Fixed once the integration is created.",
            "x-enum-descriptions": {
              "incident_change": "Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment.",
              "on_call_change": "Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift.",
              "monitor_change": "Sends the webhook when a monitor is created, updated, paused, unpaused or removed."
            },
            "examples": [
              "incident_change"
            ]
          },
          "metadata_api_version": {
            "type": "string",
            "enum": [
              "v2",
              "v3"
            ],
            "description": "How the `$METADATA` variables in the URL and `body_template` render.",
            "x-enum-descriptions": {
              "v2": "Renders `$METADATA.<key>` as the key's last plain-text value.",
              "v3": "Renders `$METADATA.<key>` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.<key>.values` list each value with its type."
            },
            "default": "v3",
            "examples": [
              "v3"
            ]
          },
          "on_incident_started": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident starts. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_acknowledged": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is acknowledged. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_resolved": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is resolved. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_reopened": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is reopened. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_comment": {
            "type": "boolean",
            "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a `comment` object, whose `attributes` hold the comment's `content`, `created_at`, `updated_at`, `user_id` and `user_email`. Only for an `incident_change` webhook.",
            "examples": [
              false
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "custom_webhook_template_attributes": {
            "type": "object",
            "properties": {
              "http_method": {
                "type": "string",
                "enum": [
                  "head",
                  "get",
                  "post",
                  "put",
                  "patch",
                  "options"
                ],
                "description": "The HTTP method of the request, `post` by default. A GET request is sent without a body."
              },
              "headers_template": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The header's name, such as `Content-Type`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The header's value, sent as written."
                    }
                  }
                },
                "description": "Custom request headers, as a list of objects with `name` and `value`. Header values are sent as written, without template variables."
              },
              "body_template": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "additionalProperties": true
                  }
                ],
                "description": "Request body template, as text or as a JSON object. Reads return it as text. An `incident_change` template can use `$INCIDENT_ID`, `$INCIDENT_URL`, `$NAME`, `$STATUS`, `$CAUSE`, `$URL`, `$HTTP_METHOD`, `$MONITOR_ID`, `$RESOURCE_ID`, `$RESOURCE_TYPE`, `$TEAM_ID`, `$TEAM_NAME`, `$INCIDENT_GROUP_ID`, `$REQUESTER`, `$STARTED_AT`, `$ACKNOWLEDGED_AT`, `$ACKNOWLEDGED_BY`, `$RESOLVED_AT`, `$RESOLVED_BY`, `$RESPONSE_URL`, `$RESPONSE_CONTENT`, `$RESPONSE_OPTIONS`, `$SCREENSHOT_URL`, `$INTEGRATION_IMAGE_URL`, `$REGIONS`, `$ESCALATION_POLICY_ID`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$INTEGRATION_ALERT_ID`, `$PLAYWRIGHT_SUMMARY`, `$COMMENT_ID`, `$COMMENT_CONTENT`, `$COMMENT_CREATED_AT`, `$COMMENT_AUTHOR_NAME` and `$COMMENT_AUTHOR_EMAIL`. A `monitor_change` template can use `$MONITOR_ID`, `$PRONOUNCEABLE_NAME`, `$URL`, `$MONITOR_TYPE`, `$STATUS`, `$MONITOR_GROUP_ID`, `$ESCALATION_POLICY_ID`, `$EXPIRATION_ESCALATION_POLICY_ID`, `$LAST_CHECKED_AT`, `$REQUIRED_KEYWORD`, `$VERIFY_SSL`, `$CHECK_FREQUENCY`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$TEAM_WAIT`, `$HTTP_METHOD`, `$REQUEST_TIMEOUT`, `$RECOVERY_PERIOD`, `$REQUEST_BODY`, `$PAUSED_AT`, `$SSL_EXPIRATION`, `$DOMAIN_EXPIRATION`, `$REGIONS` and `$PORT`. An `on_call_change` template can use `$MESSAGE`, `$EMAILS`, `$EMAILS_JSON_ARRAY`, `$ON_HOLIDAY_EMAILS`, `$ON_HOLIDAY_EMAILS_JSON_ARRAY`, `$CHANGE`, `$ON_CALL_CALENDAR_ID`, `$ON_CALL_CALENDAR_NAME` and `$DEFAULT_ON_CALL_CALENDAR`. Incident and monitor templates can also use the [metadata variables](/docs/uptime/webhooks/#metadata-variables). A time such as `$STARTED_AT` renders like `2026-07-01 12:00:00 UTC`, and the same name ending in `_ISO8601` renders it in ISO 8601. A variable that holds a list, such as `$REGIONS` or `$EMAILS_JSON_ARRAY`, renders as JSON, so put it in the template without quotes."
              },
              "auth_username": {
                "type": "string",
                "description": "The username for basic authentication. Set both username and password, or neither."
              },
              "auth_password": {
                "type": "string",
                "description": "The password for basic authentication. Set both username and password, or neither."
              },
              "default_body": {
                "type": "boolean",
                "description": "Send `true` with a new template that has no `body_template` to start from the default body for its `trigger_type`, as the form in the web app does. Has no effect on a saved template sent with its `id`, or when it's the only field you send."
              },
              "set_headers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The header's name, such as `Authorization`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The header's value, sent as written."
                    }
                  }
                },
                "description": "Headers to set by name. Each replaces a saved header of the same name, in any letter case, and the other saved headers stay. Can't be sent with `headers_template`."
              },
              "remove_headers": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Names of saved headers to remove, in any letter case. Can't be sent with `headers_template`."
              }
            },
            "description": "Custom request method, headers, body and basic authentication. Without a custom template, an `incident_change` or `monitor_change` webhook sends the incident or monitor under `data`, with what happened in `event`, such as `started` or `created`. Without a custom template, an `on_call_change` webhook sends the on-call calendar's `message`, `emails`, `on_holiday_emails`, `change`, `calendar_id`, `calendar_name` and `primary_calendar` under `data`. Returned as `custom_webhook_template`.",
            "writeOnly": true,
            "examples": [
              {
                "http_method": "post",
                "headers_template": [
                  {
                    "name": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body_template": "{\"incident_id\":\"$INCIDENT_ID\",\"name\":\"$NAME\",\"cause\":\"$CAUSE\"}",
                "auth_username": "user-placeholder",
                "auth_password": "s3cr3t-placeholder"
              }
            ]
          }
        },
        "required": [
          "url",
          "trigger_type"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "trigger_type": {
                  "enum": [
                    "incident_change"
                  ]
                }
              },
              "required": [
                "trigger_type"
              ]
            },
            "then": {
              "properties": {
                "on_incident_started": {
                  "default": true
                },
                "on_incident_acknowledged": {
                  "default": true
                },
                "on_incident_resolved": {
                  "default": true
                },
                "on_incident_reopened": {
                  "default": true
                },
                "on_incident_comment": {
                  "default": true
                },
                "notify_alongside_primary_responder": {
                  "default": true
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "trigger_type": {
                  "not": {
                    "enum": [
                      "incident_change"
                    ]
                  }
                }
              },
              "required": [
                "trigger_type"
              ]
            },
            "then": {
              "properties": {
                "on_incident_started": false,
                "on_incident_acknowledged": false,
                "on_incident_resolved": false,
                "on_incident_reopened": false,
                "on_incident_comment": false,
                "notify_alongside_primary_responder": false
              }
            }
          }
        ]
      },
      "IncidentsOutgoingWebhookIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegration"
          }
        }
      },
      "IncidentsOutgoingWebhookIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsOutgoingWebhookIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsOutgoingWebhookIntegrationUpdateAttributes"
      },
      "IncidentsOutgoingWebhookIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The integration's name, shown in the dashboard.",
            "examples": [
              "Incident updates to ops tooling"
            ]
          },
          "url": {
            "type": "string",
            "description": "The URL the webhook is sent to. For an `incident_change` webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.",
            "examples": [
              "https://example.com/webhooks/better-stack"
            ]
          },
          "metadata_api_version": {
            "type": "string",
            "enum": [
              "v2",
              "v3"
            ],
            "description": "How the `$METADATA` variables in the URL and `body_template` render.",
            "x-enum-descriptions": {
              "v2": "Renders `$METADATA.<key>` as the key's last plain-text value.",
              "v3": "Renders `$METADATA.<key>` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.<key>.values` list each value with its type."
            },
            "default": "v3",
            "examples": [
              "v3"
            ]
          },
          "on_incident_started": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident starts. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_acknowledged": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is acknowledged. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_resolved": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is resolved. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_reopened": {
            "type": "boolean",
            "description": "Whether to send the webhook when an incident is reopened. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "on_incident_comment": {
            "type": "boolean",
            "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a `comment` object, whose `attributes` hold the comment's `content`, `created_at`, `updated_at`, `user_id` and `user_email`. Only for an `incident_change` webhook.",
            "examples": [
              false
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an `incident_change` webhook.",
            "examples": [
              true
            ]
          },
          "custom_webhook_template_attributes": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "ID of the template saved on the integration."
              },
              "http_method": {
                "type": "string",
                "enum": [
                  "head",
                  "get",
                  "post",
                  "put",
                  "patch",
                  "options"
                ],
                "description": "The HTTP method of the request, `post` by default. A GET request is sent without a body."
              },
              "headers_template": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The header's name, such as `Content-Type`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The header's value, sent as written."
                    }
                  }
                },
                "description": "Custom request headers, as a list of objects with `name` and `value`. Header values are sent as written, without template variables."
              },
              "body_template": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "additionalProperties": true
                  }
                ],
                "description": "Request body template, as text or as a JSON object. Reads return it as text. An `incident_change` template can use `$INCIDENT_ID`, `$INCIDENT_URL`, `$NAME`, `$STATUS`, `$CAUSE`, `$URL`, `$HTTP_METHOD`, `$MONITOR_ID`, `$RESOURCE_ID`, `$RESOURCE_TYPE`, `$TEAM_ID`, `$TEAM_NAME`, `$INCIDENT_GROUP_ID`, `$REQUESTER`, `$STARTED_AT`, `$ACKNOWLEDGED_AT`, `$ACKNOWLEDGED_BY`, `$RESOLVED_AT`, `$RESOLVED_BY`, `$RESPONSE_URL`, `$RESPONSE_CONTENT`, `$RESPONSE_OPTIONS`, `$SCREENSHOT_URL`, `$INTEGRATION_IMAGE_URL`, `$REGIONS`, `$ESCALATION_POLICY_ID`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$INTEGRATION_ALERT_ID`, `$PLAYWRIGHT_SUMMARY`, `$COMMENT_ID`, `$COMMENT_CONTENT`, `$COMMENT_CREATED_AT`, `$COMMENT_AUTHOR_NAME` and `$COMMENT_AUTHOR_EMAIL`. A `monitor_change` template can use `$MONITOR_ID`, `$PRONOUNCEABLE_NAME`, `$URL`, `$MONITOR_TYPE`, `$STATUS`, `$MONITOR_GROUP_ID`, `$ESCALATION_POLICY_ID`, `$EXPIRATION_ESCALATION_POLICY_ID`, `$LAST_CHECKED_AT`, `$REQUIRED_KEYWORD`, `$VERIFY_SSL`, `$CHECK_FREQUENCY`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$TEAM_WAIT`, `$HTTP_METHOD`, `$REQUEST_TIMEOUT`, `$RECOVERY_PERIOD`, `$REQUEST_BODY`, `$PAUSED_AT`, `$SSL_EXPIRATION`, `$DOMAIN_EXPIRATION`, `$REGIONS` and `$PORT`. An `on_call_change` template can use `$MESSAGE`, `$EMAILS`, `$EMAILS_JSON_ARRAY`, `$ON_HOLIDAY_EMAILS`, `$ON_HOLIDAY_EMAILS_JSON_ARRAY`, `$CHANGE`, `$ON_CALL_CALENDAR_ID`, `$ON_CALL_CALENDAR_NAME` and `$DEFAULT_ON_CALL_CALENDAR`. Incident and monitor templates can also use the [metadata variables](/docs/uptime/webhooks/#metadata-variables). A time such as `$STARTED_AT` renders like `2026-07-01 12:00:00 UTC`, and the same name ending in `_ISO8601` renders it in ISO 8601. A variable that holds a list, such as `$REGIONS` or `$EMAILS_JSON_ARRAY`, renders as JSON, so put it in the template without quotes."
              },
              "auth_username": {
                "type": "string",
                "description": "The username for basic authentication. Set both username and password, or neither."
              },
              "auth_password": {
                "type": "string",
                "description": "The password for basic authentication. Set both username and password, or neither."
              },
              "default_body": {
                "type": "boolean",
                "description": "Send `true` with a new template that has no `body_template` to start from the default body for its `trigger_type`, as the form in the web app does. Has no effect on a saved template sent with its `id`, or when it's the only field you send."
              },
              "set_headers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The header's name, such as `Authorization`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The header's value, sent as written."
                    }
                  }
                },
                "description": "Headers to set by name. Each replaces a saved header of the same name, in any letter case, and the other saved headers stay. Can't be sent with `headers_template`."
              },
              "remove_headers": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Names of saved headers to remove, in any letter case. Can't be sent with `headers_template`."
              }
            },
            "description": "Custom request method, headers, body and basic authentication. Without a custom template, an `incident_change` or `monitor_change` webhook sends the incident or monitor under `data`, with what happened in `event`, such as `started` or `created`. Without a custom template, an `on_call_change` webhook sends the on-call calendar's `message`, `emails`, `on_holiday_emails`, `change`, `calendar_id`, `calendar_name` and `primary_calendar` under `data`. Returned as `custom_webhook_template`.",
            "writeOnly": true,
            "examples": [
              {
                "http_method": "post",
                "headers_template": [
                  {
                    "name": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body_template": "{\"incident_id\":\"$INCIDENT_ID\",\"name\":\"$NAME\",\"cause\":\"$CAUSE\"}",
                "auth_username": "user-placeholder",
                "auth_password": "s3cr3t-placeholder"
              }
            ]
          }
        }
      },
      "IncidentsPrometheusIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_prometheus_integration's id."
          },
          "type": {
            "type": "string",
            "const": "prometheus_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "Prometheus alerts"
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "73"
                ]
              },
              "webhook_url": {
                "type": "string",
                "description": "The URL to paste into Prometheus. Alerts Prometheus sends to it open incidents.",
                "x-sensitive": true,
                "readOnly": true,
                "examples": [
                  "https://incidents.betterstack.com/api/v1/prometheus/webhook/token-placeholder"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration opens no incidents.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "recovery_period": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Prometheus reports the alert as resolved.",
                "examples": [
                  180
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsPrometheusIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsPrometheusIntegrationCreateAttributes"
      },
      "IncidentsPrometheusIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Prometheus alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Prometheus reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsPrometheusIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsPrometheusIntegration"
          }
        }
      },
      "IncidentsPrometheusIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsPrometheusIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsPrometheusIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsPrometheusIntegrationUpdateAttributes"
      },
      "IncidentsPrometheusIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Prometheus alerts"
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "73"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the integration is paused. A paused integration opens no incidents.",
            "default": false,
            "examples": [
              false
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "recovery_period": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds a resolved alert must hold before the incident resolves. Has no effect for this integration, since an incident resolves as soon as Prometheus reports the alert as resolved.",
            "examples": [
              180
            ]
          }
        }
      },
      "IncidentsSlackIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_slack_integration's id."
          },
          "type": {
            "type": "string",
            "const": "slack_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "slack_team_id": {
                "type": "string",
                "description": "Slack workspace id.",
                "readOnly": true,
                "examples": [
                  "T04UQ7K4QMB"
                ]
              },
              "slack_team_name": {
                "type": "string",
                "description": "Slack workspace name.",
                "readOnly": true,
                "examples": [
                  "Acme Inc."
                ]
              },
              "slack_channel_id": {
                "type": "string",
                "description": "Slack channel id.",
                "readOnly": true,
                "examples": [
                  "C07Q2KF20EU"
                ]
              },
              "slack_channel_name": {
                "type": "string",
                "description": "Slack channel name.",
                "readOnly": true,
                "examples": [
                  "#better-stack-incidents"
                ]
              },
              "slack_status": {
                "type": "string",
                "enum": [
                  "active",
                  "account_inactive"
                ],
                "description": "Whether the connected Slack account is active.",
                "x-enum-descriptions": {
                  "active": "The connected Slack account is active.",
                  "account_inactive": "Slack reports the connected account as inactive."
                },
                "readOnly": true,
                "examples": [
                  "active"
                ]
              },
              "integration_type": {
                "type": "string",
                "enum": [
                  "legacy",
                  "verbose",
                  "thread",
                  "channel"
                ],
                "description": "How incidents are posted to Slack.",
                "x-enum-descriptions": {
                  "legacy": "Posts every incident to the connected channel, as `verbose` does. Slack users can't alert escalation policies from it.",
                  "verbose": "Posts every incident to the connected channel.",
                  "thread": "Starts a thread for each incident in the connected channel. Needs a paid plan.",
                  "channel": "Creates a new channel for each incident. Needs a paid plan."
                },
                "examples": [
                  "channel"
                ]
              },
              "channel_display_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name for the channel in Better Stack. Send an empty string to clear it.",
                "examples": [
                  "Incidents"
                ]
              },
              "channel_invitees": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "user",
                        "on_call_calendar",
                        "slack_user_group"
                      ],
                      "description": "What is invited."
                    },
                    "id": {
                      "type": "string",
                      "description": "ID of the on-call calendar or Slack user group. A user is `u123` or their e-mail, and is returned as `u123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/)."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "user"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "Who is invited to incident channels. Replaces the whole list.",
                "examples": [
                  [
                    {
                      "type": "user",
                      "id": "u123"
                    },
                    {
                      "type": "on_call_calendar",
                      "id": "1"
                    }
                  ]
                ]
              },
              "alert_options": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "team",
                        "policy",
                        "escalation_policy"
                      ],
                      "description": "Type of routing target.\n\n- `team`: A team, alerted through the channels turned on in this entry.\n- `policy`: An escalation policy. Responses use this value.\n- `escalation_policy`: An escalation policy. Requests accept it as well as `policy`.",
                      "x-enum-descriptions": {
                        "team": "A team, alerted through the channels turned on in this entry.",
                        "policy": "An escalation policy. Responses use this value.",
                        "escalation_policy": "An escalation policy. Requests accept it as well as `policy`."
                      }
                    },
                    "id": {
                      "type": "string",
                      "description": "A team's ID from [List teams](/docs/uptime/api/teams/list/), such as `t123`, or an escalation policy's ID from [List escalation policies](/docs/uptime/api/list-all-escalation-policies/)."
                    },
                    "name": {
                      "type": "string",
                      "description": "Team or escalation policy name.",
                      "readOnly": true
                    },
                    "team_id": {
                      "type": "string",
                      "description": "The escalation policy's team, as its team ID such as `t123`. Only on policy entries.",
                      "readOnly": true
                    },
                    "team_name": {
                      "type": "string",
                      "description": "The escalation policy's team name. Only on policy entries.",
                      "readOnly": true
                    },
                    "call": {
                      "type": "boolean",
                      "description": "Whether to alert the team by phone call. Only on `team` entries."
                    },
                    "sms": {
                      "type": "boolean",
                      "description": "Whether to alert the team by SMS. Only on `team` entries."
                    },
                    "email": {
                      "type": "boolean",
                      "description": "Whether to alert the team by e-mail. Only on `team` entries."
                    },
                    "push": {
                      "type": "boolean",
                      "description": "Whether to alert the team by push notification. Only on `team` entries."
                    },
                    "critical_alert": {
                      "type": "boolean",
                      "description": "Whether to alert the team by critical push notification. Only on `team` entries."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "The teams and escalation policies Slack users can alert from Slack, as under **Who can Slack users alert?** in the web app. An update replaces the whole list. An alert channel left out of a `team` entry is off.",
                "examples": [
                  [
                    {
                      "type": "policy",
                      "id": "73",
                      "name": "High severity policy",
                      "team_id": "t7",
                      "team_name": "Production"
                    },
                    {
                      "type": "team",
                      "id": "t7",
                      "name": "Production",
                      "call": false,
                      "sms": false,
                      "email": true,
                      "push": false,
                      "critical_alert": false
                    }
                  ]
                ]
              },
              "status_page_update_resources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "status_page",
                        "monitor",
                        "heartbeat",
                        "monitor_group",
                        "heartbeat_group",
                        "webhook_integration",
                        "email_integration",
                        "incoming_webhook",
                        "amazon_sns_integration",
                        "manually_tracked_item",
                        "logs_chart",
                        "catalog_reference"
                      ],
                      "description": "Resource type."
                    },
                    "id": {
                      "type": "string",
                      "description": "The resource's ID."
                    }
                  }
                },
                "description": "Resources whose status page updates are posted to this channel. Empty means every resource of the integration's team. Needs `post_status_page_updates` turned on. An update replaces the whole list.",
                "examples": [
                  [
                    {
                      "type": "status_page",
                      "id": "1"
                    }
                  ]
                ]
              },
              "private_channel": {
                "type": "boolean",
                "description": "Whether incident channels are created as private channels. Needs at least one entry in `channel_invitees`.",
                "examples": [
                  false
                ]
              },
              "alert_all_teams_and_policies": {
                "type": "boolean",
                "description": "Whether Slack users can alert every team and escalation policy in the organization, or only the ones in `alert_options`.",
                "examples": [
                  false
                ]
              },
              "invite_new_slack_users": {
                "type": "boolean",
                "description": "Whether people who join the Slack workspace are invited into the integration's Better Stack team as responders.",
                "examples": [
                  true
                ]
              },
              "on_call_notifications": {
                "type": "boolean",
                "description": "Whether the channel is notified when the primary responder changes.",
                "examples": [
                  true
                ]
              },
              "notify_on_pause": {
                "type": "boolean",
                "description": "Whether to post when a monitor, heartbeat, group or integration is paused.",
                "examples": [
                  true
                ]
              },
              "notify_on_resolve": {
                "type": "boolean",
                "description": "Whether to post when an incident is resolved.",
                "examples": [
                  true
                ]
              },
              "direct_message_on_mention": {
                "type": "boolean",
                "description": "Whether to send a direct message to users mentioned in incidents.",
                "examples": [
                  true
                ]
              },
              "ai_sre_on_mention": {
                "type": "boolean",
                "description": "Whether tagging Better Stack in Slack starts an AI SRE conversation.",
                "examples": [
                  true
                ]
              },
              "restrict_incident_creation_to_channel": {
                "type": "boolean",
                "description": "Whether only the members of this channel can create incidents.",
                "examples": [
                  false
                ]
              },
              "post_timeline_events": {
                "type": "boolean",
                "description": "Whether to post incident timeline events about e-mails, phone calls and integrations.",
                "examples": [
                  true
                ]
              },
              "post_incident_metadata": {
                "type": "boolean",
                "description": "Whether to post incident metadata.",
                "examples": [
                  true
                ]
              },
              "post_status_page_updates": {
                "type": "boolean",
                "description": "Whether to post status page updates. Turning it off clears `status_page_update_resources`.",
                "examples": [
                  true
                ]
              },
              "notify_alongside_primary_responder": {
                "type": "boolean",
                "description": "Whether this channel is notified alongside the primary responder on incidents with no escalation policy.",
                "examples": [
                  true
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsSlackIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsSlackIntegration"
          }
        }
      },
      "IncidentsSlackIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsSlackIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsSlackIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsSlackIntegrationUpdateAttributes"
      },
      "IncidentsSlackIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "integration_type": {
            "type": "string",
            "enum": [
              "legacy",
              "verbose",
              "thread",
              "channel"
            ],
            "description": "How incidents are posted to Slack.",
            "x-enum-descriptions": {
              "legacy": "Posts every incident to the connected channel, as `verbose` does. Slack users can't alert escalation policies from it.",
              "verbose": "Posts every incident to the connected channel.",
              "thread": "Starts a thread for each incident in the connected channel. Needs a paid plan.",
              "channel": "Creates a new channel for each incident. Needs a paid plan."
            },
            "examples": [
              "channel"
            ]
          },
          "channel_display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name for the channel in Better Stack. Send an empty string to clear it.",
            "examples": [
              "Incidents"
            ]
          },
          "channel_invitees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "user",
                    "on_call_calendar",
                    "slack_user_group"
                  ],
                  "description": "What is invited."
                },
                "id": {
                  "type": "string",
                  "description": "ID of the on-call calendar or Slack user group. A user is `u123` or their e-mail, and is returned as `u123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/)."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "user"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                      }
                    }
                  }
                }
              ]
            },
            "description": "Who is invited to incident channels. Replaces the whole list.",
            "examples": [
              [
                {
                  "type": "user",
                  "id": "u123"
                },
                {
                  "type": "on_call_calendar",
                  "id": "1"
                }
              ]
            ]
          },
          "alert_options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "team",
                    "policy",
                    "escalation_policy"
                  ],
                  "description": "Type of routing target.\n\n- `team`: A team, alerted through the channels turned on in this entry.\n- `policy`: An escalation policy. Responses use this value.\n- `escalation_policy`: An escalation policy. Requests accept it as well as `policy`.",
                  "x-enum-descriptions": {
                    "team": "A team, alerted through the channels turned on in this entry.",
                    "policy": "An escalation policy. Responses use this value.",
                    "escalation_policy": "An escalation policy. Requests accept it as well as `policy`."
                  }
                },
                "id": {
                  "type": "string",
                  "description": "A team's ID from [List teams](/docs/uptime/api/teams/list/), such as `t123`, or an escalation policy's ID from [List escalation policies](/docs/uptime/api/list-all-escalation-policies/)."
                },
                "name": {
                  "type": "string",
                  "description": "Team or escalation policy name.",
                  "readOnly": true
                },
                "team_id": {
                  "type": "string",
                  "description": "The escalation policy's team, as its team ID such as `t123`. Only on policy entries.",
                  "readOnly": true
                },
                "team_name": {
                  "type": "string",
                  "description": "The escalation policy's team name. Only on policy entries.",
                  "readOnly": true
                },
                "call": {
                  "type": "boolean",
                  "description": "Whether to alert the team by phone call. Only on `team` entries."
                },
                "sms": {
                  "type": "boolean",
                  "description": "Whether to alert the team by SMS. Only on `team` entries."
                },
                "email": {
                  "type": "boolean",
                  "description": "Whether to alert the team by e-mail. Only on `team` entries."
                },
                "push": {
                  "type": "boolean",
                  "description": "Whether to alert the team by push notification. Only on `team` entries."
                },
                "critical_alert": {
                  "type": "boolean",
                  "description": "Whether to alert the team by critical push notification. Only on `team` entries."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "team"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^t[1-9][0-9]*$"
                      }
                    }
                  }
                }
              ]
            },
            "description": "The teams and escalation policies Slack users can alert from Slack, as under **Who can Slack users alert?** in the web app. An update replaces the whole list. An alert channel left out of a `team` entry is off.",
            "examples": [
              [
                {
                  "type": "policy",
                  "id": "73",
                  "name": "High severity policy",
                  "team_id": "t7",
                  "team_name": "Production"
                },
                {
                  "type": "team",
                  "id": "t7",
                  "name": "Production",
                  "call": false,
                  "sms": false,
                  "email": true,
                  "push": false,
                  "critical_alert": false
                }
              ]
            ]
          },
          "status_page_update_resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "status_page",
                    "monitor",
                    "heartbeat",
                    "monitor_group",
                    "heartbeat_group",
                    "webhook_integration",
                    "email_integration",
                    "incoming_webhook",
                    "amazon_sns_integration",
                    "manually_tracked_item",
                    "logs_chart",
                    "catalog_reference"
                  ],
                  "description": "Resource type."
                },
                "id": {
                  "type": "string",
                  "description": "The resource's ID."
                }
              }
            },
            "description": "Resources whose status page updates are posted to this channel. Empty means every resource of the integration's team. Needs `post_status_page_updates` turned on. An update replaces the whole list.",
            "examples": [
              [
                {
                  "type": "status_page",
                  "id": "1"
                }
              ]
            ]
          },
          "private_channel": {
            "type": "boolean",
            "description": "Whether incident channels are created as private channels. Needs at least one entry in `channel_invitees`.",
            "examples": [
              false
            ]
          },
          "alert_all_teams_and_policies": {
            "type": "boolean",
            "description": "Whether Slack users can alert every team and escalation policy in the organization, or only the ones in `alert_options`.",
            "examples": [
              false
            ]
          },
          "invite_new_slack_users": {
            "type": "boolean",
            "description": "Whether people who join the Slack workspace are invited into the integration's Better Stack team as responders.",
            "examples": [
              true
            ]
          },
          "on_call_notifications": {
            "type": "boolean",
            "description": "Whether the channel is notified when the primary responder changes.",
            "examples": [
              true
            ]
          },
          "notify_on_pause": {
            "type": "boolean",
            "description": "Whether to post when a monitor, heartbeat, group or integration is paused.",
            "examples": [
              true
            ]
          },
          "notify_on_resolve": {
            "type": "boolean",
            "description": "Whether to post when an incident is resolved.",
            "examples": [
              true
            ]
          },
          "direct_message_on_mention": {
            "type": "boolean",
            "description": "Whether to send a direct message to users mentioned in incidents.",
            "examples": [
              true
            ]
          },
          "ai_sre_on_mention": {
            "type": "boolean",
            "description": "Whether tagging Better Stack in Slack starts an AI SRE conversation.",
            "examples": [
              true
            ]
          },
          "restrict_incident_creation_to_channel": {
            "type": "boolean",
            "description": "Whether only the members of this channel can create incidents.",
            "examples": [
              false
            ]
          },
          "post_timeline_events": {
            "type": "boolean",
            "description": "Whether to post incident timeline events about e-mails, phone calls and integrations.",
            "examples": [
              true
            ]
          },
          "post_incident_metadata": {
            "type": "boolean",
            "description": "Whether to post incident metadata.",
            "examples": [
              true
            ]
          },
          "post_status_page_updates": {
            "type": "boolean",
            "description": "Whether to post status page updates. Turning it off clears `status_page_update_resources`.",
            "examples": [
              true
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether this channel is notified alongside the primary responder on incidents with no escalation policy.",
            "examples": [
              true
            ]
          }
        }
      },
      "IncidentsSplunkOnCallIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The incidents_splunk_on_call_integration's id."
          },
          "type": {
            "type": "string",
            "const": "splunk_on_call_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Integration name.",
                "examples": [
                  "Splunk On-Call alerts"
                ]
              },
              "url": {
                "type": "string",
                "description": "Splunk On-Call REST endpoint URL.",
                "x-sensitive": true,
                "examples": [
                  "https://alert.victorops.com/integrations/generic/20131114/alert/api-key-placeholder/routing-key-placeholder"
                ]
              },
              "notify_alongside_primary_responder": {
                "type": "boolean",
                "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the integration is paused. A paused integration sends nothing to Splunk On-Call.",
                "readOnly": true,
                "examples": [
                  false
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this integration.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "IncidentsSplunkOnCallIntegrationCreate": {
        "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationCreateAttributes"
      },
      "IncidentsSplunkOnCallIntegrationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Splunk On-Call alerts"
            ]
          },
          "url": {
            "type": "string",
            "description": "Splunk On-Call REST endpoint URL.",
            "x-sensitive": true,
            "examples": [
              "https://alert.victorops.com/integrations/generic/20131114/alert/api-key-placeholder/routing-key-placeholder"
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration.",
            "default": true,
            "examples": [
              true
            ]
          }
        },
        "required": [
          "url"
        ]
      },
      "IncidentsSplunkOnCallIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegration"
          }
        }
      },
      "IncidentsSplunkOnCallIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "IncidentsSplunkOnCallIntegrationUpdate": {
        "$ref": "#/components/schemas/IncidentsSplunkOnCallIntegrationUpdateAttributes"
      },
      "IncidentsSplunkOnCallIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integration name.",
            "examples": [
              "Splunk On-Call alerts"
            ]
          },
          "url": {
            "type": "string",
            "description": "Splunk On-Call REST endpoint URL.",
            "x-sensitive": true,
            "examples": [
              "https://alert.victorops.com/integrations/generic/20131114/alert/api-key-placeholder/routing-key-placeholder"
            ]
          },
          "notify_alongside_primary_responder": {
            "type": "boolean",
            "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration.",
            "default": true,
            "examples": [
              true
            ]
          }
        }
      },
      "Metadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The metadata's id."
          },
          "type": {
            "type": "string",
            "const": "metadata"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "owner_type": {
                "type": "string",
                "description": "Type of object this metadata is attached to, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`. Create and update accept every type except `CallRouting`. Changing it together with `owner_id` moves the key to another object.",
                "examples": [
                  "Monitor"
                ]
              },
              "owner_id": {
                "type": "string",
                "description": "ID of the object this metadata is attached to.",
                "examples": [
                  "2"
                ]
              },
              "key": {
                "type": "string",
                "description": "Metadata key. Renaming it keeps the entry's ID and values.",
                "examples": [
                  "Owner"
                ]
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The text of a `String` value."
                    },
                    "item_id": {
                      "type": "string",
                      "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                    },
                    "email": {
                      "type": "string",
                      "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "User"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "Team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "Values attached to the key.",
                "examples": [
                  [
                    {
                      "type": "Team",
                      "item_id": "t123",
                      "name": "Platform team"
                    }
                  ]
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns the object this metadata is attached to, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the object this metadata is attached to.",
                "readOnly": true,
                "examples": [
                  "Testing"
                ]
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "owner": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "id",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "monitor",
                          "heartbeat",
                          "incident",
                          "webhook_integration",
                          "email_integration",
                          "incoming_webhook",
                          "amazon_sns_integration",
                          "call_routing"
                        ]
                      }
                    }
                  }
                },
                "description": "The object this metadata is attached to, linked by its ID and type. The object is the same as in `owner_id` and `owner_type`, with the type written as its resource's type, such as `monitor` for `Monitor`."
              }
            }
          }
        }
      },
      "MetadataCreate": {
        "$ref": "#/components/schemas/MetadataCreateAttributes"
      },
      "MetadataCreateAttributes": {
        "type": "object",
        "properties": {
          "owner_type": {
            "type": "string",
            "description": "Type of object this metadata is attached to, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`. Create and update accept every type except `CallRouting`. Changing it together with `owner_id` moves the key to another object.",
            "examples": [
              "Monitor"
            ]
          },
          "owner_id": {
            "type": "string",
            "description": "ID of the object this metadata is attached to.",
            "examples": [
              "2"
            ]
          },
          "key": {
            "type": "string",
            "description": "Metadata key. Renaming it keeps the entry's ID and values.",
            "examples": [
              "Owner"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                },
                "value": {
                  "type": "string",
                  "description": "The text of a `String` value."
                },
                "item_id": {
                  "type": "string",
                  "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                },
                "email": {
                  "type": "string",
                  "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "User"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "item_id": {
                        "type": "string",
                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                      }
                    }
                  }
                },
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "Team"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "item_id": {
                        "type": "string",
                        "pattern": "^t[1-9][0-9]*$"
                      }
                    }
                  }
                }
              ]
            },
            "description": "Values attached to the key. Required on create. An update replaces all current values, and an empty list removes the key.",
            "examples": [
              [
                {
                  "type": "Team",
                  "item_id": "t123",
                  "name": "Platform team"
                }
              ]
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "replace",
              "merge"
            ],
            "description": "What create does when the object already has this key.",
            "x-enum-descriptions": {
              "replace": "Overwrites the key's values.",
              "merge": "Adds the new values to the key and skips duplicates."
            },
            "writeOnly": true,
            "default": "replace",
            "examples": [
              "merge"
            ]
          }
        },
        "required": [
          "owner_type",
          "owner_id",
          "key",
          "values"
        ]
      },
      "MetadataDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Metadata"
          }
        }
      },
      "MetadataList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Metadata"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "MetadataUpdate": {
        "$ref": "#/components/schemas/MetadataUpdateAttributes"
      },
      "MetadataUpdateAttributes": {
        "type": "object",
        "properties": {
          "owner_type": {
            "type": "string",
            "description": "Type of object this metadata is attached to, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`. Create and update accept every type except `CallRouting`. Changing it together with `owner_id` moves the key to another object.",
            "examples": [
              "Monitor"
            ]
          },
          "owner_id": {
            "type": "string",
            "description": "ID of the object this metadata is attached to.",
            "examples": [
              "2"
            ]
          },
          "key": {
            "type": "string",
            "description": "Metadata key. Renaming it keeps the entry's ID and values.",
            "examples": [
              "Owner"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                },
                "value": {
                  "type": "string",
                  "description": "The text of a `String` value."
                },
                "item_id": {
                  "type": "string",
                  "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                },
                "email": {
                  "type": "string",
                  "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "User"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "item_id": {
                        "type": "string",
                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                      }
                    }
                  }
                },
                {
                  "if": {
                    "properties": {
                      "type": {
                        "const": "Team"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "then": {
                    "properties": {
                      "item_id": {
                        "type": "string",
                        "pattern": "^t[1-9][0-9]*$"
                      }
                    }
                  }
                }
              ]
            },
            "description": "Values attached to the key. Required on create. An update replaces all current values, and an empty list removes the key.",
            "examples": [
              [
                {
                  "type": "Team",
                  "item_id": "t123",
                  "name": "Platform team"
                }
              ]
            ]
          }
        }
      },
      "Monitor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The monitor's id."
          },
          "type": {
            "type": "string",
            "const": "monitor"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The URL of your website, or the host to check for `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns` monitors, without a protocol. `null` on `playwright` monitors.",
                "examples": [
                  "https://uptime.betterstack.com"
                ]
              },
              "monitor_type": {
                "type": "string",
                "enum": [
                  "status",
                  "expected_status_code",
                  "keyword",
                  "keyword_absence",
                  "ping",
                  "tcp",
                  "udp",
                  "smtp",
                  "pop",
                  "imap",
                  "dns",
                  "playwright"
                ],
                "description": "What the monitor checks.",
                "x-enum-descriptions": {
                  "status": "Checks that the URL returns a 2XX status code.",
                  "expected_status_code": "Checks that the URL returns one of `expected_status_codes`.",
                  "keyword": "Checks that the page contains `required_keyword`.",
                  "keyword_absence": "Checks that the page doesn't contain `required_keyword`.",
                  "ping": "Pings the host in `url`.",
                  "tcp": "Checks that a TCP `port` on the host accepts connections.",
                  "udp": "Sends `request_body` to a UDP `port` on the host and checks that the answer contains `required_keyword`.",
                  "smtp": "Checks for an SMTP server on the host at `port`.",
                  "pop": "Checks for a POP3 server on the host at `port`.",
                  "imap": "Checks for an IMAP server on the host at `port`.",
                  "dns": "Checks that the DNS server on the host answers a query for the domain in `request_body`.",
                  "playwright": "Runs the scenario in `playwright_script`."
                },
                "default": "status",
                "examples": [
                  "status"
                ]
              },
              "pronounceable_name": {
                "type": "string",
                "description": "The name of the monitor, which we use when we call you.",
                "examples": [
                  "Uptime homepage"
                ]
              },
              "monitor_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the monitor group this monitor belongs to.",
                "examples": [
                  "12345"
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether the monitor is paused. A paused monitor opens no incidents and sends no alerts.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "check_frequency": {
                "type": "integer",
                "format": "int64",
                "description": "How often to check, in seconds. Must be at least the `request_timeout`. A new or changed value below the plan's shortest interval is refused with a 422. A value the monitor already has, such as one set before a plan change, can still be sent. Accepted values depend on `monitor_type`.\n\n- `playwright`: It accepts `60`, `180`, `300`, `600`, `900`, `1800`, `3600`, `21600`, `43200` or `86400`.\n- Every other type: It accepts `30`, `45`, `60`, `120`, `180`, `300`, `600`, `900` or `1800`.",
                "default": 180,
                "examples": [
                  30
                ]
              },
              "effective_check_frequency": {
                "type": "integer",
                "format": "int64",
                "description": "How often the monitor actually checks, in seconds. `effective_check_frequency_reason` says why it differs from `check_frequency`.",
                "readOnly": true,
                "examples": [
                  60
                ]
              },
              "effective_check_frequency_reason": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "slowed_down",
                  "plan_minimum",
                  "request_timeout",
                  null
                ],
                "description": "Why `effective_check_frequency` differs from `check_frequency`. `null` when they're the same.",
                "x-enum-descriptions": {
                  "slowed_down": "We check less often after repeated `429` responses or timeouts.",
                  "plan_minimum": "Your plan's shortest interval between checks is longer than `check_frequency`, which was saved before the plan changed.",
                  "request_timeout": "The monitor's `request_timeout` is longer than `check_frequency`."
                },
                "readOnly": true,
                "examples": [
                  "slowed_down"
                ]
              },
              "request_timeout": {
                "type": "integer",
                "format": "int64",
                "description": "How long a check waits before it times out. The unit and accepted values depend on `monitor_type`.\n\n- `status`, `expected_status_code`, `keyword` and `keyword_absence`: In seconds. It accepts `2`, `3`, `5`, `10`, `15`, `30`, `45`, `60`, `90`, `120` or `180` and defaults to `30`.\n- `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns`: In milliseconds. It accepts `500`, `1000`, `2000`, `3000` or `5000` and defaults to `5000`.\n- `playwright`: In seconds. It accepts `15`, `30`, `45`, `60`, `120`, `180`, `240`, `300`, `360`, `480`, `600` or `900` and defaults to `30`.",
                "examples": [
                  15
                ]
              },
              "recovery_period": {
                "type": "integer",
                "format": "int64",
                "enum": [
                  0,
                  60,
                  180,
                  300,
                  900,
                  1800,
                  3600,
                  7200
                ],
                "description": "How long checks must keep passing before the incident resolves, in seconds.",
                "default": 180,
                "examples": [
                  0
                ]
              },
              "confirmation_period": {
                "type": "integer",
                "format": "int64",
                "description": "How long to wait after a failure before starting an incident, in seconds, from `0` to `86400`.",
                "default": 0,
                "examples": [
                  120
                ]
              },
              "required_keyword": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The keyword to look for.",
                "examples": [
                  "We call you"
                ]
              },
              "http_method": {
                "type": "string",
                "description": "The HTTP method of the request. Accepts `get`, `head`, `post`, `put`, `patch` or `options`. Responses return the method in lowercase. `head` can't be used with `keyword` or `keyword_absence` monitors.",
                "default": "get",
                "examples": [
                  "get"
                ]
              },
              "request_body": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The body of the request. A `dns` monitor requires it. Set it to the domain to query. A `udp` monitor sends it as its content.",
                "examples": [
                  "{\"query\": \"health\"}"
                ]
              },
              "request_headers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The header's ID.",
                      "readOnly": true
                    },
                    "name": {
                      "type": "string",
                      "description": "The header name, like `Content-Type`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The header value, like `application/json`."
                    }
                  }
                },
                "description": "Custom request headers, as a list of `{name, value}` objects. A list replaces all headers, and an empty list removes them all.",
                "x-detect-credentials": true,
                "examples": [
                  [
                    {
                      "name": "X-Custom-Header",
                      "value": "custom header value"
                    }
                  ]
                ]
              },
              "expected_status_codes": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                },
                "description": "HTTP status codes from `100` to `599` that count as up. A `3xx` code needs `follow_redirects` and `remember_cookies` set to `false`.",
                "default": [],
                "examples": [
                  [
                    200,
                    201
                  ]
                ]
              },
              "follow_redirects": {
                "type": "boolean",
                "description": "Whether we follow HTTP redirects.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "remember_cookies": {
                "type": "boolean",
                "description": "Whether we keep cookies when redirecting.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "verify_ssl": {
                "type": "boolean",
                "description": "Whether a check fails on an invalid SSL certificate.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "auth_username": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "HTTP basic-auth username. `null` when none is set.",
                "x-sensitive": true,
                "examples": [
                  "basic-auth-user"
                ]
              },
              "regions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Regions to check from, as any combination of `us`, `eu`, `as` and `au`. When none are set, we check from all regions. Responses then list all of them.",
                "examples": [
                  [
                    "us",
                    "eu",
                    "as",
                    "au"
                  ]
                ]
              },
              "ip_version": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "ipv4",
                  "ipv6",
                  null
                ],
                "description": "The IP version to check over. `null` checks over both IPv4 and IPv6.",
                "x-enum-descriptions": {
                  "ipv4": "Checks over IPv4 only.",
                  "ipv6": "Checks over IPv6 only."
                },
                "examples": [
                  "ipv4"
                ]
              },
              "port": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The port to check. `tcp` and `udp` accept one port. `smtp` accepts `25`, `465` or `587`, `pop` accepts `110` or `995`, and `imap` accepts `143` or `993`, with several separated by commas like `25,465,587`.",
                "examples": [
                  "25,465,587"
                ]
              },
              "proxy_host": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The host of the proxy server we send the check through, without a protocol. Can include credentials, like `user:pass@proxy.example.com`. Only for `status`, `expected_status_code`, `keyword` and `keyword_absence` monitors.",
                "examples": [
                  "proxy.example.com"
                ]
              },
              "proxy_port": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "The port of the proxy server, from `1` to `65535`. Requires `proxy_host`.",
                "examples": [
                  8080
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  true
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "team_wait": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
                "examples": [
                  180
                ]
              },
              "escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
                "examples": [
                  "12345"
                ]
              },
              "expiration_escalation_policy_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ID of the escalation policy for alerts about expiring SSL certificates and domains. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
                "examples": [
                  "12345"
                ]
              },
              "ssl_expiration": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "enum": [
                  1,
                  2,
                  3,
                  7,
                  14,
                  30,
                  60,
                  null
                ],
                "description": "How many days before the SSL certificate expires we alert you. `null` turns the check off and is the default. Monitors of exactly the same domain share this setting, not its subdomains. For example, monitors of `example.com/a` and `example.com/b` share it, while `www.example.com` has its own. A value set on one monitor is copied to all of them, so set the same value on each.",
                "examples": [
                  7
                ]
              },
              "domain_expiration": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "enum": [
                  1,
                  2,
                  3,
                  7,
                  14,
                  30,
                  60,
                  null
                ],
                "description": "How many days before the domain expires we alert you. `null` turns the check off and is the default. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
                "examples": [
                  14
                ]
              },
              "maintenance_from": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Start of the daily maintenance window, when we don't check, as `HH:MM:SS`, like `01:00:00`. `null` when no window is set.",
                "examples": [
                  "01:02:00"
                ]
              },
              "maintenance_to": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "End of the daily maintenance window, as `HH:MM:SS`, like `03:00:00`. Required with `maintenance_from`. `null` when no window is set.",
                "examples": [
                  "03:04:00"
                ]
              },
              "maintenance_timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "time-zone",
                "description": "The time zone of the maintenance window, as a Rails time zone name like `Amsterdam` or its IANA ID like `Europe/Amsterdam`. `null` when it isn't set, which works as UTC.",
                "default": "UTC",
                "examples": [
                  "Amsterdam"
                ]
              },
              "maintenance_days": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "uniqueItems": true,
                "x-unordered": true,
                "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window belongs to the day it starts. Order doesn't matter.",
                "default": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri",
                  "sat",
                  "sun"
                ],
                "examples": [
                  [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ]
                ]
              },
              "playwright_script": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The JavaScript source of the scenario, for `playwright` monitors.",
                "examples": [
                  "import { test, expect } from '@playwright/test';\n\ntest('has title', async ({ page }) => {\n  await page.goto('https://betterstack.com/')\n  await expect(page).toHaveTitle(/Better Stack/)\n});\n"
                ]
              },
              "scenario_name": {
                "type": "string",
                "description": "The name of a `playwright` monitor's scenario. Required for `playwright` monitors, and returned only for them.",
                "examples": [
                  "Better Stack homepage title"
                ]
              },
              "environment_variables": {
                "type": "object",
                "additionalProperties": {
                  "type": "null"
                },
                "description": "Environment variables the `playwright` scenario can use, as name and value pairs like `{\"PASSWORD\": \"passw0rd\"}`.",
                "x-writeonly-values": true,
                "x-sensitive": true,
                "examples": [
                  {
                    "PASSWORD": null
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "up",
                  "down",
                  "validating",
                  "paused",
                  "pending",
                  "maintenance"
                ],
                "description": "The monitor's current status.",
                "x-enum-descriptions": {
                  "up": "Checks pass.",
                  "down": "Checks fail.",
                  "validating": "The service seems back up, but the `recovery_period` hasn't passed yet.",
                  "paused": "The monitor is paused.",
                  "pending": "The monitor waits for its first check.",
                  "maintenance": "The monitor is in a maintenance window."
                },
                "readOnly": true,
                "examples": [
                  "up"
                ]
              },
              "last_checked_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the monitor was last checked.",
                "readOnly": true,
                "examples": [
                  "2020-09-01T14:17:46.000Z"
                ]
              },
              "paused_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the monitor was paused.",
                "readOnly": true,
                "examples": [
                  "2020-09-08T13:10:20.000Z"
                ]
              },
              "checks_version": {
                "type": "string",
                "description": "Version of the checks engine. Always `v2`.",
                "readOnly": true,
                "examples": [
                  "v2"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the monitor was created.",
                "readOnly": true,
                "examples": [
                  "2020-02-18T13:38:16.586Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the monitor was last updated.",
                "readOnly": true,
                "examples": [
                  "2020-09-08T13:10:20.202Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this monitor, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this monitor.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                      },
                      "value": {
                        "type": "string",
                        "description": "The text of a `String` value."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                      },
                      "email": {
                        "type": "string",
                        "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ]
                  }
                },
                "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat.",
                "examples": [
                  {
                    "Service": [
                      {
                        "type": "String",
                        "value": "Checkout"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "escalation_policy": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "required": [
                      "id",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "const": "escalation_policy"
                      }
                    }
                  }
                },
                "description": "The escalation policy used for alerts, linked by its ID. Names the same policy as `escalation_policy_id`. `null` when the monitor has none."
              },
              "expiration_escalation_policy": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "required": [
                      "id",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "const": "escalation_policy"
                      }
                    }
                  }
                },
                "description": "The escalation policy for alerts about expiring SSL certificates and domains, linked by its ID. Names the same policy as `expiration_escalation_policy_id`. `null` when the monitor has none."
              }
            }
          }
        }
      },
      "MonitorCreate": {
        "$ref": "#/components/schemas/MonitorCreateAttributes"
      },
      "MonitorCreateAttributes": {
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL of your website, or the host to check for `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns` monitors, without a protocol. `null` on `playwright` monitors. Required for every type except `playwright`, which accepts `scenario_name` instead.",
            "examples": [
              "https://uptime.betterstack.com"
            ]
          },
          "monitor_type": {
            "type": "string",
            "enum": [
              "status",
              "expected_status_code",
              "keyword",
              "keyword_absence",
              "ping",
              "tcp",
              "udp",
              "smtp",
              "pop",
              "imap",
              "dns",
              "playwright"
            ],
            "description": "What the monitor checks.",
            "x-enum-descriptions": {
              "status": "Checks that the URL returns a 2XX status code.",
              "expected_status_code": "Checks that the URL returns one of `expected_status_codes`.",
              "keyword": "Checks that the page contains `required_keyword`.",
              "keyword_absence": "Checks that the page doesn't contain `required_keyword`.",
              "ping": "Pings the host in `url`.",
              "tcp": "Checks that a TCP `port` on the host accepts connections.",
              "udp": "Sends `request_body` to a UDP `port` on the host and checks that the answer contains `required_keyword`.",
              "smtp": "Checks for an SMTP server on the host at `port`.",
              "pop": "Checks for a POP3 server on the host at `port`.",
              "imap": "Checks for an IMAP server on the host at `port`.",
              "dns": "Checks that the DNS server on the host answers a query for the domain in `request_body`.",
              "playwright": "Runs the scenario in `playwright_script`."
            },
            "default": "status",
            "examples": [
              "status"
            ]
          },
          "pronounceable_name": {
            "type": "string",
            "description": "The name of the monitor, which we use when we call you.",
            "examples": [
              "Uptime homepage"
            ]
          },
          "monitor_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the monitor group this monitor belongs to.",
            "examples": [
              "12345"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the monitor is paused. A paused monitor opens no incidents and sends no alerts. Send `true` to pause it or `false` to resume it.",
            "default": false,
            "examples": [
              false
            ]
          },
          "check_frequency": {
            "type": "integer",
            "format": "int64",
            "description": "How often to check, in seconds. Must be at least the `request_timeout`. A new or changed value below the plan's shortest interval is refused with a 422. A value the monitor already has, such as one set before a plan change, can still be sent. Accepted values depend on `monitor_type`.\n\n- `playwright`: It accepts `60`, `180`, `300`, `600`, `900`, `1800`, `3600`, `21600`, `43200` or `86400`.\n- Every other type: It accepts `30`, `45`, `60`, `120`, `180`, `300`, `600`, `900` or `1800`.",
            "default": 180,
            "examples": [
              30
            ]
          },
          "request_timeout": {
            "type": "integer",
            "format": "int64",
            "description": "How long a check waits before it times out. The unit and accepted values depend on `monitor_type`.\n\n- `status`, `expected_status_code`, `keyword` and `keyword_absence`: In seconds. It accepts `2`, `3`, `5`, `10`, `15`, `30`, `45`, `60`, `90`, `120` or `180` and defaults to `30`.\n- `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns`: In milliseconds. It accepts `500`, `1000`, `2000`, `3000` or `5000` and defaults to `5000`.\n- `playwright`: In seconds. It accepts `15`, `30`, `45`, `60`, `120`, `180`, `240`, `300`, `360`, `480`, `600` or `900` and defaults to `30`.",
            "examples": [
              15
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long checks must keep passing before the incident resolves, in seconds.",
            "default": 180,
            "examples": [
              0
            ]
          },
          "confirmation_period": {
            "type": "integer",
            "format": "int64",
            "description": "How long to wait after a failure before starting an incident, in seconds, from `0` to `86400`.",
            "default": 0,
            "examples": [
              120
            ]
          },
          "required_keyword": {
            "type": [
              "string",
              "null"
            ],
            "description": "The keyword to look for. Required for `keyword`, `keyword_absence` and `udp` monitors.",
            "examples": [
              "We call you"
            ]
          },
          "http_method": {
            "type": "string",
            "description": "The HTTP method of the request. Accepts `get`, `head`, `post`, `put`, `patch` or `options`. Responses return the method in lowercase. `head` can't be used with `keyword` or `keyword_absence` monitors.",
            "default": "get",
            "examples": [
              "get"
            ]
          },
          "request_body": {
            "type": [
              "string",
              "null"
            ],
            "description": "The body of the request. A `dns` monitor requires it. Set it to the domain to query. A `udp` monitor sends it as its content. Must be empty for `get`, `head` and `options` requests.",
            "examples": [
              "{\"query\": \"health\"}"
            ]
          },
          "request_headers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The header's ID.",
                  "readOnly": true
                },
                "name": {
                  "type": "string",
                  "description": "The header name, like `Content-Type`."
                },
                "value": {
                  "type": "string",
                  "description": "The header value, like `application/json`."
                }
              }
            },
            "description": "Custom request headers, as a list of `{name, value}` objects. A list replaces all headers, and an empty list removes them all.",
            "x-detect-credentials": true,
            "examples": [
              [
                {
                  "name": "X-Custom-Header",
                  "value": "custom header value"
                }
              ]
            ]
          },
          "expected_status_codes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "HTTP status codes from `100` to `599` that count as up. A `3xx` code needs `follow_redirects` and `remember_cookies` set to `false`. Required for `expected_status_code` monitors.",
            "default": [],
            "examples": [
              [
                200,
                201
              ]
            ]
          },
          "follow_redirects": {
            "type": "boolean",
            "description": "Whether we follow HTTP redirects.",
            "default": true,
            "examples": [
              true
            ]
          },
          "remember_cookies": {
            "type": "boolean",
            "description": "Whether we keep cookies when redirecting.",
            "default": true,
            "examples": [
              true
            ]
          },
          "verify_ssl": {
            "type": "boolean",
            "description": "Whether a check fails on an invalid SSL certificate.",
            "default": true,
            "examples": [
              true
            ]
          },
          "auth_username": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTTP basic-auth username. `null` when none is set. Sending `null` doesn't remove a stored value.",
            "x-sensitive": true,
            "examples": [
              "basic-auth-user"
            ]
          },
          "auth_password": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTTP basic-auth password. Not returned after it's saved. Sending `null` doesn't remove a stored value.",
            "x-sensitive": true,
            "writeOnly": true,
            "examples": [
              "s3cr3t-placeholder"
            ]
          },
          "regions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Regions to check from, as any combination of `us`, `eu`, `as` and `au`. When none are set, we check from all regions. Responses then list all of them.",
            "examples": [
              [
                "us",
                "eu",
                "as",
                "au"
              ]
            ]
          },
          "ip_version": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ipv4",
              "ipv6",
              null
            ],
            "description": "The IP version to check over. `null` checks over both IPv4 and IPv6.",
            "x-enum-descriptions": {
              "ipv4": "Checks over IPv4 only.",
              "ipv6": "Checks over IPv6 only."
            },
            "examples": [
              "ipv4"
            ]
          },
          "port": {
            "type": [
              "string",
              "null"
            ],
            "description": "The port to check. `tcp` and `udp` accept one port. `smtp` accepts `25`, `465` or `587`, `pop` accepts `110` or `995`, and `imap` accepts `143` or `993`, with several separated by commas like `25,465,587`. Required for `tcp`, `udp`, `smtp`, `pop` and `imap` monitors.",
            "examples": [
              "25,465,587"
            ]
          },
          "proxy_host": {
            "type": [
              "string",
              "null"
            ],
            "description": "The host of the proxy server we send the check through, without a protocol. Can include credentials, like `user:pass@proxy.example.com`. Only for `status`, `expected_status_code`, `keyword` and `keyword_absence` monitors.",
            "examples": [
              "proxy.example.com"
            ]
          },
          "proxy_port": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The port of the proxy server, from `1` to `65535`. Requires `proxy_host`.",
            "examples": [
              8080
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "12345"
            ]
          },
          "expiration_escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts about expiring SSL certificates and domains. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
            "examples": [
              "12345"
            ]
          },
          "ssl_expiration": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "enum": [
              1,
              2,
              3,
              7,
              14,
              30,
              60,
              null
            ],
            "description": "How many days before the SSL certificate expires we alert you. `null` turns the check off and is the default. Monitors of exactly the same domain share this setting, not its subdomains. For example, monitors of `example.com/a` and `example.com/b` share it, while `www.example.com` has its own. A value set on one monitor is copied to all of them, so set the same value on each.",
            "examples": [
              7
            ]
          },
          "domain_expiration": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "enum": [
              1,
              2,
              3,
              7,
              14,
              30,
              60,
              null
            ],
            "description": "How many days before the domain expires we alert you. `null` turns the check off and is the default. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
            "examples": [
              14
            ]
          },
          "maintenance_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the daily maintenance window, when we don't check, as `HH:MM:SS`, like `01:00:00`. `null` when no window is set.",
            "examples": [
              "01:02:00"
            ]
          },
          "maintenance_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "End of the daily maintenance window, as `HH:MM:SS`, like `03:00:00`. Required with `maintenance_from`. `null` when no window is set.",
            "examples": [
              "03:04:00"
            ]
          },
          "maintenance_timezone": {
            "type": [
              "string",
              "null"
            ],
            "format": "time-zone",
            "description": "The time zone of the maintenance window, as a Rails time zone name like `Amsterdam` or its IANA ID like `Europe/Amsterdam`. `null` when it isn't set, which works as UTC.",
            "default": "UTC",
            "examples": [
              "Amsterdam"
            ]
          },
          "maintenance_days": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window belongs to the day it starts. Order doesn't matter.",
            "default": [
              "mon",
              "tue",
              "wed",
              "thu",
              "fri",
              "sat",
              "sun"
            ],
            "examples": [
              [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri",
                "sat",
                "sun"
              ]
            ]
          },
          "playwright_script": {
            "type": [
              "string",
              "null"
            ],
            "description": "The JavaScript source of the scenario, for `playwright` monitors.",
            "examples": [
              "import { test, expect } from '@playwright/test';\n\ntest('has title', async ({ page }) => {\n  await page.goto('https://betterstack.com/')\n  await expect(page).toHaveTitle(/Better Stack/)\n});\n"
            ]
          },
          "scenario_name": {
            "type": "string",
            "description": "The name of a `playwright` monitor's scenario. Required for `playwright` monitors, and returned only for them.",
            "examples": [
              "Better Stack homepage title"
            ]
          },
          "environment_variables": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "Environment variables the `playwright` scenario can use, as name and value pairs like `{\"PASSWORD\": \"passw0rd\"}`. Responses return each name with a `null` value. An object you send replaces all of them, and a name sent with `null` keeps its saved value. To add one, send the saved names with `null` and the new name with its value.",
            "x-writeonly-values": true,
            "x-sensitive": true,
            "examples": [
              {
                "PASSWORD": "env-var-value-placeholder"
              }
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        },
        "anyOf": [
          {
            "required": [
              "url"
            ]
          },
          {
            "required": [
              "scenario_name"
            ]
          }
        ]
      },
      "MonitorDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Monitor"
          }
        }
      },
      "MonitorGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The monitor_group's id."
          },
          "type": {
            "type": "string",
            "const": "monitor_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Group name.",
                "examples": [
                  "Backend services"
                ]
              },
              "sort_index": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "The position of the group in your list of monitor groups, lower values first. `null` when no position was set.",
                "examples": [
                  0
                ]
              },
              "paused": {
                "type": "boolean",
                "description": "Whether every monitor in the group is paused, `false` when the group has none.",
                "examples": [
                  true
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was created.",
                "readOnly": true,
                "examples": [
                  "2020-10-03T20:20:43.547Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was last updated.",
                "readOnly": true,
                "examples": [
                  "2020-10-03T20:20:43.547Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this monitor group, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this monitor group.",
                "readOnly": true,
                "examples": [
                  "Test team"
                ]
              }
            }
          }
        }
      },
      "MonitorGroupCreate": {
        "$ref": "#/components/schemas/MonitorGroupCreateAttributes"
      },
      "MonitorGroupCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Backend services"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The position of the group in your list of monitor groups, lower values first. `null` when no position was set.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "MonitorGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/MonitorGroup"
          }
        }
      },
      "MonitorGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "MonitorGroupUpdate": {
        "$ref": "#/components/schemas/MonitorGroupUpdateAttributes"
      },
      "MonitorGroupUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Backend services"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The position of the group in your list of monitor groups, lower values first. `null` when no position was set.",
            "examples": [
              0
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether every monitor in the group is paused, `false` when the group has none. Send `true` to pause every monitor in the group or `false` to resume them. Has no effect on create.",
            "examples": [
              true
            ]
          }
        }
      },
      "MonitorList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Monitor"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "MonitorUpdate": {
        "$ref": "#/components/schemas/MonitorUpdateAttributes"
      },
      "MonitorUpdateAttributes": {
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL of your website, or the host to check for `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns` monitors, without a protocol. `null` on `playwright` monitors. Required for every type except `playwright`, which accepts `scenario_name` instead.",
            "examples": [
              "https://uptime.betterstack.com"
            ]
          },
          "monitor_type": {
            "type": "string",
            "enum": [
              "status",
              "expected_status_code",
              "keyword",
              "keyword_absence",
              "ping",
              "tcp",
              "udp",
              "smtp",
              "pop",
              "imap",
              "dns",
              "playwright"
            ],
            "description": "What the monitor checks.",
            "x-enum-descriptions": {
              "status": "Checks that the URL returns a 2XX status code.",
              "expected_status_code": "Checks that the URL returns one of `expected_status_codes`.",
              "keyword": "Checks that the page contains `required_keyword`.",
              "keyword_absence": "Checks that the page doesn't contain `required_keyword`.",
              "ping": "Pings the host in `url`.",
              "tcp": "Checks that a TCP `port` on the host accepts connections.",
              "udp": "Sends `request_body` to a UDP `port` on the host and checks that the answer contains `required_keyword`.",
              "smtp": "Checks for an SMTP server on the host at `port`.",
              "pop": "Checks for a POP3 server on the host at `port`.",
              "imap": "Checks for an IMAP server on the host at `port`.",
              "dns": "Checks that the DNS server on the host answers a query for the domain in `request_body`.",
              "playwright": "Runs the scenario in `playwright_script`."
            },
            "default": "status",
            "examples": [
              "status"
            ]
          },
          "pronounceable_name": {
            "type": "string",
            "description": "The name of the monitor, which we use when we call you.",
            "examples": [
              "Uptime homepage"
            ]
          },
          "monitor_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the monitor group this monitor belongs to.",
            "examples": [
              "12345"
            ]
          },
          "paused": {
            "type": "boolean",
            "description": "Whether the monitor is paused. A paused monitor opens no incidents and sends no alerts. Send `true` to pause it or `false` to resume it.",
            "default": false,
            "examples": [
              false
            ]
          },
          "check_frequency": {
            "type": "integer",
            "format": "int64",
            "description": "How often to check, in seconds. Must be at least the `request_timeout`. A new or changed value below the plan's shortest interval is refused with a 422. A value the monitor already has, such as one set before a plan change, can still be sent. Accepted values depend on `monitor_type`.\n\n- `playwright`: It accepts `60`, `180`, `300`, `600`, `900`, `1800`, `3600`, `21600`, `43200` or `86400`.\n- Every other type: It accepts `30`, `45`, `60`, `120`, `180`, `300`, `600`, `900` or `1800`.",
            "default": 180,
            "examples": [
              30
            ]
          },
          "request_timeout": {
            "type": "integer",
            "format": "int64",
            "description": "How long a check waits before it times out. The unit and accepted values depend on `monitor_type`.\n\n- `status`, `expected_status_code`, `keyword` and `keyword_absence`: In seconds. It accepts `2`, `3`, `5`, `10`, `15`, `30`, `45`, `60`, `90`, `120` or `180` and defaults to `30`.\n- `ping`, `tcp`, `udp`, `smtp`, `pop`, `imap` and `dns`: In milliseconds. It accepts `500`, `1000`, `2000`, `3000` or `5000` and defaults to `5000`.\n- `playwright`: In seconds. It accepts `15`, `30`, `45`, `60`, `120`, `180`, `240`, `300`, `360`, `480`, `600` or `900` and defaults to `30`.",
            "examples": [
              15
            ]
          },
          "recovery_period": {
            "type": "integer",
            "format": "int64",
            "enum": [
              0,
              60,
              180,
              300,
              900,
              1800,
              3600,
              7200
            ],
            "description": "How long checks must keep passing before the incident resolves, in seconds.",
            "default": 180,
            "examples": [
              0
            ]
          },
          "confirmation_period": {
            "type": "integer",
            "format": "int64",
            "description": "How long to wait after a failure before starting an incident, in seconds, from `0` to `86400`.",
            "default": 0,
            "examples": [
              120
            ]
          },
          "required_keyword": {
            "type": [
              "string",
              "null"
            ],
            "description": "The keyword to look for. Required for `keyword`, `keyword_absence` and `udp` monitors.",
            "examples": [
              "We call you"
            ]
          },
          "http_method": {
            "type": "string",
            "description": "The HTTP method of the request. Accepts `get`, `head`, `post`, `put`, `patch` or `options`. Responses return the method in lowercase. `head` can't be used with `keyword` or `keyword_absence` monitors.",
            "default": "get",
            "examples": [
              "get"
            ]
          },
          "request_body": {
            "type": [
              "string",
              "null"
            ],
            "description": "The body of the request. A `dns` monitor requires it. Set it to the domain to query. A `udp` monitor sends it as its content. Must be empty for `get`, `head` and `options` requests.",
            "examples": [
              "{\"query\": \"health\"}"
            ]
          },
          "request_headers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The header's ID.",
                  "readOnly": true
                },
                "name": {
                  "type": "string",
                  "description": "The header name, like `Content-Type`."
                },
                "value": {
                  "type": "string",
                  "description": "The header value, like `application/json`."
                }
              }
            },
            "description": "Custom request headers, as a list of `{name, value}` objects. A list replaces all headers, and an empty list removes them all.",
            "x-detect-credentials": true,
            "examples": [
              [
                {
                  "name": "X-Custom-Header",
                  "value": "custom header value"
                }
              ]
            ]
          },
          "expected_status_codes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "HTTP status codes from `100` to `599` that count as up. A `3xx` code needs `follow_redirects` and `remember_cookies` set to `false`. Required for `expected_status_code` monitors.",
            "default": [],
            "examples": [
              [
                200,
                201
              ]
            ]
          },
          "follow_redirects": {
            "type": "boolean",
            "description": "Whether we follow HTTP redirects.",
            "default": true,
            "examples": [
              true
            ]
          },
          "remember_cookies": {
            "type": "boolean",
            "description": "Whether we keep cookies when redirecting.",
            "default": true,
            "examples": [
              true
            ]
          },
          "verify_ssl": {
            "type": "boolean",
            "description": "Whether a check fails on an invalid SSL certificate.",
            "default": true,
            "examples": [
              true
            ]
          },
          "auth_username": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTTP basic-auth username. `null` when none is set. Sending `null` doesn't remove a stored value.",
            "x-sensitive": true,
            "examples": [
              "basic-auth-user"
            ]
          },
          "auth_password": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTTP basic-auth password. Not returned after it's saved. Sending `null` doesn't remove a stored value.",
            "x-sensitive": true,
            "writeOnly": true,
            "examples": [
              "s3cr3t-placeholder"
            ]
          },
          "regions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Regions to check from, as any combination of `us`, `eu`, `as` and `au`. When none are set, we check from all regions. Responses then list all of them.",
            "examples": [
              [
                "us",
                "eu",
                "as",
                "au"
              ]
            ]
          },
          "ip_version": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ipv4",
              "ipv6",
              null
            ],
            "description": "The IP version to check over. `null` checks over both IPv4 and IPv6.",
            "x-enum-descriptions": {
              "ipv4": "Checks over IPv4 only.",
              "ipv6": "Checks over IPv6 only."
            },
            "examples": [
              "ipv4"
            ]
          },
          "port": {
            "type": [
              "string",
              "null"
            ],
            "description": "The port to check. `tcp` and `udp` accept one port. `smtp` accepts `25`, `465` or `587`, `pop` accepts `110` or `995`, and `imap` accepts `143` or `993`, with several separated by commas like `25,465,587`. Required for `tcp`, `udp`, `smtp`, `pop` and `imap` monitors.",
            "examples": [
              "25,465,587"
            ]
          },
          "proxy_host": {
            "type": [
              "string",
              "null"
            ],
            "description": "The host of the proxy server we send the check through, without a protocol. Can include credentials, like `user:pass@proxy.example.com`. Only for `status`, `expected_status_code`, `keyword` and `keyword_absence` monitors.",
            "examples": [
              "proxy.example.com"
            ]
          },
          "proxy_port": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The port of the proxy server, from `1` to `65535`. Requires `proxy_host`.",
            "examples": [
              8080
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether to call the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              true
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.",
            "default": false,
            "examples": [
              false
            ]
          },
          "team_wait": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Seconds to wait before escalating to the whole team. `0` alerts the whole team right away, and `null` never escalates to the team. Ignored while an escalation policy is set.",
            "examples": [
              180
            ]
          },
          "escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts, or `null` to alert the current on-call person directly.",
            "examples": [
              "12345"
            ]
          },
          "expiration_escalation_policy_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the escalation policy for alerts about expiring SSL certificates and domains. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
            "examples": [
              "12345"
            ]
          },
          "ssl_expiration": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "enum": [
              1,
              2,
              3,
              7,
              14,
              30,
              60,
              null
            ],
            "description": "How many days before the SSL certificate expires we alert you. `null` turns the check off and is the default. Monitors of exactly the same domain share this setting, not its subdomains. For example, monitors of `example.com/a` and `example.com/b` share it, while `www.example.com` has its own. A value set on one monitor is copied to all of them, so set the same value on each.",
            "examples": [
              7
            ]
          },
          "domain_expiration": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "enum": [
              1,
              2,
              3,
              7,
              14,
              30,
              60,
              null
            ],
            "description": "How many days before the domain expires we alert you. `null` turns the check off and is the default. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.",
            "examples": [
              14
            ]
          },
          "maintenance_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the daily maintenance window, when we don't check, as `HH:MM:SS`, like `01:00:00`. `null` when no window is set.",
            "examples": [
              "01:02:00"
            ]
          },
          "maintenance_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "End of the daily maintenance window, as `HH:MM:SS`, like `03:00:00`. Required with `maintenance_from`. `null` when no window is set.",
            "examples": [
              "03:04:00"
            ]
          },
          "maintenance_timezone": {
            "type": [
              "string",
              "null"
            ],
            "format": "time-zone",
            "description": "The time zone of the maintenance window, as a Rails time zone name like `Amsterdam` or its IANA ID like `Europe/Amsterdam`. `null` when it isn't set, which works as UTC.",
            "default": "UTC",
            "examples": [
              "Amsterdam"
            ]
          },
          "maintenance_days": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "Days of the week the maintenance window applies to, any of `mon`, `tue`, `wed`, `thu`, `fri`, `sat` and `sun`. An overnight window belongs to the day it starts. Order doesn't matter.",
            "default": [
              "mon",
              "tue",
              "wed",
              "thu",
              "fri",
              "sat",
              "sun"
            ],
            "examples": [
              [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri",
                "sat",
                "sun"
              ]
            ]
          },
          "playwright_script": {
            "type": [
              "string",
              "null"
            ],
            "description": "The JavaScript source of the scenario, for `playwright` monitors.",
            "examples": [
              "import { test, expect } from '@playwright/test';\n\ntest('has title', async ({ page }) => {\n  await page.goto('https://betterstack.com/')\n  await expect(page).toHaveTitle(/Better Stack/)\n});\n"
            ]
          },
          "scenario_name": {
            "type": "string",
            "description": "The name of a `playwright` monitor's scenario. Required for `playwright` monitors, and returned only for them.",
            "examples": [
              "Better Stack homepage title"
            ]
          },
          "environment_variables": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "Environment variables the `playwright` scenario can use, as name and value pairs like `{\"PASSWORD\": \"passw0rd\"}`. Responses return each name with a `null` value. An object you send replaces all of them, and a name sent with `null` keeps its saved value. To add one, send the saved names with `null` and the new name with its value.",
            "x-writeonly-values": true,
            "x-sensitive": true,
            "examples": [
              {
                "PASSWORD": "env-var-value-placeholder"
              }
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The text of a `String` value."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of the referenced item. For a user it's `u123` or their e-mail. For a team it's `t123`, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/)."
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Referenced item's name, or `null` when the item has no name or no longer exists. An item can also be found by its name instead of `item_id`."
                  },
                  "email": {
                    "type": "string",
                    "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as `u123` and team references as `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat.",
            "examples": [
              {
                "Service": [
                  {
                    "type": "String",
                    "value": "Checkout"
                  }
                ]
              }
            ]
          }
        }
      },
      "OnCallEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the on-call event.",
            "readOnly": true,
            "examples": [
              "12345"
            ]
          },
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of the people on call for this event. Each must be a responder in the schedule's team.",
            "examples": [
              [
                "tomas@example.com"
              ]
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event starts.",
            "examples": [
              "2027-01-04T22:00:00Z"
            ]
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event ends.",
            "examples": [
              "2027-01-05T22:00:00Z"
            ]
          },
          "override": {
            "type": "boolean",
            "description": "Whether this event is an override. An override stays when the rotation changes or the events are replaced in bulk.",
            "default": false,
            "examples": [
              false
            ]
          }
        }
      },
      "OnCallEventCreate": {
        "$ref": "#/components/schemas/OnCallEventCreateAttributes"
      },
      "OnCallEventCreateAttributes": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of the people on call for this event. Each must be a responder in the schedule's team.",
            "examples": [
              [
                "tomas@example.com"
              ]
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event starts.",
            "examples": [
              "2027-01-04T22:00:00Z"
            ]
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event ends.",
            "examples": [
              "2027-01-05T22:00:00Z"
            ]
          },
          "override": {
            "type": "boolean",
            "description": "Whether this event is an override. An override stays when the rotation changes or the events are replaced in bulk.",
            "default": false,
            "examples": [
              false
            ]
          }
        },
        "required": [
          "users",
          "starts_at",
          "ends_at"
        ]
      },
      "OnCallEventDocument": {
        "$ref": "#/components/schemas/OnCallEvent"
      },
      "OnCallEventList": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OnCallEvent"
            }
          }
        }
      },
      "OnCallEventUpdate": {
        "$ref": "#/components/schemas/OnCallEventUpdateAttributes"
      },
      "OnCallEventUpdateAttributes": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of the people on call for this event. Each must be a responder in the schedule's team.",
            "examples": [
              [
                "tomas@example.com"
              ]
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event starts.",
            "examples": [
              "2027-01-04T22:00:00Z"
            ]
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event ends.",
            "examples": [
              "2027-01-05T22:00:00Z"
            ]
          },
          "override": {
            "type": "boolean",
            "description": "Whether this event is an override. An override stays when the rotation changes or the events are replaced in bulk.",
            "default": false,
            "examples": [
              false
            ]
          }
        }
      },
      "OnCallOverride": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The on_call_override's id."
          },
          "type": {
            "type": "string",
            "const": "on_call_override"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "users": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "E-mail addresses of the people on call for this override. Each must be a responder or higher in the schedule's team.",
                "examples": [
                  [
                    "tomas@example.com"
                  ]
                ]
              },
              "starts_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the override starts, as an ISO 8601 time with a time zone. A new or changed start can't be before today at 00:00 UTC.",
                "examples": [
                  "2024-09-04T22:00:00Z"
                ]
              },
              "ends_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the override ends, as an ISO 8601 time with a time zone, after `starts_at`. A new or changed end can't be before today at 00:00 UTC.",
                "examples": [
                  "2024-09-05T22:00:00Z"
                ]
              }
            }
          }
        }
      },
      "OnCallOverrideCreate": {
        "$ref": "#/components/schemas/OnCallOverrideCreateAttributes"
      },
      "OnCallOverrideCreateAttributes": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of the people on call for this override. Each must be a responder or higher in the schedule's team.",
            "examples": [
              [
                "tomas@example.com"
              ]
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the override starts, as an ISO 8601 time with a time zone. A new or changed start can't be before today at 00:00 UTC.",
            "examples": [
              "2024-09-04T22:00:00Z"
            ]
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the override ends, as an ISO 8601 time with a time zone, after `starts_at`. A new or changed end can't be before today at 00:00 UTC.",
            "examples": [
              "2024-09-05T22:00:00Z"
            ]
          }
        },
        "required": [
          "users",
          "starts_at",
          "ends_at"
        ]
      },
      "OnCallOverrideDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/OnCallOverride"
          }
        }
      },
      "OnCallOverrideList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OnCallOverride"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "OnCallOverrideUpdate": {
        "$ref": "#/components/schemas/OnCallOverrideUpdateAttributes"
      },
      "OnCallOverrideUpdateAttributes": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of the people on call for this override. Each must be a responder or higher in the schedule's team.",
            "examples": [
              [
                "tomas@example.com"
              ]
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the override starts, as an ISO 8601 time with a time zone. A new or changed start can't be before today at 00:00 UTC.",
            "examples": [
              "2024-09-04T22:00:00Z"
            ]
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the override ends, as an ISO 8601 time with a time zone, after `starts_at`. A new or changed end can't be before today at 00:00 UTC.",
            "examples": [
              "2024-09-05T22:00:00Z"
            ]
          }
        }
      },
      "OnCallRotation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The on_call_rotation's id."
          },
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.",
            "examples": [
              [
                "alice@example.com",
                "bob@example.com"
              ]
            ]
          },
          "rotation_length": {
            "type": "integer",
            "format": "int64",
            "description": "How long each shift lasts, in `rotation_interval` units. A whole number of at least `1`."
          },
          "rotation_interval": {
            "type": "string",
            "enum": [
              "hour",
              "day",
              "week"
            ],
            "description": "Unit for `rotation_length`.",
            "examples": [
              "week"
            ]
          },
          "start_rotations_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the rotation schedule starts.",
            "examples": [
              "2026-01-05T09:00:00Z"
            ]
          },
          "end_rotations_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the rotation schedule ends.",
            "examples": [
              "2027-01-04T09:00:00Z"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Time zone for `working_hours` and for handovers across daylight saving changes. A new rotation with `working_hours` defaults to UTC."
          },
          "effective_timezone": {
            "type": "string",
            "description": "The time zone `working_hours` are read in. Same as `timezone` when it's set, otherwise the schedule's default time zone, or `UTC` when neither is set.",
            "readOnly": true
          },
          "working_hours": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sunday",
                    "monday",
                    "tuesday",
                    "wednesday",
                    "thursday",
                    "friday",
                    "saturday"
                  ],
                  "description": "The day of the week the window is on."
                },
                "start_time": {
                  "type": "string",
                  "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9](:00)?$",
                  "description": "When the window starts, as `HH:MM` in 24-hour time."
                },
                "end_time": {
                  "type": "string",
                  "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9](:00)?$",
                  "description": "When the window ends, as `HH:MM` in 24-hour time."
                }
              },
              "required": [
                "day",
                "start_time",
                "end_time"
              ]
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as `HH:MM`, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without `working_hours`, or with an empty list, the rotation pages around the clock. Order doesn't matter.",
            "examples": [
              [
                {
                  "day": "monday",
                  "start_time": "09:00",
                  "end_time": "17:00"
                },
                {
                  "day": "tuesday",
                  "start_time": "09:00",
                  "end_time": "17:00"
                }
              ]
            ]
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "Team of the rotation's on-call schedule, such as `t123`.",
            "readOnly": true,
            "examples": [
              "t123"
            ]
          }
        }
      },
      "OnCallRotationCreate": {
        "$ref": "#/components/schemas/OnCallRotationCreateAttributes"
      },
      "OnCallRotationCreateAttributes": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.",
            "examples": [
              [
                "alice@example.com",
                "bob@example.com"
              ]
            ]
          },
          "rotation_length": {
            "type": "integer",
            "format": "int64",
            "description": "How long each shift lasts, in `rotation_interval` units. A whole number of at least `1`."
          },
          "rotation_interval": {
            "type": "string",
            "enum": [
              "hour",
              "day",
              "week"
            ],
            "description": "Unit for `rotation_length`.",
            "examples": [
              "week"
            ]
          },
          "start_rotations_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the rotation schedule starts.",
            "examples": [
              "2026-01-05T09:00:00Z"
            ]
          },
          "end_rotations_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the rotation schedule ends. Must be after `start_rotations_at`. Leave it out to keep the rotation running.",
            "examples": [
              "2027-01-04T09:00:00Z"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Time zone for `working_hours` and for handovers across daylight saving changes. A new rotation with `working_hours` defaults to UTC. Leave it out to keep the previous time zone."
          },
          "apply_from": {
            "type": "string",
            "format": "date-time",
            "description": "When this change applies, as **Apply changes from** in the web app. Shifts before it are kept. Leave it out to apply the change now.",
            "writeOnly": true,
            "examples": [
              "2026-12-07T09:00:00Z"
            ]
          },
          "apply_from_timezone": {
            "type": "string",
            "description": "Time zone that `apply_from` is read in when it has no UTC offset. Defaults to UTC.",
            "writeOnly": true,
            "examples": [
              "Europe/Prague"
            ]
          },
          "working_hours": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sunday",
                    "monday",
                    "tuesday",
                    "wednesday",
                    "thursday",
                    "friday",
                    "saturday"
                  ],
                  "description": "The day of the week the window is on."
                },
                "start_time": {
                  "type": "string",
                  "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9](:00)?$",
                  "description": "When the window starts, as `HH:MM` in 24-hour time."
                },
                "end_time": {
                  "type": "string",
                  "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9](:00)?$",
                  "description": "When the window ends, as `HH:MM` in 24-hour time."
                }
              },
              "required": [
                "day",
                "start_time",
                "end_time"
              ]
            },
            "uniqueItems": true,
            "x-unordered": true,
            "description": "The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as `HH:MM`, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without `working_hours`, or with an empty list, the rotation pages around the clock. Order doesn't matter.",
            "examples": [
              [
                {
                  "day": "monday",
                  "start_time": "09:00",
                  "end_time": "17:00"
                },
                {
                  "day": "tuesday",
                  "start_time": "09:00",
                  "end_time": "17:00"
                }
              ]
            ]
          }
        },
        "required": [
          "users",
          "rotation_length",
          "rotation_interval",
          "start_rotations_at"
        ]
      },
      "OnCallRotationDocument": {
        "$ref": "#/components/schemas/OnCallRotation"
      },
      "OnCallSchedule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The on_call_schedule's id."
          },
          "type": {
            "type": "string",
            "const": "on_call_schedule"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Schedule name. `null` only on a primary schedule without a name of its own.",
                "examples": [
                  "Primary on-call"
                ]
              },
              "default_schedule": {
                "type": "boolean",
                "description": "Whether this is your team's default on-call schedule.",
                "readOnly": true,
                "examples": [
                  true
                ]
              },
              "slack_group_handle": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The handle of a Slack user group that always holds whoever is on call, without the @, or `null` when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and `slack_groups` then shows why.",
                "examples": [
                  "production-oncall"
                ]
              },
              "use_existing_slack_group": {
                "type": "boolean",
                "description": "Whether `slack_group_handle` names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is `true`, and a handle no group uses is refused when it's `true`. Sent without `slack_group_handle`, the setting applies to the current handle.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "slack_groups": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "slack_workspace_id": {
                      "type": "string",
                      "description": "ID of the Slack workspace."
                    },
                    "slack_workspace_name": {
                      "type": "string",
                      "description": "Name of the Slack workspace."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "active",
                        "permission_denied",
                        "plan_required",
                        "name_conflict",
                        "failed",
                        "no_slack_users",
                        "reinstall_required"
                      ],
                      "description": "The group's state in the workspace. When the group doesn't follow who's on call, `error` says why.\n\n- `pending`: The group is being set up.\n- `active`: The group follows who's on call.\n- `permission_denied`: The Slack workspace lets only admins manage user groups.\n- `plan_required`: User groups need a paid Slack plan.\n- `name_conflict`: Another Slack user group already uses the handle.\n- `failed`: The group couldn't be synced with Slack.\n- `no_slack_users`: Nobody on call has connected Slack, so the group tags nobody from this schedule.\n- `reinstall_required`: The Slack integration was connected before user groups were supported. Reinstall the integration to set the group up.",
                      "x-enum-descriptions": {
                        "pending": "The group is being set up.",
                        "active": "The group follows who's on call.",
                        "permission_denied": "The Slack workspace lets only admins manage user groups.",
                        "plan_required": "User groups need a paid Slack plan.",
                        "name_conflict": "Another Slack user group already uses the handle.",
                        "failed": "The group couldn't be synced with Slack.",
                        "no_slack_users": "Nobody on call has connected Slack, so the group tags nobody from this schedule.",
                        "reinstall_required": "The Slack integration was connected before user groups were supported. Reinstall the integration to set the group up."
                      }
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "What's wrong and what to do about it. `null` when status is `active` or `pending`."
                    },
                    "unconnected_users": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The user's ID as `u123`."
                          },
                          "first_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The user's first name, or `null` when it isn't set."
                          },
                          "last_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The user's last name, or `null` when it isn't set."
                          },
                          "email": {
                            "type": "string",
                            "description": "The user's e-mail address."
                          }
                        }
                      },
                      "description": "The on-call users the group doesn't include. Present only when you get a single schedule."
                    }
                  }
                },
                "description": "The state of the handle's user group in each connected Slack workspace.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "slack_workspace_id": "T0123ABCD",
                      "slack_workspace_name": "Better Stack",
                      "status": "active",
                      "error": null,
                      "unconnected_users": [
                        {
                          "id": "u3456",
                          "first_name": "Alice",
                          "last_name": "Smith",
                          "email": "alice@example.com"
                        }
                      ]
                    }
                  ]
                ]
              },
              "shifts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "starts_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When this part of the shift starts. Can be before `from`."
                    },
                    "ends_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When this part of the shift ends. Can be after `to`."
                    },
                    "override": {
                      "type": "boolean",
                      "description": "Whether an override puts these people on call instead of the rotation."
                    },
                    "override_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The ID of the override's on-call event, to use with [Delete an on-call event](/docs/uptime/api/delete-on-call-calendar-event/), or `null` for a shift from the rotation."
                    },
                    "users": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The person's ID as `u123`."
                          },
                          "first_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The person's first name, or `null` when it isn't set."
                          },
                          "last_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The person's last name, or `null` when it isn't set."
                          },
                          "email": {
                            "type": "string",
                            "description": "The person's e-mail address."
                          },
                          "phone_numbers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "The person's phone numbers, sorted."
                          },
                          "on_holiday": {
                            "type": "boolean",
                            "description": "Whether the person is on holiday during part of this shift. For a shift running now, only the rest of the shift counts. Escalations skip someone on holiday."
                          },
                          "holiday_ends_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "When that holiday ends, or `null`."
                          }
                        }
                      },
                      "description": "The people on call."
                    }
                  }
                },
                "description": "Who is on call from `from` to `to`, oldest first. Each entry is one part of a shift and the people on call during it. Where an override covers part of a shift, the override's entry replaces that part. Without `from` and `to`, `shifts` holds only the shift running now. Returned when you get or list schedules.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "starts_at": "2026-10-26T08:00:00Z",
                      "ends_at": "2026-10-26T17:00:00Z",
                      "override": true,
                      "override_id": "12345",
                      "users": [
                        {
                          "id": "u2345",
                          "first_name": "Tomas",
                          "last_name": "Hromada",
                          "email": "tomas@example.com",
                          "phone_numbers": [
                            "+420737123456"
                          ],
                          "on_holiday": false,
                          "holiday_ends_at": null
                        }
                      ]
                    }
                  ]
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns the schedule, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the schedule.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "on_call_users": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "type"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "const": "user"
                        }
                      }
                    }
                  }
                },
                "description": "Users on call now, or at `from` when you send it. Each user's entry under `relationships` also has a `meta` object with `email`, `on_holiday` and `holiday_ends_at`."
              }
            }
          }
        }
      },
      "OnCallScheduleCreate": {
        "$ref": "#/components/schemas/OnCallScheduleCreateAttributes"
      },
      "OnCallScheduleCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Schedule name. `null` only on a primary schedule without a name of its own. Required on create.",
            "examples": [
              "Primary on-call"
            ]
          },
          "slack_group_handle": {
            "type": [
              "string",
              "null"
            ],
            "description": "The handle of a Slack user group that always holds whoever is on call, without the @, or `null` when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and `slack_groups` then shows why. It accepts lowercase letters, digits, `.`, `_` and `-`, or letters outside ASCII. An on-call schedule in another team can't already use it. Send `null` or an empty string to stop tagging who is on call.",
            "examples": [
              "production-oncall"
            ]
          },
          "use_existing_slack_group": {
            "type": "boolean",
            "description": "Whether `slack_group_handle` names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is `true`, and a handle no group uses is refused when it's `true`. Sent without `slack_group_handle`, the setting applies to the current handle. Sending `null` or leaving it out keeps the schedule's current choice.",
            "default": false,
            "examples": [
              false
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "OnCallScheduleDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/OnCallSchedule"
          }
        }
      },
      "OnCallScheduleList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OnCallSchedule"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "OnCallScheduleUpdate": {
        "$ref": "#/components/schemas/OnCallScheduleUpdateAttributes"
      },
      "OnCallScheduleUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Schedule name. `null` only on a primary schedule without a name of its own. Required on create.",
            "examples": [
              "Primary on-call"
            ]
          },
          "slack_group_handle": {
            "type": [
              "string",
              "null"
            ],
            "description": "The handle of a Slack user group that always holds whoever is on call, without the @, or `null` when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and `slack_groups` then shows why. It accepts lowercase letters, digits, `.`, `_` and `-`, or letters outside ASCII. An on-call schedule in another team can't already use it. Send `null` or an empty string to stop tagging who is on call.",
            "examples": [
              "production-oncall"
            ]
          },
          "use_existing_slack_group": {
            "type": "boolean",
            "description": "Whether `slack_group_handle` names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is `true`, and a handle no group uses is refused when it's `true`. Sent without `slack_group_handle`, the setting applies to the current handle. Sending `null` or leaving it out keeps the schedule's current choice.",
            "default": false,
            "examples": [
              false
            ]
          }
        }
      },
      "PaginationInline:incident#list": {
        "type": "object",
        "description": "Paged with `page` and `per_page`. The response has a `pagination` object of page URLs.",
        "properties": {
          "first": {
            "type": "string"
          },
          "last": {
            "type": "string"
          },
          "prev": {
            "type": [
              "string",
              "null"
            ]
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_count": {
            "type": "integer",
            "description": "How many results the whole list holds, across every page."
          }
        }
      },
      "PaginationInline:incidentGroup#list": {
        "type": "object",
        "description": "Paged with `page` and `per_page`. The response has a `pagination` object of page URLs.",
        "properties": {
          "first": {
            "type": "string"
          },
          "last": {
            "type": "string"
          },
          "prev": {
            "type": [
              "string",
              "null"
            ]
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_count": {
            "type": "integer",
            "description": "How many results the whole list holds, across every page."
          }
        }
      },
      "PaginationInline:incidentGroupingChange#list": {
        "type": "object",
        "description": "Paged with `page`, 20 changes a page. The response has a `pagination` object with the previous and next page URLs.",
        "properties": {
          "first": {
            "type": "string"
          },
          "last": {
            "type": "string"
          },
          "prev": {
            "type": [
              "string",
              "null"
            ]
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "PaginationPageNumber": {
        "type": "object",
        "description": "Pick a page with the `page` and `per_page` query parameters. The response has a `pagination` object with links to the other pages.",
        "properties": {
          "first": {
            "type": "string"
          },
          "last": {
            "type": "string"
          },
          "prev": {
            "type": [
              "string",
              "null"
            ]
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_count": {
            "type": "integer",
            "description": "How many results the whole list holds, across every page."
          }
        }
      },
      "Severity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The severity's id."
          },
          "type": {
            "type": "string",
            "const": "severity"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The severity's name, unique within the team, ignoring case.",
                "examples": [
                  "Low Severity"
                ]
              },
              "call": {
                "type": "boolean",
                "description": "Whether escalation policy steps with this severity alert people by phone call. Each person can override this in their own notification settings.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "sms": {
                "type": "boolean",
                "description": "Whether escalation policy steps with this severity alert people by SMS. Each person can override this in their own notification settings.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "email": {
                "type": "boolean",
                "description": "Whether escalation policy steps with this severity alert people by e-mail. Each person can override this in their own notification settings.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "push": {
                "type": "boolean",
                "description": "Whether escalation policy steps with this severity alert people by push notification. Each person can override this in their own notification settings.",
                "default": true,
                "examples": [
                  false
                ]
              },
              "critical_alert": {
                "type": "boolean",
                "description": "Whether escalation policy steps with this severity send a critical alert, a push notification that ignores the mute switch and Do Not Disturb mode.",
                "default": false,
                "examples": [
                  false
                ]
              },
              "severity_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the severity group this severity belongs to, or `null` when it's in none. Get the ID via [List severity groups](/docs/uptime/api/list-all-existing-severity-groups/).",
                "examples": [
                  "95251342"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this severity, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this severity.",
                "readOnly": true,
                "examples": [
                  "Test team"
                ]
              }
            }
          }
        }
      },
      "SeverityCreate": {
        "$ref": "#/components/schemas/SeverityCreateAttributes"
      },
      "SeverityCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The severity's name, unique within the team, ignoring case.",
            "examples": [
              "Low Severity"
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by phone call. Each person can override this in their own notification settings.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by SMS. Each person can override this in their own notification settings.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by e-mail. Each person can override this in their own notification settings.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by push notification. Each person can override this in their own notification settings.",
            "default": true,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity send a critical alert, a push notification that ignores the mute switch and Do Not Disturb mode.",
            "default": false,
            "examples": [
              false
            ]
          },
          "severity_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the severity group this severity belongs to, or `null` when it's in none. Get the ID via [List severity groups](/docs/uptime/api/list-all-existing-severity-groups/).",
            "examples": [
              "95251342"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "SeverityDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Severity"
          }
        }
      },
      "SeverityGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The severity_group's id."
          },
          "type": {
            "type": "string",
            "const": "severity_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Group name.",
                "examples": [
                  "Example"
                ]
              },
              "sort_index": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Display order of the group among your severity groups. Lower values come first.",
                "examples": [
                  0
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was created.",
                "readOnly": true,
                "examples": [
                  "2024-07-26T15:07:46.350Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was last updated.",
                "readOnly": true,
                "examples": [
                  "2024-07-26T15:07:46.350Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "Team that owns this group, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns this group.",
                "readOnly": true,
                "examples": [
                  "Testing"
                ]
              }
            }
          }
        }
      },
      "SeverityGroupCreate": {
        "$ref": "#/components/schemas/SeverityGroupCreateAttributes"
      },
      "SeverityGroupCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Example"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Display order of the group among your severity groups. Lower values come first.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "SeverityGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SeverityGroup"
          }
        }
      },
      "SeverityGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SeverityGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "SeverityGroupUpdate": {
        "$ref": "#/components/schemas/SeverityGroupUpdateAttributes"
      },
      "SeverityGroupUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Example"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Display order of the group among your severity groups. Lower values come first.",
            "examples": [
              0
            ]
          }
        }
      },
      "SeverityList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Severity"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "SeverityUpdate": {
        "$ref": "#/components/schemas/SeverityUpdateAttributes"
      },
      "SeverityUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The severity's name, unique within the team, ignoring case.",
            "examples": [
              "Low Severity"
            ]
          },
          "call": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by phone call. Each person can override this in their own notification settings.",
            "default": false,
            "examples": [
              false
            ]
          },
          "sms": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by SMS. Each person can override this in their own notification settings.",
            "default": false,
            "examples": [
              false
            ]
          },
          "email": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by e-mail. Each person can override this in their own notification settings.",
            "default": true,
            "examples": [
              true
            ]
          },
          "push": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity alert people by push notification. Each person can override this in their own notification settings.",
            "default": true,
            "examples": [
              false
            ]
          },
          "critical_alert": {
            "type": "boolean",
            "description": "Whether escalation policy steps with this severity send a critical alert, a push notification that ignores the mute switch and Do Not Disturb mode.",
            "default": false,
            "examples": [
              false
            ]
          },
          "severity_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the severity group this severity belongs to, or `null` when it's in none. Get the ID via [List severity groups](/docs/uptime/api/list-all-existing-severity-groups/). On update, send `null` to remove it from its group.",
            "examples": [
              "95251342"
            ]
          }
        }
      },
      "StatusPage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The status_page's id."
          },
          "type": {
            "type": "string",
            "const": "status_page"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "organization_id": {
                "type": "string",
                "description": "The ID of the organization the page belongs to, such as `123`. Get the ID from `organization_id` in [List teams](/docs/uptime/api/teams/list/)."
              },
              "company_name": {
                "type": "string",
                "description": "Company name shown on the page."
              },
              "company_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Company website URL."
              },
              "subdomain": {
                "type": "string",
                "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores."
              },
              "timezone": {
                "type": "string",
                "format": "time-zone",
                "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name."
              },
              "custom_domain": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.",
                "examples": [
                  "status.example.com"
                ]
              },
              "contact_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`."
              },
              "logo_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The logo shown in light mode. Responses return the URL of the stored logo.",
                "examples": [
                  "https://example.com/logo.png"
                ]
              },
              "dark_logo_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The logo shown in dark mode. Responses return the URL of the stored logo.",
                "examples": [
                  "https://example.com/logo-dark.png"
                ]
              },
              "logo_remote_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The URL the light mode logo was fetched from."
              },
              "dark_logo_remote_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The URL the dark mode logo was fetched from."
              },
              "favicon_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The icon browsers show in the page's tab, as the URL of the stored favicon. Only the `v2` design shows it.",
                "readOnly": true,
                "examples": [
                  "https://example.com/favicon.png"
                ]
              },
              "favicon_remote_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The URL the favicon was fetched from.",
                "examples": [
                  "https://example.com/favicon.png"
                ]
              },
              "custom_css": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Custom CSS added to the page."
              },
              "custom_javascript": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Custom JavaScript added to the page."
              },
              "google_analytics_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`."
              },
              "min_incident_length": {
                "type": "integer",
                "format": "int64",
                "description": "Shortest incident the page shows, in seconds. `0` shows every incident.",
                "default": 0
              },
              "subscribable": {
                "type": "boolean",
                "description": "Whether visitors can subscribe to updates.",
                "default": false
              },
              "hide_from_search_engines": {
                "type": "boolean",
                "description": "Whether to hide the page from search engines with a `noindex` tag.",
                "default": false
              },
              "password_enabled": {
                "type": "boolean",
                "description": "Whether visitors need a password to view the page. Off unless you turn it on or set `password`."
              },
              "require_sso": {
                "type": "boolean",
                "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with `password_enabled`.",
                "default": false
              },
              "published": {
                "type": "boolean",
                "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows.",
                "default": true
              },
              "history": {
                "type": "integer",
                "format": "int64",
                "description": "Number of days of history the page shows, from 7 to 365.",
                "default": 90
              },
              "treat_not_monitored_as_operational": {
                "type": "boolean",
                "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored.",
                "default": false
              },
              "design": {
                "type": "string",
                "enum": [
                  "v1",
                  "v2"
                ],
                "description": "Page design.",
                "x-enum-descriptions": {
                  "v1": "The classic design.",
                  "v2": "The modern design."
                },
                "default": "v1"
              },
              "theme": {
                "type": "string",
                "enum": [
                  "light",
                  "dark",
                  "system"
                ],
                "description": "Color theme. Only the `v2` design uses it.",
                "default": "light"
              },
              "layout": {
                "type": "string",
                "enum": [
                  "vertical",
                  "horizontal"
                ],
                "description": "Header layout of the page. Only the `v2` design uses it.",
                "default": "vertical"
              },
              "automatic_reports": {
                "type": "boolean",
                "description": "Whether status page reports are created automatically for new incidents.",
                "default": false
              },
              "status_page_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](/docs/uptime/api/list-all-status-page-groups/)."
              },
              "whitelabeled": {
                "type": "boolean",
                "description": "Whether to remove Better Stack branding from the page.",
                "default": false
              },
              "announcement": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Announcement banner text."
              },
              "announcement_embed_visible": {
                "type": "boolean",
                "description": "Whether the embeddable widget shows the announcement.",
                "default": true
              },
              "announcement_embed_link": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Link the announcement points to on the embeddable widget.",
                "examples": [
                  "https://example.com/blog/maintenance"
                ]
              },
              "announcement_embed_css": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Your own CSS for the announcement on the embeddable widget."
              },
              "navigation_links": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "The link's text, such as `Maintenance`."
                    },
                    "href": {
                      "type": "string",
                      "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages."
                    }
                  }
                },
                "description": "Up to four links in the page's navigation, each with `text` and `href`. Only the `v2` design shows them. An empty list removes them all.",
                "examples": [
                  [
                    {
                      "text": "Website",
                      "href": "https://example.com"
                    }
                  ]
                ]
              },
              "ip_allowlist": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments."
              },
              "sections": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The section's ID. Leave it out for a new section. Send the ID to keep the section, even when you move it."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Section name."
                    },
                    "resources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The resource's ID. Leave it out for a new resource. Send the ID to keep the resource and its subscribers, even when you move it to another section."
                          },
                          "resource_type": {
                            "type": "string",
                            "enum": [
                              "Monitor",
                              "MonitorGroup",
                              "Heartbeat",
                              "HeartbeatGroup",
                              "WebhookIntegration",
                              "EmailIntegration",
                              "IncomingWebhook",
                              "AmazonSnsIntegration",
                              "ManuallyTrackedItem",
                              "LogsChart",
                              "CatalogReference",
                              "ThirdPartyService"
                            ],
                            "description": "Type of the underlying resource. Required for a new resource.\n\n- `Monitor`: Shows a monitor.\n- `MonitorGroup`: Shows a monitor group.\n- `Heartbeat`: Shows a heartbeat.\n- `HeartbeatGroup`: Shows a heartbeat group.\n- `WebhookIntegration`: Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.\n- `EmailIntegration`: Shows an e-mail integration.\n- `IncomingWebhook`: Shows an incoming webhook.\n- `AmazonSnsIntegration`: Shows an Amazon SNS integration.\n- `ManuallyTrackedItem`: Shows a manually tracked item, which we create when you leave out `resource_id`.\n- `LogsChart`: Shows a dashboard chart, given in `chart_id`.\n- `CatalogReference`: Shows a catalog value, given in `catalog_reference`.\n- `ThirdPartyService`: Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its `id`, it keeps the services it shows.",
                            "x-enum-descriptions": {
                              "Monitor": "Shows a monitor.",
                              "MonitorGroup": "Shows a monitor group.",
                              "Heartbeat": "Shows a heartbeat.",
                              "HeartbeatGroup": "Shows a heartbeat group.",
                              "WebhookIntegration": "Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.",
                              "EmailIntegration": "Shows an e-mail integration.",
                              "IncomingWebhook": "Shows an incoming webhook.",
                              "AmazonSnsIntegration": "Shows an Amazon SNS integration.",
                              "ManuallyTrackedItem": "Shows a manually tracked item, which we create when you leave out `resource_id`.",
                              "LogsChart": "Shows a dashboard chart, given in `chart_id`.",
                              "CatalogReference": "Shows a catalog value, given in `catalog_reference`.",
                              "ThirdPartyService": "Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its `id`, it keeps the services it shows."
                            }
                          },
                          "resource_id": {
                            "type": "string",
                            "description": "ID of the underlying monitor, heartbeat, group or other record. Required for a new resource. A `ManuallyTrackedItem` doesn't need it, since we create the item for you. Neither does a resource whose `catalog_reference` names a catalog value or whose `chart_id` names a dashboard chart."
                          },
                          "catalog_reference": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "The catalog relation's name."
                              },
                              "value": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "The plain value, when `type` is `String`."
                                  },
                                  "item_id": {
                                    "type": "string",
                                    "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`."
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                                  },
                                  "email": {
                                    "type": "string",
                                    "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                                  }
                                },
                                "allOf": [
                                  {
                                    "if": {
                                      "properties": {
                                        "type": {
                                          "const": "User"
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ]
                                    },
                                    "then": {
                                      "properties": {
                                        "item_id": {
                                          "type": "string",
                                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                        }
                                      }
                                    }
                                  },
                                  {
                                    "if": {
                                      "properties": {
                                        "type": {
                                          "const": "Team"
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ]
                                    },
                                    "then": {
                                      "properties": {
                                        "item_id": {
                                          "type": "string",
                                          "pattern": "^t[1-9][0-9]*$"
                                        }
                                      }
                                    }
                                  }
                                ],
                                "description": "The catalog value to show, a plain string or a catalog item."
                              }
                            },
                            "description": "For a `CatalogReference` resource, the catalog value it shows, as on a status page resource. We find or create the catalog value, and it sets the resource's `resource_id`. A `resource_id` sent along with it is ignored. `null` for every other type."
                          },
                          "chart_id": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows, as on a status page resource. The chart must be on one of your organization's dashboards. The chart decides the resource's `resource_id`, so a `resource_id` sent with `chart_id` is ignored. `null` for every other type."
                          },
                          "public_name": {
                            "type": "string",
                            "description": "Name shown publicly. Required for a new resource."
                          },
                          "explanation": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Text shown to visitors in a tooltip next to the resource."
                          },
                          "widget_type": {
                            "type": "string",
                            "enum": [
                              "plain",
                              "history",
                              "intraday_history",
                              "response_times",
                              "intraday_response_times",
                              "chart_only"
                            ],
                            "description": "How the resource is shown on the page.\n\n- `plain`: Shows only the current status.\n- `history`: Shows the current status and a history of it.\n- `intraday_history`: Shows the current status and a detailed history of it.\n- `response_times`: Shows a history of the status and a response times chart, for a monitor or a logs chart.\n- `intraday_response_times`: Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.\n- `chart_only`: Shows only the chart, for a logs chart.",
                            "x-enum-descriptions": {
                              "plain": "Shows only the current status.",
                              "history": "Shows the current status and a history of it.",
                              "intraday_history": "Shows the current status and a detailed history of it.",
                              "response_times": "Shows a history of the status and a response times chart, for a monitor or a logs chart.",
                              "intraday_response_times": "Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.",
                              "chart_only": "Shows only the chart, for a logs chart."
                            }
                          },
                          "mark_as_down_for": {
                            "type": "string",
                            "enum": [
                              "no_incident",
                              "any_incident",
                              "incident_matching_metadata"
                            ],
                            "description": "When an incident marks this resource as down. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n\n- `no_incident`: No incident marks the resource down.\n- `any_incident`: Every open incident of the resource marks it down.\n- `incident_matching_metadata`: An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`.",
                            "x-enum-descriptions": {
                              "no_incident": "No incident marks the resource down.",
                              "any_incident": "Every open incident of the resource marks it down.",
                              "incident_matching_metadata": "An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`."
                            }
                          },
                          "mark_as_down_metadata_rule": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "The incident metadata key to match."
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                                    },
                                    "value": {
                                      "type": "string",
                                      "description": "The plain value, when `type` is `String`."
                                    },
                                    "item_id": {
                                      "type": "string",
                                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                                    },
                                    "email": {
                                      "type": "string",
                                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                                    }
                                  },
                                  "allOf": [
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "User"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "properties": {
                                          "item_id": {
                                            "type": "string",
                                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "Team"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "properties": {
                                          "item_id": {
                                            "type": "string",
                                            "pattern": "^t[1-9][0-9]*$"
                                          }
                                        }
                                      }
                                    }
                                  ]
                                },
                                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                              }
                            },
                            "description": "Metadata rule used when `mark_as_down_for` is `incident_matching_metadata`, as on a status page resource. A user is `u123` or their e-mail, and a team is `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). The setting has no effect on a `ManuallyTrackedItem`, which has no incidents."
                          },
                          "mark_as_degraded_for": {
                            "type": "string",
                            "enum": [
                              "no_incident",
                              "any_incident",
                              "incident_matching_metadata"
                            ],
                            "description": "When an incident marks this resource as degraded. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n\n- `no_incident`: No incident marks the resource degraded.\n- `any_incident`: Every open incident of the resource marks it degraded.\n- `incident_matching_metadata`: An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`.",
                            "x-enum-descriptions": {
                              "no_incident": "No incident marks the resource degraded.",
                              "any_incident": "Every open incident of the resource marks it degraded.",
                              "incident_matching_metadata": "An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`."
                            }
                          },
                          "mark_as_degraded_metadata_rule": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "The incident metadata key to match."
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                                    },
                                    "value": {
                                      "type": "string",
                                      "description": "The plain value, when `type` is `String`."
                                    },
                                    "item_id": {
                                      "type": "string",
                                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                                    },
                                    "email": {
                                      "type": "string",
                                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                                    }
                                  },
                                  "allOf": [
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "User"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "properties": {
                                          "item_id": {
                                            "type": "string",
                                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "Team"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "properties": {
                                          "item_id": {
                                            "type": "string",
                                            "pattern": "^t[1-9][0-9]*$"
                                          }
                                        }
                                      }
                                    }
                                  ]
                                },
                                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                              }
                            },
                            "description": "Metadata rule used when `mark_as_degraded_for` is `incident_matching_metadata`, in the shape of `mark_as_down_metadata_rule`. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents."
                          }
                        }
                      },
                      "description": "The section's resources, in display order. Leave it out to keep the section's resources as they are. A new section starts empty."
                    }
                  }
                },
                "description": "The page's sections and their resources, in display order. Only an update accepts it. Sending it replaces the whole structure, and sections and resources are matched by `id`. A section or resource without an `id` is created, and one you leave out is removed from the page. Removing a resource doesn't change the monitor or other resource it shows. An attribute you leave out of a resource keeps its value. Leave `sections` out to keep the structure as it is."
              },
              "aggregate_state": {
                "type": "string",
                "enum": [
                  "operational",
                  "degraded",
                  "downtime",
                  "maintenance"
                ],
                "description": "The page's overall status.",
                "x-enum-descriptions": {
                  "operational": "No resource on the page is down, degraded or in maintenance.",
                  "degraded": "A resource is degraded and none is down.",
                  "downtime": "A resource is down.",
                  "maintenance": "A resource is in maintenance and none is down or degraded."
                },
                "readOnly": true,
                "examples": [
                  "operational"
                ]
              },
              "public_url": {
                "type": "string",
                "description": "The address visitors open the page at. The `custom_domain` when the page has one, otherwise the betterstack.com `subdomain`.",
                "readOnly": true,
                "examples": [
                  "https://status.example.com/"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the status page was created.",
                "readOnly": true
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the status page was last updated.",
                "readOnly": true
              }
            }
          }
        }
      },
      "StatusPageCreate": {
        "$ref": "#/components/schemas/StatusPageCreateAttributes"
      },
      "StatusPageCreateAttributes": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "description": "The ID of the organization the page belongs to, such as `123`. Get the ID from `organization_id` in [List teams](/docs/uptime/api/teams/list/). Required on create when you sign in with OAuth and can access more than one organization."
          },
          "company_name": {
            "type": "string",
            "description": "Company name shown on the page."
          },
          "company_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company website URL."
          },
          "subdomain": {
            "type": "string",
            "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores."
          },
          "timezone": {
            "type": "string",
            "format": "time-zone",
            "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name."
          },
          "custom_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.",
            "examples": [
              "status.example.com"
            ]
          },
          "contact_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`."
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The logo shown in light mode. Responses return the URL of the stored logo. It accepts the URL of an image under 20 MB, and we fetch the logo from it. Send `null` to remove the logo.",
            "examples": [
              "https://example.com/logo.png"
            ]
          },
          "dark_logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The logo shown in dark mode. Responses return the URL of the stored logo. It accepts the URL of an image under 20 MB, and we fetch the logo from it. Send `null` to remove the logo.",
            "examples": [
              "https://example.com/logo-dark.png"
            ]
          },
          "logo_upload_id": {
            "type": "string",
            "description": "The logo shown in light mode, as the ID of a file upload. Send it instead of `logo_url`. Must be a `image/jpeg`, `image/png`, `image/webp` or `image/gif` image.",
            "writeOnly": true,
            "examples": [
              "123"
            ]
          },
          "dark_logo_upload_id": {
            "type": "string",
            "description": "The logo shown in dark mode, as the ID of a file upload. Send it instead of `dark_logo_url`. Must be a `image/jpeg`, `image/png`, `image/webp` or `image/gif` image.",
            "writeOnly": true,
            "examples": [
              "124"
            ]
          },
          "logo_remote_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL the light mode logo was fetched from. Send `null` to remove the logo. When you send this and `logo_url`, `logo_url` is used."
          },
          "dark_logo_remote_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL the dark mode logo was fetched from. Send `null` to remove the logo. When you send this and `dark_logo_url`, `dark_logo_url` is used."
          },
          "favicon_upload_id": {
            "type": "string",
            "description": "The favicon, as the ID of a file upload. Send it instead of `favicon_remote_url`. Must be a `image/jpeg`, `image/png`, `image/gif`, `image/svg+xml` or `image/x-icon` image.",
            "writeOnly": true,
            "examples": [
              "125"
            ]
          },
          "favicon_remote_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL the favicon was fetched from. It accepts the URL of an image under 20 MB, and we fetch the favicon from it. Send `null` to remove the favicon.",
            "examples": [
              "https://example.com/favicon.png"
            ]
          },
          "custom_css": {
            "type": [
              "string",
              "null"
            ],
            "description": "Custom CSS added to the page."
          },
          "custom_javascript": {
            "type": [
              "string",
              "null"
            ],
            "description": "Custom JavaScript added to the page."
          },
          "google_analytics_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`."
          },
          "min_incident_length": {
            "type": "integer",
            "format": "int64",
            "description": "Shortest incident the page shows, in seconds. `0` shows every incident. Must be less than a year.",
            "default": 0
          },
          "subscribable": {
            "type": "boolean",
            "description": "Whether visitors can subscribe to updates.",
            "default": false
          },
          "hide_from_search_engines": {
            "type": "boolean",
            "description": "Whether to hide the page from search engines with a `noindex` tag.",
            "default": false
          },
          "password_enabled": {
            "type": "boolean",
            "description": "Whether visitors need a password to view the page. Off unless you turn it on or set `password`."
          },
          "password": {
            "type": [
              "string",
              "null"
            ],
            "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on `password_enabled`, unless `password_enabled` is set too. An empty password removes the password and turns protection off.",
            "x-sensitive": true,
            "writeOnly": true
          },
          "require_sso": {
            "type": "boolean",
            "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with `password_enabled`.",
            "default": false
          },
          "published": {
            "type": "boolean",
            "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows.",
            "default": true
          },
          "history": {
            "type": "integer",
            "format": "int64",
            "description": "Number of days of history the page shows, from 7 to 365.",
            "default": 90
          },
          "treat_not_monitored_as_operational": {
            "type": "boolean",
            "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored.",
            "default": false
          },
          "design": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ],
            "description": "Page design.",
            "x-enum-descriptions": {
              "v1": "The classic design.",
              "v2": "The modern design."
            },
            "default": "v1"
          },
          "theme": {
            "type": "string",
            "enum": [
              "light",
              "dark",
              "system"
            ],
            "description": "Color theme. Only the `v2` design uses it.",
            "default": "light"
          },
          "layout": {
            "type": "string",
            "enum": [
              "vertical",
              "horizontal"
            ],
            "description": "Header layout of the page. Only the `v2` design uses it.",
            "default": "vertical"
          },
          "automatic_reports": {
            "type": "boolean",
            "description": "Whether status page reports are created automatically for new incidents.",
            "default": false
          },
          "status_page_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](/docs/uptime/api/list-all-status-page-groups/)."
          },
          "whitelabeled": {
            "type": "boolean",
            "description": "Whether to remove Better Stack branding from the page.",
            "default": false
          },
          "announcement": {
            "type": [
              "string",
              "null"
            ],
            "description": "Announcement banner text."
          },
          "announcement_embed_visible": {
            "type": "boolean",
            "description": "Whether the embeddable widget shows the announcement.",
            "default": true
          },
          "announcement_embed_link": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link the announcement points to on the embeddable widget. Defaults to the status page.",
            "examples": [
              "https://example.com/blog/maintenance"
            ]
          },
          "announcement_embed_css": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your own CSS for the announcement on the embeddable widget."
          },
          "navigation_links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The link's text, such as `Maintenance`."
                },
                "href": {
                  "type": "string",
                  "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages."
                }
              }
            },
            "description": "Up to four links in the page's navigation, each with `text` and `href`. Only the `v2` design shows them. An empty list removes them all.",
            "examples": [
              [
                {
                  "text": "Website",
                  "href": "https://example.com"
                }
              ]
            ]
          },
          "ip_allowlist": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments. Send `[]` to let anyone view it."
          }
        },
        "required": [
          "company_name",
          "subdomain",
          "timezone"
        ]
      },
      "StatusPageDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusPage"
          }
        }
      },
      "StatusPageGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The status_page_group's id."
          },
          "type": {
            "type": "string",
            "const": "status_page_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Group name.",
                "examples": [
                  "Production Status Pages"
                ]
              },
              "sort_index": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as `position`.",
                "examples": [
                  1
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the status page group was created.",
                "readOnly": true,
                "examples": [
                  "2024-11-07T11:33:24.408Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the status page group was last updated.",
                "readOnly": true,
                "examples": [
                  "2024-11-07T11:33:24.408Z"
                ]
              }
            }
          }
        }
      },
      "StatusPageGroupCreate": {
        "$ref": "#/components/schemas/StatusPageGroupCreateAttributes"
      },
      "StatusPageGroupCreateAttributes": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "description": "Organization the group belongs to, such as `123`. Required when you sign in with OAuth and can access more than one organization. Without it, the group belongs to your token's organization. Not returned in responses.",
            "writeOnly": true,
            "examples": [
              "123456"
            ]
          },
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Production Status Pages"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as `position`.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "StatusPageGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusPageGroup"
          }
        }
      },
      "StatusPageGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPageGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "StatusPageGroupUpdate": {
        "$ref": "#/components/schemas/StatusPageGroupUpdateAttributes"
      },
      "StatusPageGroupUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "Production Status Pages"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as `position`.",
            "examples": [
              1
            ]
          }
        }
      },
      "StatusPageList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPage"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "StatusPageResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The status_page_resource's id."
          },
          "type": {
            "type": "string",
            "const": "status_page_resource"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "status_page_section_id": {
                "type": "string",
                "description": "The ID of the section that holds this resource.",
                "examples": [
                  "456789"
                ]
              },
              "resource_id": {
                "type": "string",
                "description": "ID of the monitor, heartbeat or group to show.",
                "examples": [
                  "112233"
                ]
              },
              "resource_type": {
                "type": "string",
                "enum": [
                  "Monitor",
                  "MonitorGroup",
                  "Heartbeat",
                  "HeartbeatGroup",
                  "WebhookIntegration",
                  "EmailIntegration",
                  "IncomingWebhook",
                  "AmazonSnsIntegration",
                  "ManuallyTrackedItem",
                  "LogsChart",
                  "CatalogReference",
                  "ThirdPartyService"
                ],
                "description": "Type of the resource to show. Responses return a group as a monitor group or a heartbeat group, depending on what it groups.",
                "x-enum-descriptions": {
                  "Monitor": "Shows a monitor.",
                  "MonitorGroup": "Shows a monitor group.",
                  "Heartbeat": "Shows a heartbeat.",
                  "HeartbeatGroup": "Shows a heartbeat group.",
                  "WebhookIntegration": "Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.",
                  "EmailIntegration": "Shows an e-mail integration.",
                  "IncomingWebhook": "Shows an incoming webhook.",
                  "AmazonSnsIntegration": "Shows an Amazon SNS integration.",
                  "ManuallyTrackedItem": "Shows a manually tracked item. A new one is created when you leave out `resource_id`.",
                  "LogsChart": "Shows a dashboard chart, given in `chart_id`.",
                  "CatalogReference": "Shows a catalog value, given in `catalog_reference`.",
                  "ThirdPartyService": "Shows the status of a third-party service. Can only be added in the status page editor."
                },
                "examples": [
                  "Monitor"
                ]
              },
              "catalog_reference": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "The catalog relation's name."
                  },
                  "value": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                      },
                      "value": {
                        "type": "string",
                        "description": "The plain value, when `type` is `String`."
                      },
                      "item_id": {
                        "type": "string",
                        "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                      },
                      "name": {
                        "type": "string",
                        "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                      },
                      "email": {
                        "type": "string",
                        "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                      }
                    },
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "User"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                            }
                          }
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "type": {
                              "const": "Team"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "then": {
                          "properties": {
                            "item_id": {
                              "type": "string",
                              "pattern": "^t[1-9][0-9]*$"
                            }
                          }
                        }
                      }
                    ],
                    "description": "The catalog value to show, a plain string or a catalog item."
                  }
                },
                "description": "For a `CatalogReference` resource, the catalog value it shows. Send it in place of `resource_id`, and the value is found, or created if it doesn't exist yet. A user's `item_id` is `u123` or their e-mail, and a team's is `t123`. Responses return them in the same form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). `null` for every other type.",
                "examples": [
                  {
                    "key": "Owner team",
                    "value": {
                      "type": "Team",
                      "name": "Platform"
                    }
                  }
                ]
              },
              "chart_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows. Send it in place of `resource_id`. Responses then return a `resource_id` of the resource's own, not the chart's ID. The chart must be on one of your organization's dashboards. The chart can't be a table, live tail, text or funnel chart. `null` for every other type.",
                "examples": [
                  "123456"
                ]
              },
              "public_name": {
                "type": "string",
                "description": "The name shown publicly on the status page.",
                "examples": [
                  "https://uptime.betterstack.com/"
                ]
              },
              "explanation": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Tooltip explanation shown to visitors.",
                "examples": [
                  "Hide easter eggs here"
                ]
              },
              "history": {
                "type": "boolean",
                "description": "Whether `widget_type` is `history`.",
                "examples": [
                  true
                ],
                "deprecated": true
              },
              "widget_type": {
                "type": "string",
                "enum": [
                  "plain",
                  "history",
                  "intraday_history",
                  "response_times",
                  "intraday_response_times",
                  "chart_only"
                ],
                "description": "How the resource is shown. Defaults to showing the history of its status, or a response times chart for a logs chart.",
                "x-enum-descriptions": {
                  "plain": "Shows only the current status.",
                  "history": "Shows the current status and a history of it.",
                  "intraday_history": "Shows the current status and a detailed history of it.",
                  "response_times": "Shows a history of the status and a response times chart, for a monitor or a logs chart.",
                  "intraday_response_times": "Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.",
                  "chart_only": "Shows only the chart, for a logs chart."
                },
                "examples": [
                  "history"
                ]
              },
              "position": {
                "type": "integer",
                "format": "int64",
                "description": "Where the resource sits in its section, counted from zero.",
                "examples": [
                  0
                ]
              },
              "mark_as_down_for": {
                "type": "string",
                "enum": [
                  "no_incident",
                  "any_incident",
                  "incident_matching_metadata"
                ],
                "description": "Which incidents mark this resource down. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
                "x-enum-descriptions": {
                  "no_incident": "No incident marks the resource down.",
                  "any_incident": "Every open incident of the resource marks it down.",
                  "incident_matching_metadata": "An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`."
                },
                "default": "any_incident",
                "examples": [
                  "incident_matching_metadata"
                ]
              },
              "mark_as_down_metadata_rule": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "The incident metadata key to match."
                  },
                  "values": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                        },
                        "value": {
                          "type": "string",
                          "description": "The plain value, when `type` is `String`."
                        },
                        "item_id": {
                          "type": "string",
                          "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                        },
                        "name": {
                          "type": "string",
                          "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                        },
                        "email": {
                          "type": "string",
                          "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                        }
                      },
                      "allOf": [
                        {
                          "if": {
                            "properties": {
                              "type": {
                                "const": "User"
                              }
                            },
                            "required": [
                              "type"
                            ]
                          },
                          "then": {
                            "properties": {
                              "item_id": {
                                "type": "string",
                                "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                              }
                            }
                          }
                        },
                        {
                          "if": {
                            "properties": {
                              "type": {
                                "const": "Team"
                              }
                            },
                            "required": [
                              "type"
                            ]
                          },
                          "then": {
                            "properties": {
                              "item_id": {
                                "type": "string",
                                "pattern": "^t[1-9][0-9]*$"
                              }
                            }
                          }
                        }
                      ]
                    },
                    "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                  }
                },
                "description": "The incident metadata rule used when `mark_as_down_for` is `incident_matching_metadata`. Send a user's `item_id` as `u123` or their e-mail. Responses return it as `u123`, or as `null` once the user has left the organization. A team's `item_id` is `t123`, and other items' IDs are numbers. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Returned only when `mark_as_down_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
                "examples": [
                  {
                    "key": "Owner team",
                    "values": [
                      {
                        "type": "Team",
                        "item_id": "t123",
                        "name": "Platform"
                      }
                    ]
                  }
                ]
              },
              "mark_as_degraded_for": {
                "type": "string",
                "enum": [
                  "no_incident",
                  "any_incident",
                  "incident_matching_metadata"
                ],
                "description": "Which incidents mark this resource degraded. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
                "x-enum-descriptions": {
                  "no_incident": "No incident marks the resource degraded.",
                  "any_incident": "Every open incident of the resource marks it degraded.",
                  "incident_matching_metadata": "An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`."
                },
                "default": "no_incident",
                "examples": [
                  "incident_matching_metadata"
                ]
              },
              "mark_as_degraded_metadata_rule": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "The incident metadata key to match."
                  },
                  "values": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                        },
                        "value": {
                          "type": "string",
                          "description": "The plain value, when `type` is `String`."
                        },
                        "item_id": {
                          "type": "string",
                          "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                        },
                        "name": {
                          "type": "string",
                          "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                        },
                        "email": {
                          "type": "string",
                          "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                        }
                      },
                      "allOf": [
                        {
                          "if": {
                            "properties": {
                              "type": {
                                "const": "User"
                              }
                            },
                            "required": [
                              "type"
                            ]
                          },
                          "then": {
                            "properties": {
                              "item_id": {
                                "type": "string",
                                "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                              }
                            }
                          }
                        },
                        {
                          "if": {
                            "properties": {
                              "type": {
                                "const": "Team"
                              }
                            },
                            "required": [
                              "type"
                            ]
                          },
                          "then": {
                            "properties": {
                              "item_id": {
                                "type": "string",
                                "pattern": "^t[1-9][0-9]*$"
                              }
                            }
                          }
                        }
                      ]
                    },
                    "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                  }
                },
                "description": "The incident metadata rule used when `mark_as_degraded_for` is `incident_matching_metadata`, in the same shape as `mark_as_down_metadata_rule`. Returned only when `mark_as_degraded_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
                "examples": [
                  {
                    "key": "Severity",
                    "values": [
                      {
                        "type": "String",
                        "value": "critical"
                      },
                      {
                        "type": "String",
                        "value": "high"
                      }
                    ]
                  }
                ]
              },
              "availability": {
                "type": "number",
                "description": "Availability over the page's history window, from 0.0 to 1.0.",
                "readOnly": true,
                "examples": [
                  0.99963
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "operational",
                  "degraded",
                  "downtime",
                  "maintenance",
                  "not_monitored"
                ],
                "description": "The resource's current status.",
                "x-enum-descriptions": {
                  "operational": "Nothing marks the resource down, degraded or in maintenance.",
                  "degraded": "An open incident or status report marks the resource degraded.",
                  "downtime": "An open incident or status report marks the resource down.",
                  "maintenance": "A maintenance in progress covers the resource.",
                  "not_monitored": "The resource has no monitor, heartbeat or group behind it, or it's paused, and no open status report covers it."
                },
                "readOnly": true,
                "examples": [
                  "operational"
                ]
              },
              "ongoing_incident_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                },
                "description": "IDs of the ongoing incidents of the monitor, heartbeat or group the resource shows, including incidents that don't change its `status`. An incident is listed once it has lasted the status page's `min_incident_length`. Get one with [Get an incident](/docs/uptime/api/list-a-single-incident/).",
                "readOnly": true,
                "examples": [
                  [
                    123456
                  ]
                ]
              },
              "status_history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "string",
                      "description": "The first day the bar covers, as `YYYY-MM-DD`."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "operational",
                        "degraded",
                        "downtime",
                        "maintenance",
                        "recovered",
                        "recovered_degraded",
                        "not_monitored"
                      ],
                      "description": "The bar's status.\n\n- `operational`: Nothing marked the resource down, degraded or in maintenance during the bar.\n- `degraded`: The resource was degraded during the bar.\n- `downtime`: The resource was down during the bar.\n- `maintenance`: The resource was in maintenance and never down during the bar.\n- `recovered`: The resource was down today and is back up. Only today's bar has it.\n- `recovered_degraded`: The resource was degraded today and is back up. Only today's bar has it.\n- `not_monitored`: The resource wasn't monitored yet during the bar.",
                      "x-enum-descriptions": {
                        "operational": "Nothing marked the resource down, degraded or in maintenance during the bar.",
                        "degraded": "The resource was degraded during the bar.",
                        "downtime": "The resource was down during the bar.",
                        "maintenance": "The resource was in maintenance and never down during the bar.",
                        "recovered": "The resource was down today and is back up. Only today's bar has it.",
                        "recovered_degraded": "The resource was degraded today and is back up. Only today's bar has it.",
                        "not_monitored": "The resource wasn't monitored yet during the bar."
                      }
                    },
                    "downtime_duration": {
                      "type": "integer",
                      "format": "int64",
                      "description": "Seconds the resource was down or degraded during the bar."
                    },
                    "maintenance_duration": {
                      "type": "integer",
                      "format": "int64",
                      "description": "Seconds the resource was in maintenance during the bar."
                    }
                  }
                },
                "description": "The status over the page's history window, oldest first, with one entry per bar on the status page. When the page shows more days than it has bars, each bar covers several days.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "day": "2022-01-01",
                      "status": "operational",
                      "downtime_duration": 0,
                      "maintenance_duration": 0
                    },
                    {
                      "day": "2022-01-02",
                      "status": "downtime",
                      "downtime_duration": 120,
                      "maintenance_duration": 0
                    }
                  ]
                ]
              }
            }
          }
        }
      },
      "StatusPageResourceCreate": {
        "$ref": "#/components/schemas/StatusPageResourceCreateAttributes"
      },
      "StatusPageResourceCreateAttributes": {
        "type": "object",
        "properties": {
          "status_page_section_id": {
            "type": "string",
            "description": "The ID of the section that holds this resource. Leave it out on create to put the resource in the page's first section, or in a new default section if the page has none.",
            "examples": [
              "456789"
            ]
          },
          "resource_id": {
            "type": "string",
            "description": "ID of the monitor, heartbeat or group to show. Send `resource_type` with it. Required for every type except `ManuallyTrackedItem`, a `LogsChart` sent with `chart_id` and a `CatalogReference` sent with `catalog_reference`. Leave it out for a manually tracked item to create a new one.",
            "examples": [
              "112233"
            ]
          },
          "resource_type": {
            "type": "string",
            "enum": [
              "Monitor",
              "MonitorGroup",
              "Heartbeat",
              "HeartbeatGroup",
              "WebhookIntegration",
              "EmailIntegration",
              "IncomingWebhook",
              "AmazonSnsIntegration",
              "ManuallyTrackedItem",
              "LogsChart",
              "CatalogReference",
              "ThirdPartyService"
            ],
            "description": "Type of the resource to show. Responses return a group as a monitor group or a heartbeat group, depending on what it groups.",
            "x-enum-descriptions": {
              "Monitor": "Shows a monitor.",
              "MonitorGroup": "Shows a monitor group.",
              "Heartbeat": "Shows a heartbeat.",
              "HeartbeatGroup": "Shows a heartbeat group.",
              "WebhookIntegration": "Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.",
              "EmailIntegration": "Shows an e-mail integration.",
              "IncomingWebhook": "Shows an incoming webhook.",
              "AmazonSnsIntegration": "Shows an Amazon SNS integration.",
              "ManuallyTrackedItem": "Shows a manually tracked item. A new one is created when you leave out `resource_id`.",
              "LogsChart": "Shows a dashboard chart, given in `chart_id`.",
              "CatalogReference": "Shows a catalog value, given in `catalog_reference`.",
              "ThirdPartyService": "Shows the status of a third-party service. Can only be added in the status page editor."
            },
            "examples": [
              "Monitor"
            ]
          },
          "catalog_reference": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "key": {
                "type": "string",
                "description": "The catalog relation's name."
              },
              "value": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The plain value, when `type` is `String`."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                  },
                  "name": {
                    "type": "string",
                    "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                  },
                  "email": {
                    "type": "string",
                    "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ],
                "description": "The catalog value to show, a plain string or a catalog item."
              }
            },
            "description": "For a `CatalogReference` resource, the catalog value it shows. Send it in place of `resource_id`, and the value is found, or created if it doesn't exist yet. A user's `item_id` is `u123` or their e-mail, and a team's is `t123`. Responses return them in the same form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). `null` for every other type.",
            "examples": [
              {
                "key": "Owner team",
                "value": {
                  "type": "Team",
                  "name": "Platform"
                }
              }
            ]
          },
          "chart_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows. Send it in place of `resource_id`. Responses then return a `resource_id` of the resource's own, not the chart's ID. The chart must be on one of your organization's dashboards. The chart can't be a table, live tail, text or funnel chart. `null` for every other type.",
            "examples": [
              "123456"
            ]
          },
          "public_name": {
            "type": "string",
            "description": "The name shown publicly on the status page.",
            "examples": [
              "https://uptime.betterstack.com/"
            ]
          },
          "explanation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tooltip explanation shown to visitors.",
            "examples": [
              "Hide easter eggs here"
            ]
          },
          "history": {
            "type": "boolean",
            "description": "Whether `widget_type` is `history`. Sending `true` sets `widget_type` to `history`, and `false` sets it to `plain`, unless `widget_type` is also sent.",
            "examples": [
              true
            ],
            "deprecated": true
          },
          "widget_type": {
            "type": "string",
            "enum": [
              "plain",
              "history",
              "intraday_history",
              "response_times",
              "intraday_response_times",
              "chart_only"
            ],
            "description": "How the resource is shown. Defaults to showing the history of its status, or a response times chart for a logs chart.",
            "x-enum-descriptions": {
              "plain": "Shows only the current status.",
              "history": "Shows the current status and a history of it.",
              "intraday_history": "Shows the current status and a detailed history of it.",
              "response_times": "Shows a history of the status and a response times chart, for a monitor or a logs chart.",
              "intraday_response_times": "Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.",
              "chart_only": "Shows only the chart, for a logs chart."
            },
            "examples": [
              "history"
            ]
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Where the resource sits in its section, counted from zero. Sending a position moves the resources at or after it down by one, and a position past the end puts it last. Leave it out to add a new resource at the end. With `fixed_position` the position is saved as given and nothing moves.",
            "examples": [
              0
            ]
          },
          "fixed_position": {
            "type": "boolean",
            "description": "If `true`, the resource is saved at exactly `position` and the other resources keep their positions. Defaults to `false`.",
            "writeOnly": true,
            "examples": [
              true
            ]
          },
          "mark_as_down_for": {
            "type": "string",
            "enum": [
              "no_incident",
              "any_incident",
              "incident_matching_metadata"
            ],
            "description": "Which incidents mark this resource down. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "x-enum-descriptions": {
              "no_incident": "No incident marks the resource down.",
              "any_incident": "Every open incident of the resource marks it down.",
              "incident_matching_metadata": "An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`."
            },
            "default": "any_incident",
            "examples": [
              "incident_matching_metadata"
            ]
          },
          "mark_as_down_metadata_rule": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "The incident metadata key to match."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The plain value, when `type` is `String`."
                    },
                    "item_id": {
                      "type": "string",
                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                    },
                    "email": {
                      "type": "string",
                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "User"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "Team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
              }
            },
            "description": "The incident metadata rule used when `mark_as_down_for` is `incident_matching_metadata`. Send a user's `item_id` as `u123` or their e-mail. Responses return it as `u123`, or as `null` once the user has left the organization. A team's `item_id` is `t123`, and other items' IDs are numbers. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Returned only when `mark_as_down_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "examples": [
              {
                "key": "Owner team",
                "values": [
                  {
                    "type": "Team",
                    "item_id": "t123",
                    "name": "Platform"
                  }
                ]
              }
            ]
          },
          "mark_as_degraded_for": {
            "type": "string",
            "enum": [
              "no_incident",
              "any_incident",
              "incident_matching_metadata"
            ],
            "description": "Which incidents mark this resource degraded. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "x-enum-descriptions": {
              "no_incident": "No incident marks the resource degraded.",
              "any_incident": "Every open incident of the resource marks it degraded.",
              "incident_matching_metadata": "An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`."
            },
            "default": "no_incident",
            "examples": [
              "incident_matching_metadata"
            ]
          },
          "mark_as_degraded_metadata_rule": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "The incident metadata key to match."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The plain value, when `type` is `String`."
                    },
                    "item_id": {
                      "type": "string",
                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                    },
                    "email": {
                      "type": "string",
                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "User"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "Team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
              }
            },
            "description": "The incident metadata rule used when `mark_as_degraded_for` is `incident_matching_metadata`, in the same shape as `mark_as_down_metadata_rule`. Returned only when `mark_as_degraded_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "examples": [
              {
                "key": "Severity",
                "values": [
                  {
                    "type": "String",
                    "value": "critical"
                  },
                  {
                    "type": "String",
                    "value": "high"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "resource_type",
          "public_name"
        ]
      },
      "StatusPageResourceDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusPageResource"
          }
        }
      },
      "StatusPageResourceList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPageResource"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "StatusPageResourceUpdate": {
        "$ref": "#/components/schemas/StatusPageResourceUpdateAttributes"
      },
      "StatusPageResourceUpdateAttributes": {
        "type": "object",
        "properties": {
          "status_page_section_id": {
            "type": "string",
            "description": "The ID of the section that holds this resource. Leave it out on create to put the resource in the page's first section, or in a new default section if the page has none.",
            "examples": [
              "456789"
            ]
          },
          "resource_id": {
            "type": "string",
            "description": "ID of the monitor, heartbeat or group to show. Send `resource_type` with it. Required for every type except `ManuallyTrackedItem`, a `LogsChart` sent with `chart_id` and a `CatalogReference` sent with `catalog_reference`. Leave it out for a manually tracked item to create a new one.",
            "examples": [
              "112233"
            ]
          },
          "resource_type": {
            "type": "string",
            "enum": [
              "Monitor",
              "MonitorGroup",
              "Heartbeat",
              "HeartbeatGroup",
              "WebhookIntegration",
              "EmailIntegration",
              "IncomingWebhook",
              "AmazonSnsIntegration",
              "ManuallyTrackedItem",
              "LogsChart",
              "CatalogReference",
              "ThirdPartyService"
            ],
            "description": "Type of the resource to show. Responses return a group as a monitor group or a heartbeat group, depending on what it groups.",
            "x-enum-descriptions": {
              "Monitor": "Shows a monitor.",
              "MonitorGroup": "Shows a monitor group.",
              "Heartbeat": "Shows a heartbeat.",
              "HeartbeatGroup": "Shows a heartbeat group.",
              "WebhookIntegration": "Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.",
              "EmailIntegration": "Shows an e-mail integration.",
              "IncomingWebhook": "Shows an incoming webhook.",
              "AmazonSnsIntegration": "Shows an Amazon SNS integration.",
              "ManuallyTrackedItem": "Shows a manually tracked item. A new one is created when you leave out `resource_id`.",
              "LogsChart": "Shows a dashboard chart, given in `chart_id`.",
              "CatalogReference": "Shows a catalog value, given in `catalog_reference`.",
              "ThirdPartyService": "Shows the status of a third-party service. Can only be added in the status page editor."
            },
            "examples": [
              "Monitor"
            ]
          },
          "catalog_reference": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "key": {
                "type": "string",
                "description": "The catalog relation's name."
              },
              "value": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                  },
                  "value": {
                    "type": "string",
                    "description": "The plain value, when `type` is `String`."
                  },
                  "item_id": {
                    "type": "string",
                    "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                  },
                  "name": {
                    "type": "string",
                    "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                  },
                  "email": {
                    "type": "string",
                    "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "User"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "type": {
                          "const": "Team"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "then": {
                      "properties": {
                        "item_id": {
                          "type": "string",
                          "pattern": "^t[1-9][0-9]*$"
                        }
                      }
                    }
                  }
                ],
                "description": "The catalog value to show, a plain string or a catalog item."
              }
            },
            "description": "For a `CatalogReference` resource, the catalog value it shows. Send it in place of `resource_id`, and the value is found, or created if it doesn't exist yet. A user's `item_id` is `u123` or their e-mail, and a team's is `t123`. Responses return them in the same form. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). `null` for every other type.",
            "examples": [
              {
                "key": "Owner team",
                "value": {
                  "type": "Team",
                  "name": "Platform"
                }
              }
            ]
          },
          "chart_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows. Send it in place of `resource_id`. Responses then return a `resource_id` of the resource's own, not the chart's ID. The chart must be on one of your organization's dashboards. The chart can't be a table, live tail, text or funnel chart. `null` for every other type.",
            "examples": [
              "123456"
            ]
          },
          "public_name": {
            "type": "string",
            "description": "The name shown publicly on the status page.",
            "examples": [
              "https://uptime.betterstack.com/"
            ]
          },
          "explanation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tooltip explanation shown to visitors.",
            "examples": [
              "Hide easter eggs here"
            ]
          },
          "history": {
            "type": "boolean",
            "description": "Whether `widget_type` is `history`. Sending `true` sets `widget_type` to `history`, and `false` sets it to `plain`, unless `widget_type` is also sent.",
            "examples": [
              true
            ],
            "deprecated": true
          },
          "widget_type": {
            "type": "string",
            "enum": [
              "plain",
              "history",
              "intraday_history",
              "response_times",
              "intraday_response_times",
              "chart_only"
            ],
            "description": "How the resource is shown. Defaults to showing the history of its status, or a response times chart for a logs chart.",
            "x-enum-descriptions": {
              "plain": "Shows only the current status.",
              "history": "Shows the current status and a history of it.",
              "intraday_history": "Shows the current status and a detailed history of it.",
              "response_times": "Shows a history of the status and a response times chart, for a monitor or a logs chart.",
              "intraday_response_times": "Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.",
              "chart_only": "Shows only the chart, for a logs chart."
            },
            "examples": [
              "history"
            ]
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Where the resource sits in its section, counted from zero. Sending a position moves the resources at or after it down by one, and a position past the end puts it last. Leave it out to add a new resource at the end. With `fixed_position` the position is saved as given and nothing moves.",
            "examples": [
              0
            ]
          },
          "fixed_position": {
            "type": "boolean",
            "description": "If `true`, the resource is saved at exactly `position` and the other resources keep their positions. Defaults to `false`.",
            "writeOnly": true,
            "examples": [
              true
            ]
          },
          "mark_as_down_for": {
            "type": "string",
            "enum": [
              "no_incident",
              "any_incident",
              "incident_matching_metadata"
            ],
            "description": "Which incidents mark this resource down. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "x-enum-descriptions": {
              "no_incident": "No incident marks the resource down.",
              "any_incident": "Every open incident of the resource marks it down.",
              "incident_matching_metadata": "An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`."
            },
            "default": "any_incident",
            "examples": [
              "incident_matching_metadata"
            ]
          },
          "mark_as_down_metadata_rule": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "The incident metadata key to match."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The plain value, when `type` is `String`."
                    },
                    "item_id": {
                      "type": "string",
                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                    },
                    "email": {
                      "type": "string",
                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "User"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "Team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
              }
            },
            "description": "The incident metadata rule used when `mark_as_down_for` is `incident_matching_metadata`. Send a user's `item_id` as `u123` or their e-mail. Responses return it as `u123`, or as `null` once the user has left the organization. A team's `item_id` is `t123`, and other items' IDs are numbers. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). Returned only when `mark_as_down_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "examples": [
              {
                "key": "Owner team",
                "values": [
                  {
                    "type": "Team",
                    "item_id": "t123",
                    "name": "Platform"
                  }
                ]
              }
            ]
          },
          "mark_as_degraded_for": {
            "type": "string",
            "enum": [
              "no_incident",
              "any_incident",
              "incident_matching_metadata"
            ],
            "description": "Which incidents mark this resource degraded. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "x-enum-descriptions": {
              "no_incident": "No incident marks the resource degraded.",
              "any_incident": "Every open incident of the resource marks it degraded.",
              "incident_matching_metadata": "An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`."
            },
            "default": "no_incident",
            "examples": [
              "incident_matching_metadata"
            ]
          },
          "mark_as_degraded_metadata_rule": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "The incident metadata key to match."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                    },
                    "value": {
                      "type": "string",
                      "description": "The plain value, when `type` is `String`."
                    },
                    "item_id": {
                      "type": "string",
                      "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                    },
                    "name": {
                      "type": "string",
                      "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                    },
                    "email": {
                      "type": "string",
                      "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "User"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                          }
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "Team"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "pattern": "^t[1-9][0-9]*$"
                          }
                        }
                      }
                    }
                  ]
                },
                "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
              }
            },
            "description": "The incident metadata rule used when `mark_as_degraded_for` is `incident_matching_metadata`, in the same shape as `mark_as_down_metadata_rule`. Returned only when `mark_as_degraded_for` is `incident_matching_metadata`. A `ManuallyTrackedItem` has no incidents, so the rule has no effect on one.",
            "examples": [
              {
                "key": "Severity",
                "values": [
                  {
                    "type": "String",
                    "value": "critical"
                  },
                  {
                    "type": "String",
                    "value": "high"
                  }
                ]
              }
            ]
          }
        }
      },
      "StatusPageSection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The status_page_section's id."
          },
          "type": {
            "type": "string",
            "const": "status_page_section"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Section name.",
                "examples": [
                  "Current status by service"
                ]
              },
              "position": {
                "type": "integer",
                "format": "int64",
                "description": "Display order on the page, counting from 0. A position past the end lands last. Moving a section shifts only the sections between its old and new place.",
                "examples": [
                  0
                ]
              },
              "status_page_id": {
                "type": "integer",
                "format": "int64",
                "description": "The ID of the status page the section is on.",
                "readOnly": true,
                "examples": [
                  123
                ]
              }
            }
          }
        }
      },
      "StatusPageSectionCreate": {
        "$ref": "#/components/schemas/StatusPageSectionCreateAttributes"
      },
      "StatusPageSectionCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Section name.",
            "examples": [
              "Current status by service"
            ]
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Display order on the page, counting from 0. A position past the end lands last. Moving a section shifts only the sections between its old and new place. Must be a non-negative integer. Leave it out to add a new section at the end or to keep an updated one in place. Inserting at a position shifts the sections at or after it down one. With `fixed_position` set to `true`, the position is written as given and nothing shifts.",
            "examples": [
              0
            ]
          },
          "fixed_position": {
            "type": "boolean",
            "description": "Saves `position` as given, without moving the other sections.",
            "writeOnly": true,
            "examples": [
              true
            ]
          }
        }
      },
      "StatusPageSectionDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusPageSection"
          }
        }
      },
      "StatusPageSectionList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPageSection"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "StatusPageSectionUpdate": {
        "$ref": "#/components/schemas/StatusPageSectionUpdateAttributes"
      },
      "StatusPageSectionUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Section name.",
            "examples": [
              "Current status by service"
            ]
          },
          "position": {
            "type": "integer",
            "format": "int64",
            "description": "Display order on the page, counting from 0. A position past the end lands last. Moving a section shifts only the sections between its old and new place. Must be a non-negative integer. Leave it out to add a new section at the end or to keep an updated one in place. Inserting at a position shifts the sections at or after it down one. With `fixed_position` set to `true`, the position is written as given and nothing shifts.",
            "examples": [
              0
            ]
          },
          "fixed_position": {
            "type": "boolean",
            "description": "Saves `position` as given, without moving the other sections.",
            "writeOnly": true,
            "examples": [
              true
            ]
          }
        }
      },
      "StatusPageSubscriber": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The status_page_subscriber's id."
          },
          "type": {
            "type": "string",
            "const": "status_page_subscriber"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "status_page_id": {
                "type": "integer",
                "format": "int64",
                "description": "Status page to subscribe to.",
                "readOnly": true,
                "examples": [
                  987654321
                ]
              },
              "email": {
                "type": "string",
                "description": "Subscriber e-mail address.",
                "examples": [
                  "customer@example.com"
                ]
              },
              "status_page_resource_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                },
                "description": "Status page resources to follow. An empty list follows the whole page. Every ID must be a resource of this page other than a third-party service. Get the IDs via [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/).",
                "examples": [
                  [
                    12345
                  ]
                ]
              },
              "confirmed_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the subscription was confirmed, or `null` while it waits for the subscriber to confirm it. A subscriber created through the API is confirmed at once.",
                "readOnly": true,
                "examples": [
                  "2026-04-29T14:30:00.000Z"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the subscriber was created.",
                "readOnly": true,
                "examples": [
                  "2026-04-29T14:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the subscriber was last updated.",
                "readOnly": true,
                "examples": [
                  "2026-04-29T14:30:00.000Z"
                ]
              }
            }
          }
        }
      },
      "StatusPageSubscriberCreate": {
        "$ref": "#/components/schemas/StatusPageSubscriberCreateAttributes"
      },
      "StatusPageSubscriberCreateAttributes": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Subscriber e-mail address.",
            "examples": [
              "customer@example.com"
            ]
          },
          "status_page_resource_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Status page resources to follow. An empty list follows the whole page. Every ID must be a resource of this page other than a third-party service. Get the IDs via [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/).",
            "examples": [
              [
                "12345"
              ]
            ]
          }
        },
        "required": [
          "email"
        ]
      },
      "StatusPageSubscriberDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusPageSubscriber"
          }
        }
      },
      "StatusPageSubscriberList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusPageSubscriber"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "StatusPageSubscriberUpdate": {
        "$ref": "#/components/schemas/StatusPageSubscriberUpdateAttributes"
      },
      "StatusPageSubscriberUpdateAttributes": {
        "type": "object",
        "properties": {
          "status_page_resource_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Status page resources to follow. An empty list follows the whole page. Every ID must be a resource of this page other than a third-party service. Get the IDs via [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/). On update, the list replaces the previous selection.",
            "examples": [
              [
                "12345"
              ]
            ]
          }
        },
        "required": [
          "status_page_resource_ids"
        ]
      },
      "StatusPageUpdate": {
        "$ref": "#/components/schemas/StatusPageUpdateAttributes"
      },
      "StatusPageUpdateAttributes": {
        "type": "object",
        "properties": {
          "company_name": {
            "type": "string",
            "description": "Company name shown on the page."
          },
          "company_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company website URL."
          },
          "subdomain": {
            "type": "string",
            "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores."
          },
          "timezone": {
            "type": "string",
            "format": "time-zone",
            "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name."
          },
          "custom_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.",
            "examples": [
              "status.example.com"
            ]
          },
          "contact_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`."
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The logo shown in light mode. Responses return the URL of the stored logo. It accepts the URL of an image under 20 MB, and we fetch the logo from it. Send `null` to remove the logo.",
            "examples": [
              "https://example.com/logo.png"
            ]
          },
          "dark_logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The logo shown in dark mode. Responses return the URL of the stored logo. It accepts the URL of an image under 20 MB, and we fetch the logo from it. Send `null` to remove the logo.",
            "examples": [
              "https://example.com/logo-dark.png"
            ]
          },
          "logo_upload_id": {
            "type": "string",
            "description": "The logo shown in light mode, as the ID of a file upload. Send it instead of `logo_url`. Must be a `image/jpeg`, `image/png`, `image/webp` or `image/gif` image.",
            "writeOnly": true,
            "examples": [
              "123"
            ]
          },
          "dark_logo_upload_id": {
            "type": "string",
            "description": "The logo shown in dark mode, as the ID of a file upload. Send it instead of `dark_logo_url`. Must be a `image/jpeg`, `image/png`, `image/webp` or `image/gif` image.",
            "writeOnly": true,
            "examples": [
              "124"
            ]
          },
          "logo_remote_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL the light mode logo was fetched from. Send `null` to remove the logo. When you send this and `logo_url`, `logo_url` is used."
          },
          "dark_logo_remote_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL the dark mode logo was fetched from. Send `null` to remove the logo. When you send this and `dark_logo_url`, `dark_logo_url` is used."
          },
          "favicon_upload_id": {
            "type": "string",
            "description": "The favicon, as the ID of a file upload. Send it instead of `favicon_remote_url`. Must be a `image/jpeg`, `image/png`, `image/gif`, `image/svg+xml` or `image/x-icon` image.",
            "writeOnly": true,
            "examples": [
              "125"
            ]
          },
          "favicon_remote_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL the favicon was fetched from. It accepts the URL of an image under 20 MB, and we fetch the favicon from it. Send `null` to remove the favicon.",
            "examples": [
              "https://example.com/favicon.png"
            ]
          },
          "custom_css": {
            "type": [
              "string",
              "null"
            ],
            "description": "Custom CSS added to the page."
          },
          "custom_javascript": {
            "type": [
              "string",
              "null"
            ],
            "description": "Custom JavaScript added to the page."
          },
          "google_analytics_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`."
          },
          "min_incident_length": {
            "type": "integer",
            "format": "int64",
            "description": "Shortest incident the page shows, in seconds. `0` shows every incident. Must be less than a year.",
            "default": 0
          },
          "subscribable": {
            "type": "boolean",
            "description": "Whether visitors can subscribe to updates.",
            "default": false
          },
          "hide_from_search_engines": {
            "type": "boolean",
            "description": "Whether to hide the page from search engines with a `noindex` tag.",
            "default": false
          },
          "password_enabled": {
            "type": "boolean",
            "description": "Whether visitors need a password to view the page. Off unless you turn it on or set `password`."
          },
          "password": {
            "type": [
              "string",
              "null"
            ],
            "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on `password_enabled`, unless `password_enabled` is set too. An empty password removes the password and turns protection off.",
            "x-sensitive": true,
            "writeOnly": true
          },
          "require_sso": {
            "type": "boolean",
            "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with `password_enabled`.",
            "default": false
          },
          "published": {
            "type": "boolean",
            "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows.",
            "default": true
          },
          "history": {
            "type": "integer",
            "format": "int64",
            "description": "Number of days of history the page shows, from 7 to 365.",
            "default": 90
          },
          "treat_not_monitored_as_operational": {
            "type": "boolean",
            "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored.",
            "default": false
          },
          "design": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ],
            "description": "Page design.",
            "x-enum-descriptions": {
              "v1": "The classic design.",
              "v2": "The modern design."
            },
            "default": "v1"
          },
          "theme": {
            "type": "string",
            "enum": [
              "light",
              "dark",
              "system"
            ],
            "description": "Color theme. Only the `v2` design uses it.",
            "default": "light"
          },
          "layout": {
            "type": "string",
            "enum": [
              "vertical",
              "horizontal"
            ],
            "description": "Header layout of the page. Only the `v2` design uses it.",
            "default": "vertical"
          },
          "automatic_reports": {
            "type": "boolean",
            "description": "Whether status page reports are created automatically for new incidents.",
            "default": false
          },
          "status_page_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](/docs/uptime/api/list-all-status-page-groups/)."
          },
          "whitelabeled": {
            "type": "boolean",
            "description": "Whether to remove Better Stack branding from the page.",
            "default": false
          },
          "announcement": {
            "type": [
              "string",
              "null"
            ],
            "description": "Announcement banner text."
          },
          "announcement_embed_visible": {
            "type": "boolean",
            "description": "Whether the embeddable widget shows the announcement.",
            "default": true
          },
          "announcement_embed_link": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link the announcement points to on the embeddable widget. Defaults to the status page.",
            "examples": [
              "https://example.com/blog/maintenance"
            ]
          },
          "announcement_embed_css": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your own CSS for the announcement on the embeddable widget."
          },
          "navigation_links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The link's text, such as `Maintenance`."
                },
                "href": {
                  "type": "string",
                  "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages."
                }
              }
            },
            "description": "Up to four links in the page's navigation, each with `text` and `href`. Only the `v2` design shows them. An empty list removes them all.",
            "examples": [
              [
                {
                  "text": "Website",
                  "href": "https://example.com"
                }
              ]
            ]
          },
          "ip_allowlist": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments. Send `[]` to let anyone view it."
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The section's ID. Leave it out for a new section. Send the ID to keep the section, even when you move it."
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Section name."
                },
                "resources": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "The resource's ID. Leave it out for a new resource. Send the ID to keep the resource and its subscribers, even when you move it to another section."
                      },
                      "resource_type": {
                        "type": "string",
                        "enum": [
                          "Monitor",
                          "MonitorGroup",
                          "Heartbeat",
                          "HeartbeatGroup",
                          "WebhookIntegration",
                          "EmailIntegration",
                          "IncomingWebhook",
                          "AmazonSnsIntegration",
                          "ManuallyTrackedItem",
                          "LogsChart",
                          "CatalogReference",
                          "ThirdPartyService"
                        ],
                        "description": "Type of the underlying resource. Required for a new resource.\n\n- `Monitor`: Shows a monitor.\n- `MonitorGroup`: Shows a monitor group.\n- `Heartbeat`: Shows a heartbeat.\n- `HeartbeatGroup`: Shows a heartbeat group.\n- `WebhookIntegration`: Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.\n- `EmailIntegration`: Shows an e-mail integration.\n- `IncomingWebhook`: Shows an incoming webhook.\n- `AmazonSnsIntegration`: Shows an Amazon SNS integration.\n- `ManuallyTrackedItem`: Shows a manually tracked item, which we create when you leave out `resource_id`.\n- `LogsChart`: Shows a dashboard chart, given in `chart_id`.\n- `CatalogReference`: Shows a catalog value, given in `catalog_reference`.\n- `ThirdPartyService`: Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its `id`, it keeps the services it shows.",
                        "x-enum-descriptions": {
                          "Monitor": "Shows a monitor.",
                          "MonitorGroup": "Shows a monitor group.",
                          "Heartbeat": "Shows a heartbeat.",
                          "HeartbeatGroup": "Shows a heartbeat group.",
                          "WebhookIntegration": "Shows an integration that opens incidents from another tool's alerts, such as Datadog or Grafana.",
                          "EmailIntegration": "Shows an e-mail integration.",
                          "IncomingWebhook": "Shows an incoming webhook.",
                          "AmazonSnsIntegration": "Shows an Amazon SNS integration.",
                          "ManuallyTrackedItem": "Shows a manually tracked item, which we create when you leave out `resource_id`.",
                          "LogsChart": "Shows a dashboard chart, given in `chart_id`.",
                          "CatalogReference": "Shows a catalog value, given in `catalog_reference`.",
                          "ThirdPartyService": "Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its `id`, it keeps the services it shows."
                        }
                      },
                      "resource_id": {
                        "type": "string",
                        "description": "ID of the underlying monitor, heartbeat, group or other record. Required for a new resource. A `ManuallyTrackedItem` doesn't need it, since we create the item for you. Neither does a resource whose `catalog_reference` names a catalog value or whose `chart_id` names a dashboard chart."
                      },
                      "catalog_reference": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "The catalog relation's name."
                          },
                          "value": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                              },
                              "value": {
                                "type": "string",
                                "description": "The plain value, when `type` is `String`."
                              },
                              "item_id": {
                                "type": "string",
                                "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`."
                              },
                              "name": {
                                "type": "string",
                                "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                              },
                              "email": {
                                "type": "string",
                                "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                              }
                            },
                            "allOf": [
                              {
                                "if": {
                                  "properties": {
                                    "type": {
                                      "const": "User"
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                },
                                "then": {
                                  "properties": {
                                    "item_id": {
                                      "type": "string",
                                      "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                    }
                                  }
                                }
                              },
                              {
                                "if": {
                                  "properties": {
                                    "type": {
                                      "const": "Team"
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                },
                                "then": {
                                  "properties": {
                                    "item_id": {
                                      "type": "string",
                                      "pattern": "^t[1-9][0-9]*$"
                                    }
                                  }
                                }
                              }
                            ],
                            "description": "The catalog value to show, a plain string or a catalog item."
                          }
                        },
                        "description": "For a `CatalogReference` resource, the catalog value it shows, as on a status page resource. We find or create the catalog value, and it sets the resource's `resource_id`. A `resource_id` sent along with it is ignored. `null` for every other type."
                      },
                      "chart_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows, as on a status page resource. The chart must be on one of your organization's dashboards. The chart decides the resource's `resource_id`, so a `resource_id` sent with `chart_id` is ignored. `null` for every other type."
                      },
                      "public_name": {
                        "type": "string",
                        "description": "Name shown publicly. Required for a new resource."
                      },
                      "explanation": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Text shown to visitors in a tooltip next to the resource."
                      },
                      "widget_type": {
                        "type": "string",
                        "enum": [
                          "plain",
                          "history",
                          "intraday_history",
                          "response_times",
                          "intraday_response_times",
                          "chart_only"
                        ],
                        "description": "How the resource is shown on the page.\n\n- `plain`: Shows only the current status.\n- `history`: Shows the current status and a history of it.\n- `intraday_history`: Shows the current status and a detailed history of it.\n- `response_times`: Shows a history of the status and a response times chart, for a monitor or a logs chart.\n- `intraday_response_times`: Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.\n- `chart_only`: Shows only the chart, for a logs chart.",
                        "x-enum-descriptions": {
                          "plain": "Shows only the current status.",
                          "history": "Shows the current status and a history of it.",
                          "intraday_history": "Shows the current status and a detailed history of it.",
                          "response_times": "Shows a history of the status and a response times chart, for a monitor or a logs chart.",
                          "intraday_response_times": "Shows a detailed history of the status and a response times chart, for a monitor or a logs chart.",
                          "chart_only": "Shows only the chart, for a logs chart."
                        }
                      },
                      "mark_as_down_for": {
                        "type": "string",
                        "enum": [
                          "no_incident",
                          "any_incident",
                          "incident_matching_metadata"
                        ],
                        "description": "When an incident marks this resource as down. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n\n- `no_incident`: No incident marks the resource down.\n- `any_incident`: Every open incident of the resource marks it down.\n- `incident_matching_metadata`: An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`.",
                        "x-enum-descriptions": {
                          "no_incident": "No incident marks the resource down.",
                          "any_incident": "Every open incident of the resource marks it down.",
                          "incident_matching_metadata": "An open incident marks the resource down when its metadata matches `mark_as_down_metadata_rule`."
                        }
                      },
                      "mark_as_down_metadata_rule": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "The incident metadata key to match."
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                                },
                                "value": {
                                  "type": "string",
                                  "description": "The plain value, when `type` is `String`."
                                },
                                "item_id": {
                                  "type": "string",
                                  "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                                },
                                "email": {
                                  "type": "string",
                                  "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                                }
                              },
                              "allOf": [
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "User"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                      }
                                    }
                                  }
                                },
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "Team"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^t[1-9][0-9]*$"
                                      }
                                    }
                                  }
                                }
                              ]
                            },
                            "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                          }
                        },
                        "description": "Metadata rule used when `mark_as_down_for` is `incident_matching_metadata`, as on a status page resource. A user is `u123` or their e-mail, and a team is `t123`. Get a user's ID via [List team members](/docs/uptime/api/team-members/list/), and a team's ID via [List teams](/docs/uptime/api/teams/list/). The setting has no effect on a `ManuallyTrackedItem`, which has no incidents."
                      },
                      "mark_as_degraded_for": {
                        "type": "string",
                        "enum": [
                          "no_incident",
                          "any_incident",
                          "incident_matching_metadata"
                        ],
                        "description": "When an incident marks this resource as degraded. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n\n- `no_incident`: No incident marks the resource degraded.\n- `any_incident`: Every open incident of the resource marks it degraded.\n- `incident_matching_metadata`: An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`.",
                        "x-enum-descriptions": {
                          "no_incident": "No incident marks the resource degraded.",
                          "any_incident": "Every open incident of the resource marks it degraded.",
                          "incident_matching_metadata": "An open incident marks the resource degraded when its metadata matches `mark_as_degraded_metadata_rule`."
                        }
                      },
                      "mark_as_degraded_metadata_rule": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "The incident metadata key to match."
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`."
                                },
                                "value": {
                                  "type": "string",
                                  "description": "The plain value, when `type` is `String`."
                                },
                                "item_id": {
                                  "type": "string",
                                  "description": "The catalog item's ID, when `type` isn't `String`. A user is `u123` or their e-mail, and a team is `t123`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/)."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "The catalog item's name. Set it instead of `item_id` to find the item."
                                },
                                "email": {
                                  "type": "string",
                                  "description": "The user's e-mail, when `type` is `User`. Set it instead of `item_id` to find the user."
                                }
                              },
                              "allOf": [
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "User"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^(u[1-9][0-9]*|[^@/\\s]+@[^@/\\s]+)$"
                                      }
                                    }
                                  }
                                },
                                {
                                  "if": {
                                    "properties": {
                                      "type": {
                                        "const": "Team"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "then": {
                                    "properties": {
                                      "item_id": {
                                        "type": "string",
                                        "pattern": "^t[1-9][0-9]*$"
                                      }
                                    }
                                  }
                                }
                              ]
                            },
                            "description": "The values to match. An incident matches when its metadata under `key` holds one of them."
                          }
                        },
                        "description": "Metadata rule used when `mark_as_degraded_for` is `incident_matching_metadata`, in the shape of `mark_as_down_metadata_rule`. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents."
                      }
                    }
                  },
                  "description": "The section's resources, in display order. Leave it out to keep the section's resources as they are. A new section starts empty."
                }
              }
            },
            "description": "The page's sections and their resources, in display order. Only an update accepts it. Sending it replaces the whole structure, and sections and resources are matched by `id`. A section or resource without an `id` is created, and one you leave out is removed from the page. Removing a resource doesn't change the monitor or other resource it shows. An attribute you leave out of a resource keeps its value. Leave `sections` out to keep the structure as it is."
          }
        }
      },
      "StatusReport": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The status_report's id."
          },
          "type": {
            "type": "string",
            "const": "status_report"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "status_page_id": {
                "type": "integer",
                "format": "int64",
                "description": "Status page this report belongs to.",
                "readOnly": true,
                "examples": [
                  123456
                ]
              },
              "title": {
                "type": "string",
                "description": "Report title.",
                "examples": [
                  "Status report title"
                ]
              },
              "report_type": {
                "type": "string",
                "enum": [
                  "manual",
                  "maintenance",
                  "automatic"
                ],
                "description": "Type of report. Can't be changed after create.",
                "x-enum-descriptions": {
                  "manual": "A report you write and update yourself.",
                  "maintenance": "A report of planned maintenance between `starts_at` and `ends_at`.",
                  "automatic": "A report opened automatically when a resource went down. You can't create one with the API."
                },
                "default": "manual",
                "examples": [
                  "manual"
                ]
              },
              "starts_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the report starts. For a maintenance report, when the maintenance window starts. For any other report, the `published_at` of its first status update.",
                "examples": [
                  "2021-12-17T11:00:00.000Z"
                ]
              },
              "ends_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the report ends, or `null` when it has no end time. A maintenance report always has one, no earlier than `starts_at`. A manual report has no end time, so this has no effect on one.",
                "examples": [
                  "2021-12-17T12:00:00.000Z"
                ]
              },
              "affected_resources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "status_page_resource_id": {
                      "type": "string",
                      "description": "The ID of the status page resource, from [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/)."
                    },
                    "status": {
                      "type": "string",
                      "description": "The resource's status, `resolved`, `degraded`, `downtime` or `maintenance`."
                    }
                  }
                },
                "description": "Affected resources and their current states. The status is `resolved`, `degraded` or `downtime` on a manual report, or `maintenance` on a maintenance report. A new manual report has at least one.",
                "examples": [
                  [
                    {
                      "status_page_resource_id": "12345",
                      "status": "downtime"
                    }
                  ]
                ]
              },
              "aggregate_state": {
                "type": "string",
                "enum": [
                  "resolved",
                  "degraded",
                  "downtime",
                  "maintenance"
                ],
                "description": "Overall state of the report.",
                "x-enum-descriptions": {
                  "resolved": "Every resource the report covers is back to normal.",
                  "degraded": "A resource the report covers is degraded and none is down.",
                  "downtime": "A resource the report covers is down.",
                  "maintenance": "The resources the report covers are under maintenance."
                },
                "readOnly": true,
                "examples": [
                  "downtime"
                ]
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "status_updates": {
                "type": "object",
                "readOnly": true,
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "type"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "const": "status_update"
                        }
                      }
                    }
                  }
                },
                "description": "Status updates posted to this report. Get, create and update also return each update in full under `included`, as [Get a status update](/docs/uptime/api/get-a-single-status-update/) returns it, while listing reports returns only their ids. On a maintenance report, each update's `affected_resources` is empty."
              }
            }
          }
        }
      },
      "StatusReportCreate": {
        "$ref": "#/components/schemas/StatusReportCreateAttributes"
      },
      "StatusReportCreateAttributes": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Report title.",
            "examples": [
              "Status report title"
            ]
          },
          "report_type": {
            "type": "string",
            "enum": [
              "manual",
              "maintenance",
              "automatic"
            ],
            "description": "Type of report. Can't be changed after create.",
            "x-enum-descriptions": {
              "manual": "A report you write and update yourself.",
              "maintenance": "A report of planned maintenance between `starts_at` and `ends_at`.",
              "automatic": "A report opened automatically when a resource went down. You can't create one with the API."
            },
            "default": "manual",
            "examples": [
              "manual"
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the report starts. For a maintenance report, when the maintenance window starts. For any other report, the `published_at` of its first status update. Defaults to now on create.",
            "examples": [
              "2021-12-17T11:00:00.000Z"
            ]
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the report ends, or `null` when it has no end time. A maintenance report always has one, no earlier than `starts_at`. A manual report has no end time, so this has no effect on one.",
            "examples": [
              "2021-12-17T12:00:00.000Z"
            ]
          },
          "affected_resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status_page_resource_id": {
                  "type": "string",
                  "description": "The ID of the status page resource, from [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/)."
                },
                "status": {
                  "type": "string",
                  "description": "The resource's status, `resolved`, `degraded`, `downtime` or `maintenance`."
                }
              }
            },
            "description": "Affected resources and their current states. The status is `resolved`, `degraded` or `downtime` on a manual report, or `maintenance` on a maintenance report. A new manual report has at least one.",
            "examples": [
              [
                {
                  "status_page_resource_id": "12345",
                  "status": "downtime"
                }
              ]
            ]
          },
          "message": {
            "type": "string",
            "description": "Text of the report's first status update.",
            "writeOnly": true,
            "examples": [
              "Status update message"
            ]
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the first status update is published. Defaults to now. For a maintenance report, it's always `starts_at`.",
            "writeOnly": true,
            "examples": [
              "2021-12-17T11:00:00.000Z"
            ]
          },
          "notify_subscribers": {
            "type": "boolean",
            "description": "Whether to notify subscribers of the first status update. Subscribers aren't notified about a maintenance report whose window is already over.",
            "writeOnly": true,
            "default": true,
            "examples": [
              true
            ]
          }
        },
        "required": [
          "title",
          "message"
        ]
      },
      "StatusReportDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusReport"
          }
        }
      },
      "StatusReportList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusReport"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "StatusReportUpdate": {
        "$ref": "#/components/schemas/StatusReportUpdateAttributes"
      },
      "StatusReportUpdateAttributes": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Report title.",
            "examples": [
              "Status report title"
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the report starts. For a maintenance report, when the maintenance window starts. For any other report, the `published_at` of its first status update. Defaults to now on create.",
            "examples": [
              "2021-12-17T11:00:00.000Z"
            ]
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the report ends, or `null` when it has no end time. A maintenance report always has one, no earlier than `starts_at`. A manual report has no end time, so this has no effect on one.",
            "examples": [
              "2021-12-17T12:00:00.000Z"
            ]
          }
        }
      },
      "StatusUpdate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The status_update's id."
          },
          "type": {
            "type": "string",
            "const": "status_update"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "status_report_id": {
                "type": "integer",
                "format": "int64",
                "description": "Report this status update belongs to, as given in the path.",
                "readOnly": true,
                "examples": [
                  12345
                ]
              },
              "message": {
                "type": "string",
                "description": "The update's text, shown to visitors.",
                "examples": [
                  "Status update message"
                ]
              },
              "affected_resources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "status_page_resource_id": {
                      "type": "string",
                      "description": "The ID of the status page resource, from [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/)."
                    },
                    "status": {
                      "type": "string",
                      "description": "The resource's status, `resolved`, `degraded` or `downtime`."
                    }
                  }
                },
                "description": "Affected resources and their states. Resources you don't list keep their status from earlier updates. Every status update lists at least one resource, except on a maintenance report, where the resources are set on the report and its status updates list none. A list you send on update replaces the current list. Leave it out to keep the current list.",
                "examples": [
                  [
                    {
                      "status_page_resource_id": "12345",
                      "status": "downtime"
                    }
                  ]
                ]
              },
              "published_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the update is published. On create, it defaults to now.",
                "examples": [
                  "2021-12-17T11:00:00.000Z"
                ]
              },
              "published_at_timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The time zone `published_at` was entered in on the dashboard. `null` for an update posted through the API.",
                "readOnly": true,
                "examples": [
                  "UTC"
                ]
              },
              "notify_subscribers": {
                "type": "boolean",
                "description": "Whether to notify subscribers of this update. Subscribers are notified at `published_at`, which can be in the future.",
                "default": true,
                "examples": [
                  false
                ]
              }
            }
          }
        }
      },
      "StatusUpdateCreate": {
        "$ref": "#/components/schemas/StatusUpdateCreateAttributes"
      },
      "StatusUpdateCreateAttributes": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The update's text, shown to visitors.",
            "examples": [
              "Status update message"
            ]
          },
          "affected_resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status_page_resource_id": {
                  "type": "string",
                  "description": "The ID of the status page resource, from [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/)."
                },
                "status": {
                  "type": "string",
                  "description": "The resource's status, `resolved`, `degraded` or `downtime`."
                }
              }
            },
            "description": "Affected resources and their states. Resources you don't list keep their status from earlier updates. Every status update lists at least one resource, except on a maintenance report, where the resources are set on the report and its status updates list none. A list you send on update replaces the current list. Leave it out to keep the current list.",
            "examples": [
              [
                {
                  "status_page_resource_id": "12345",
                  "status": "downtime"
                }
              ]
            ]
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the update is published. On create, it defaults to now.",
            "examples": [
              "2021-12-17T11:00:00.000Z"
            ]
          },
          "notify_subscribers": {
            "type": "boolean",
            "description": "Whether to notify subscribers of this update. Subscribers are notified at `published_at`, which can be in the future.",
            "default": true,
            "examples": [
              false
            ]
          }
        },
        "required": [
          "message"
        ]
      },
      "StatusUpdateDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StatusUpdate"
          }
        }
      },
      "StatusUpdateList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusUpdate"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "StatusUpdateUpdate": {
        "$ref": "#/components/schemas/StatusUpdateUpdateAttributes"
      },
      "StatusUpdateUpdateAttributes": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The update's text, shown to visitors.",
            "examples": [
              "Status update message"
            ]
          },
          "affected_resources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status_page_resource_id": {
                  "type": "string",
                  "description": "The ID of the status page resource, from [List status page resources](/docs/uptime/api/list-existing-resources-of-a-status-page/)."
                },
                "status": {
                  "type": "string",
                  "description": "The resource's status, `resolved`, `degraded` or `downtime`."
                }
              }
            },
            "description": "Affected resources and their states. Resources you don't list keep their status from earlier updates. Every status update lists at least one resource, except on a maintenance report, where the resources are set on the report and its status updates list none. A list you send on update replaces the current list. Leave it out to keep the current list.",
            "examples": [
              [
                {
                  "status_page_resource_id": "12345",
                  "status": "downtime"
                }
              ]
            ]
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the update is published. On create, it defaults to now.",
            "examples": [
              "2021-12-17T11:00:00.000Z"
            ]
          },
          "notify_subscribers": {
            "type": "boolean",
            "description": "Whether to notify subscribers of this update. Subscribers are notified at `published_at`, which can be in the future.",
            "default": true,
            "examples": [
              false
            ]
          }
        }
      },
      "TeamMaintenance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The team_maintenance's id."
          },
          "type": {
            "type": "string",
            "const": "team_maintenance"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "maintenance": {
                "type": "boolean",
                "description": "Whether the team is in maintenance now.",
                "readOnly": true,
                "examples": [
                  true
                ]
              },
              "maintenance_to": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the current maintenance ends. `null` when the team isn't in maintenance.",
                "readOnly": true,
                "examples": [
                  "2027-06-01T18:30:00Z"
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "The team's ID, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team.",
                "readOnly": true,
                "examples": [
                  "Platform team"
                ]
              }
            }
          }
        }
      },
      "TeamMaintenanceDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TeamMaintenance"
          }
        }
      },
      "ThirdPartyService": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The third_party_service's id."
          },
          "type": {
            "type": "string",
            "const": "third_party_service"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The vendor's name.",
                "readOnly": true,
                "examples": [
                  "AWS"
                ]
              },
              "aliases": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Other names the vendor goes by. The list's `name` filter and the `id` of a single vendor match them too.",
                "readOnly": true,
                "examples": [
                  [
                    "Amazon"
                  ]
                ]
              },
              "category": {
                "type": "string",
                "description": "The kind of service, as the status page editor groups vendors.",
                "readOnly": true,
                "examples": [
                  "Cloud"
                ]
              },
              "status": {
                "type": "string",
                "description": "The vendor's headline status, as its own status page states it, such as `operational`, `degraded` or `downtime`. A vendor can read `operational` with a few services down, which `services_not_operational` shows.",
                "readOnly": true,
                "examples": [
                  "degraded"
                ]
              },
              "services_not_operational": {
                "type": "integer",
                "format": "int64",
                "description": "How many of the services or locations the vendor lists aren't operational now.",
                "readOnly": true,
                "examples": [
                  3
                ]
              },
              "status_page_url": {
                "type": "string",
                "description": "The vendor's own status page.",
                "readOnly": true,
                "examples": [
                  "https://health.aws.amazon.com/health/status"
                ]
              },
              "status_unknown": {
                "type": "boolean",
                "description": "`true` when Better Stack couldn't read the vendor's status page lately, or hasn't yet.",
                "readOnly": true,
                "examples": [
                  false
                ]
              },
              "status_read_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When Better Stack last read the vendor's status page. `null` before the first read.",
                "readOnly": true,
                "examples": [
                  "2026-11-22T10:41:00Z"
                ]
              },
              "status_page_rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "status_page_id": {
                      "type": "string",
                      "description": "The ID of the status page that shows the row."
                    },
                    "status_page_name": {
                      "type": "string",
                      "description": "The status page's company name."
                    },
                    "name": {
                      "type": "string",
                      "description": "The row's name, such as `AWS: us-east-1`."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status the row shows, such as `operational`, `degraded` or `downtime`."
                    }
                  }
                },
                "description": "The rows the organization's own status pages show for this vendor, each with the status the page shows for it.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "status_page_id": "123",
                      "status_page_name": "Acme status",
                      "name": "AWS: us-east-1",
                      "status": "operational"
                    }
                  ]
                ]
              },
              "from": {
                "type": "string",
                "format": "date-time",
                "description": "Start of the window the changes overlap.",
                "readOnly": true,
                "examples": [
                  "2026-11-21T10:00:00Z"
                ]
              },
              "to": {
                "type": "string",
                "format": "date-time",
                "description": "End of the window the changes overlap.",
                "readOnly": true,
                "examples": [
                  "2026-11-22T10:00:00Z"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The region the changes were narrowed to, or `null` when they weren't.",
                "readOnly": true,
                "examples": [
                  "us-east-1"
                ]
              },
              "service": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The service the changes were narrowed to, or `null` when they weren't.",
                "readOnly": true,
                "examples": [
                  "EC2"
                ]
              },
              "services_total": {
                "type": "integer",
                "format": "int64",
                "description": "How many services or locations the vendor lists.",
                "readOnly": true,
                "examples": [
                  5806
                ]
              },
              "services_matched": {
                "type": "integer",
                "format": "int64",
                "description": "How many of them `region` and `service` matched.",
                "readOnly": true,
                "examples": [
                  12
                ]
              },
              "groups": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The region's or group's name, such as `us-east-1`."
                    },
                    "status": {
                      "type": "string",
                      "description": "The region's or group's status, such as `operational` or `degraded`."
                    },
                    "services": {
                      "type": "integer",
                      "format": "int64",
                      "description": "How many services the region or group lists."
                    },
                    "services_not_operational": {
                      "type": "integer",
                      "format": "int64",
                      "description": "How many of its services aren't operational now."
                    }
                  }
                },
                "description": "The vendor's regions or groups, to narrow to one with `region`.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "name": "us-east-1",
                      "status": "degraded",
                      "services": 220,
                      "services_not_operational": 2
                    }
                  ]
                ]
              },
              "changes_total": {
                "type": "integer",
                "format": "int64",
                "description": "How many status changes overlap the window.",
                "readOnly": true,
                "examples": [
                  2
                ]
              },
              "changes_truncated": {
                "type": "boolean",
                "description": "`true` when only the newest 50 changes are listed. Narrow the window, `region` or `service` to see the rest.",
                "readOnly": true,
                "examples": [
                  false
                ]
              },
              "changes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "service": {
                      "type": "string",
                      "description": "The service that changed status, such as `EC2 (us-east-1)`."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status the service changed to, such as `degraded`."
                    },
                    "started_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the change started."
                    },
                    "ended_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time",
                      "description": "When the change ended. `null` while it's ongoing."
                    }
                  }
                },
                "description": "The status changes of the matched services that overlap the window, newest first.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "service": "EC2 (us-east-1)",
                      "status": "degraded",
                      "started_at": "2026-11-22T08:10:00Z",
                      "ended_at": null
                    }
                  ]
                ]
              }
            }
          }
        }
      },
      "ThirdPartyServiceDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ThirdPartyService"
          }
        }
      }
    }
  }
}
