{
  "openapi": "3.1.0",
  "info": {
    "title": "Errors API",
    "version": "1.4.6",
    "description": "Error-tracking applications, their groups, the errors they collect, and release registration."
  },
  "servers": [
    {
      "url": "https://errors.betterstack.com"
    }
  ],
  "x-cli-token-env": "BETTERSTACK_GLOBAL_API_TOKEN",
  "x-cli-examples": [
    {
      "title": "List an application's unresolved errors",
      "commands": [
        "error list 123 --state unresolved"
      ]
    }
  ],
  "security": [
    {
      "teamApiToken": []
    },
    {
      "globalApiToken": []
    },
    {
      "userOauth": []
    }
  ],
  "tags": [
    {
      "name": "application",
      "description": "An error-tracking application collects the exceptions, releases and web events of one service."
    },
    {
      "name": "application_field",
      "description": "A field an application's logs, spans, exceptions or web events can be queried by, with its type.",
      "x-wire-type": "source_field"
    },
    {
      "name": "application_group",
      "description": "A group that organizes related error-tracking applications together."
    },
    {
      "name": "application_metric",
      "description": "A metric an application has ingested or defines from its data, with its type, aggregations and recent usage.",
      "x-wire-type": "source_metric"
    },
    {
      "name": "data_region",
      "description": "A data region or dedicated cluster a new application can store its data in."
    },
    {
      "name": "error",
      "description": "An error pattern collected by an error-tracking application, with its triage state."
    },
    {
      "name": "error_comment",
      "description": "A comment in an error's conversation, left in the web app, through the API or MCP, in the error's Slack thread, or synced from a linked issue in Linear."
    },
    {
      "name": "error_issue",
      "description": "An issue in Linear or Jira that an error is linked to."
    },
    {
      "name": "errors_github_integration",
      "description": "An Error tracking GitHub integration, which links your GitHub repositories to Error tracking.",
      "x-wire-type": "github_integration"
    },
    {
      "name": "errors_integration_authorization",
      "description": "A link that connects Slack, Linear, Jira or GitHub to your team's Error tracking. A person who can manage your team's Error tracking 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": "errors_jira_integration",
      "description": "An Error tracking Jira integration. The integration sets which errors are filed as Jira work items, in which space, and with which work type and fields.",
      "x-wire-type": "jira_integration"
    },
    {
      "name": "errors_linear_integration",
      "description": "An Error tracking Linear integration. The integration sets which errors are filed as Linear issues, with which issue properties, and how errors and issues are kept in sync.",
      "x-wire-type": "linear_integration"
    },
    {
      "name": "errors_microsoft_teams_integration",
      "description": "An Error tracking Microsoft Teams integration. The integration sets which errors reach which channels of the team the Better Stack app was added to.",
      "x-wire-type": "microsoft_teams_integration"
    },
    {
      "name": "errors_slack_integration",
      "description": "An Error tracking Slack integration. The integration sets the Slack channel that gets error notifications, which errors reach the channel and how updates are posted.",
      "x-wire-type": "slack_integration"
    },
    {
      "name": "ignored_error",
      "description": "An error on an application's **Ignored errors** list. New occurrences of an ignored error aren't ingested."
    },
    {
      "name": "release",
      "description": "A release of an error-tracking application, detected automatically or registered through the API so it appears the moment it deploys."
    },
    {
      "name": "rum_group",
      "description": "A group of a RUM application's users, such as a company, with its users, sessions and errors."
    },
    {
      "name": "rum_session",
      "description": "A visit to a RUM application, with its user, pages, clicks, errors and session replays, and a link to replay it."
    },
    {
      "name": "rum_session_segment",
      "description": "One recorded segment of a RUM session's replay, with its rrweb events, for exporting the recording."
    },
    {
      "name": "rum_user",
      "description": "A signed-in user of a RUM application, with their group, location, errors and sessions."
    }
  ],
  "paths": {
    "/api/v1/application-groups": {
      "get": {
        "operationId": "list_application_group",
        "summary": "List the application groups, ordered by display position.",
        "tags": [
          "application_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/application-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 application_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "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.errors.application_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_application_group",
        "summary": "Create an application group for organizing error-tracking applications.",
        "tags": [
          "application_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v1/application-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 application_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `name` attribute is missing and `required_attributes` names it, an attribute is unknown and `invalid_attributes` names it, validation failed, with `errors` as an object mapping each attribute to its messages, or the token can access more than one team and none was selected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationGroupCreate"
              },
              "examples": {
                "create_an_application_group": {
                  "summary": "Create an application group",
                  "value": {
                    "name": "Production apps"
                  }
                },
                "set_the_display_order": {
                  "summary": "Set the display order",
                  "value": {
                    "name": "Mobile apps",
                    "sort_index": 2
                  }
                }
              }
            }
          }
        },
        "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.errors.application_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/application-groups/{id}": {
      "delete": {
        "operationId": "delete_application_group",
        "summary": "Delete an application group permanently.",
        "description": "The applications in it are kept, without a group.",
        "tags": [
          "application_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v1/application-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_application_group": {
                "summary": "Delete an application group",
                "value": "5678"
              }
            }
          },
          {
            "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/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "Your Better Stack role doesn't allow deleting this group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_application_group",
        "summary": "Get an application group and the applications in it.",
        "tags": [
          "application_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/application-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_application_group": {
                "summary": "Get an application group",
                "value": "5678"
              }
            }
          },
          {
            "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 application_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "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.errors.application_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_application_group",
        "summary": "Rename or reposition an application group.",
        "tags": [
          "application_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v1/application-groups/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "update_an_application_group": {
                "summary": "Update an application group",
                "value": "5678"
              }
            }
          },
          {
            "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 application_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "Your Better Stack role doesn't allow changing this group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `name` attribute is missing and `required_attributes` names it, an attribute is unknown and `invalid_attributes` names it, or validation failed, with `errors` as an object mapping each attribute to its messages. `name` is required on every update, even one that changes only `sort_index`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationGroupUpdate"
              },
              "examples": {
                "update_an_application_group": {
                  "summary": "Update an application group",
                  "value": {
                    "name": "updated-production-apps"
                  }
                }
              }
            }
          }
        },
        "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.errors.application_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/application-groups/{id}/applications": {
      "get": {
        "operationId": "applications_application_group",
        "summary": "List the error-tracking applications in this group, ordered by ID.",
        "tags": [
          "application_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/application-groups/:id/applications",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "list_applications_in_a_group": {
                "summary": "List applications in a group",
                "value": "5678"
              }
            }
          },
          {
            "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 application objects.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The application's id."
                          },
                          "type": {
                            "type": "string",
                            "const": "application"
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Application name."
                              },
                              "platform": {
                                "type": "string",
                                "enum": [
                                  "aiohttp_errors",
                                  "android_errors",
                                  "angular_errors",
                                  "asgi_errors",
                                  "asp_dot_net_core_errors",
                                  "asp_dot_net_errors",
                                  "astro_errors",
                                  "aws_lambda_dot_net_errors",
                                  "aws_lambda_node_errors",
                                  "aws_lambda_python_errors",
                                  "azure_functions_node_errors",
                                  "bottle_errors",
                                  "bun_errors",
                                  "celery_errors",
                                  "chalice_errors",
                                  "cli_errors",
                                  "cloudflare_pages_errors",
                                  "connect_errors",
                                  "dart_errors",
                                  "deno_errors",
                                  "django_errors",
                                  "dot_net_errors",
                                  "dot_net_http_errors",
                                  "dot_net_maui_errors",
                                  "echo_errors",
                                  "electron_errors",
                                  "elixir_errors",
                                  "ember_errors",
                                  "express_errors",
                                  "falcon_errors",
                                  "fastapi_errors",
                                  "fasthttp_errors",
                                  "fastify_errors",
                                  "fiber_errors",
                                  "flask_errors",
                                  "flutter_errors",
                                  "gatsby_errors",
                                  "gin_errors",
                                  "go_errors",
                                  "godot_errors",
                                  "google_cloud_function_dot_net_errors",
                                  "google_cloud_function_node_errors",
                                  "google_cloud_function_python_errors",
                                  "hapi_errors",
                                  "ios_errors",
                                  "iris_errors",
                                  "java_errors",
                                  "javascript_errors",
                                  "koa_errors",
                                  "kotlin_errors",
                                  "laravel_errors",
                                  "log4j_errors",
                                  "logback_errors",
                                  "macos_errors",
                                  "minidump_errors",
                                  "native_errors",
                                  "negroni_errors",
                                  "nest_js_errors",
                                  "next_js_errors",
                                  "node_errors",
                                  "nuxt_errors",
                                  "php_errors",
                                  "powershell_errors",
                                  "pyramid_errors",
                                  "python_errors",
                                  "qt_errors",
                                  "quart_errors",
                                  "rack_middleware_errors",
                                  "rails_errors",
                                  "react_errors",
                                  "react_native_errors",
                                  "react_router_framework_errors",
                                  "remix_errors",
                                  "rq_errors",
                                  "ruby_errors",
                                  "rust_errors",
                                  "sanic_errors",
                                  "serverless_python_errors",
                                  "solid_errors",
                                  "solidstart_errors",
                                  "spring_boot_errors",
                                  "spring_errors",
                                  "starlette_errors",
                                  "svelte_errors",
                                  "sveltekit_errors",
                                  "symfony_errors",
                                  "tanstack_start_react_errors",
                                  "tornado_errors",
                                  "tryton_errors",
                                  "unity_errors",
                                  "unreal_engine_errors",
                                  "vue_errors",
                                  "windows_forms_errors",
                                  "wpf_errors",
                                  "wsgi_errors"
                                ],
                                "description": "The SDK or framework the application reports errors from."
                              },
                              "application_group_id": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "format": "int64",
                                "description": "The ID of the application group to put this application in, from [List application groups](/docs/errors/api/applications-groups/list/).",
                                "examples": [
                                  5678
                                ]
                              },
                              "ingesting_paused": {
                                "type": "boolean",
                                "description": "Whether ingestion is paused for this application.",
                                "default": false
                              },
                              "errors_retention": {
                                "type": "integer",
                                "format": "int64",
                                "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set.",
                                "examples": [
                                  90
                                ]
                              },
                              "data_region": {
                                "type": "string",
                                "description": "The data region, `europe`, `us`, `singapore` or a dedicated cluster's name from [List data regions](/docs/errors/api/data-regions/). An application created with `correlate_with_source_id` uses that source's region, and a different region here is refused."
                              },
                              "correlate_with_source_id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](/docs/logs/api/list-all-existing-sources/)."
                              },
                              "github_repository_name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](/docs/errors/integrations/github/) first.",
                                "examples": [
                                  "acme/web"
                                ]
                              },
                              "gitlab_repository_name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories.",
                                "examples": [
                                  "acme/web"
                                ]
                              },
                              "code_mapping_stack_root": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.",
                                "examples": [
                                  "/usr/src/app/"
                                ]
                              },
                              "code_mapping_source_root": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under `code_mapping_stack_root` is looked up under this path in the linked repository.",
                                "examples": [
                                  "apps/backend/"
                                ]
                              },
                              "custom_bucket": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "The bucket's name, taken from `endpoint`.",
                                    "readOnly": true
                                  },
                                  "endpoint": {
                                    "type": "string",
                                    "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set."
                                  },
                                  "access_key_id": {
                                    "type": "string",
                                    "description": "The access key ID to write to the bucket with."
                                  },
                                  "secret_access_key": {
                                    "type": "string",
                                    "description": "The secret access key for `access_key_id`. Write-only."
                                  },
                                  "keep_data_after_retention": {
                                    "type": "boolean",
                                    "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set."
                                  }
                                },
                                "description": "Your own S3-compatible bucket to archive data in, or `null` when the application uses Better Stack storage. Changing only `access_key_id` and `secret_access_key` rotates the bucket's key pair.",
                                "examples": [
                                  {
                                    "name": "errors-archive",
                                    "endpoint": "https://s3.eu-central-1.amazonaws.com/errors-archive",
                                    "access_key_id": "AKIAIOSFODNN7EXAMPLE",
                                    "keep_data_after_retention": false
                                  }
                                ]
                              },
                              "token": {
                                "type": "string",
                                "description": "Ingestion token, the DSN to configure your SDK with.",
                                "x-sensitive": true,
                                "readOnly": true
                              },
                              "js_tag_token": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The token of the browser tag, separate from `token`. Pass it as the `?t=` value when you load the `/b.js` browser tag. `null` for a platform without a browser tag.",
                                "x-sensitive": true,
                                "readOnly": true
                              },
                              "table_name": {
                                "type": "string",
                                "description": "The application's table name, which identifies its data in SQL queries.",
                                "readOnly": true,
                                "examples": [
                                  "nginx"
                                ]
                              },
                              "ingesting_host": {
                                "type": "string",
                                "description": "Host to send data to.",
                                "readOnly": true
                              },
                              "created_at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "When the application was created.",
                                "readOnly": true
                              },
                              "updated_at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "When the application was last updated.",
                                "readOnly": true
                              },
                              "team_id": {
                                "type": "integer",
                                "format": "int64",
                                "description": "The team that owns the application, such as `t123`.",
                                "readOnly": true,
                                "examples": [
                                  123
                                ]
                              },
                              "team_name": {
                                "type": "string",
                                "description": "Name of the team that owns the application.",
                                "readOnly": true,
                                "examples": [
                                  "Production"
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/PaginationPageNumber"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application group doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "platform",
          "team_id",
          "application_group_id",
          "ingesting_paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "platform",
          "application_group_id",
          "ingesting_paused",
          "errors_retention",
          "data_region",
          "correlate_with_source_id",
          "github_repository_name",
          "gitlab_repository_name",
          "code_mapping_stack_root",
          "code_mapping_source_root",
          "custom_bucket",
          "token",
          "js_tag_token",
          "table_name",
          "ingesting_host",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.application_group.applications"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/github-integrations": {
      "get": {
        "operationId": "list_errors_github_integration",
        "summary": "List the GitHub accounts connected to your Error tracking, each with the repositories you use.",
        "tags": [
          "errors_github_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/github-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 errors_github_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsGitHubIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors GitHub integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "A GitHub account connected to several of your teams appears once for each team, with the same ID. `team_id` tells them apart."
        ],
        "x-cli-default-fields": [
          "id",
          "account_login",
          "account_type",
          "status",
          "team_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "account_login",
          "account_type",
          "status",
          "can_create_pull_requests",
          "settings_url",
          "repositories",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_github_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_errors_github_integration",
        "summary": "Create a GitHub integration for Error tracking.",
        "description": "You'll get a link back to open in your browser and finish setting up the integration.",
        "tags": [
          "errors_github_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v1/github-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 errors_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors GitHub integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The link couldn't be created right now. Nothing is created. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "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.errors.errors_github_integration.create"
        },
        "x-cli-wait": {
          "observe": "get_errors_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": "GitHub 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/v1/github-integrations/{id}": {
      "get": {
        "operationId": "get_errors_github_integration",
        "summary": "Get a GitHub account connected to your Error tracking, with the repositories you use.",
        "tags": [
          "errors_github_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/github-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_github_integration": {
                "summary": "Get a GitHub integration",
                "value": "49349"
              }
            }
          },
          {
            "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 errors_github_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsGitHubIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors GitHub integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The GitHub account is connected to several of your teams. Name one with `team_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "account_login",
          "account_type",
          "status",
          "team_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "account_login",
          "account_type",
          "status",
          "can_create_pull_requests",
          "settings_url",
          "repositories",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_github_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_errors_github_integration",
        "summary": "Remove repositories from a GitHub integration.",
        "description": "Send the repositories to keep. The others are removed from your team. Error tracking applications that used a removed repository stop opening pull requests for it. AI Engineer routines and settings that used it lose it too. Your other teams keep their repositories. The last repository can't be removed.",
        "tags": [
          "errors_github_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v1/github-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "keep_two_repositories": {
                "summary": "Keep two repositories",
                "value": "49349"
              }
            }
          },
          {
            "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 errors_github_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsGitHubIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors GitHub integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "A repository in `repositories` isn't one the team uses, or the list is empty. To add a repository, connect GitHub again. The GitHub account is connected to several of your teams. Name one with `team_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorsGitHubIntegrationUpdate"
              },
              "examples": {
                "keep_two_repositories": {
                  "summary": "Keep two repositories",
                  "value": {
                    "repositories": [
                      {
                        "id": 89949
                      },
                      {
                        "id": 89951
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "account_login",
          "account_type",
          "status",
          "team_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "account_login",
          "account_type",
          "status",
          "can_create_pull_requests",
          "settings_url",
          "repositories",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_github_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/integration-authorizations/{id}": {
      "get": {
        "operationId": "get_errors_integration_authorization",
        "summary": "Check whether connecting an Error tracking 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": [
          "errors_integration_authorization"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/integration-authorizations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_errors_integration_authorization": {
                "summary": "Get an Errors 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 errors_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors integration authorization doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The authorization couldn't be loaded right now. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "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.errors.errors_github_integration.create"
        },
        "x-cli-wait": {
          "observe": "get_errors_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/v1/jira-integrations": {
      "get": {
        "operationId": "list_errors_jira_integration",
        "summary": "List your Error tracking Jira integrations.",
        "tags": [
          "errors_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/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 errors_jira_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsJiraIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Jira integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "jira_project_key",
          "occurrence_threshold_count",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "name",
          "jira_site_url",
          "jira_project_key",
          "jira_issue_type_id",
          "jira_fields",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_jira_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_errors_jira_integration",
        "summary": "Create a Jira integration for Error tracking.",
        "description": "You'll get a link back to open in your browser and finish setting up the integration.",
        "tags": [
          "errors_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v1/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 errors_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Jira integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The sign-in couldn't be started right now. Nothing is created. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "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.errors.errors_github_integration.create"
        },
        "x-cli-wait": {
          "observe": "get_errors_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_errors_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/v1/jira-integrations/{id}": {
      "get": {
        "operationId": "get_errors_jira_integration",
        "summary": "Get an Errors Jira integration's settings.",
        "description": "An integration's ID is in the URL of its Configure page.",
        "tags": [
          "errors_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/jira-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "31174"
              ]
            },
            "description": "Get the ID via [List Jira integrations](/docs/errors/api/integrations/jira/list/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_errors_jira_integration": {
                "summary": "Get an Errors Jira integration",
                "value": "31174"
              }
            }
          },
          {
            "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 errors_jira_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsJiraIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Jira integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "jira_project_key",
          "occurrence_threshold_count",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "name",
          "jira_site_url",
          "jira_project_key",
          "jira_issue_type_id",
          "jira_fields",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_jira_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_errors_jira_integration",
        "summary": "Change the settings of an Error tracking Jira integration, the same ones as on its **Configure** page.",
        "description": "Only the settings you send change.",
        "tags": [
          "errors_jira_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v1/jira-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "create_work_items_in_another_space": {
                "summary": "Create work items in another space",
                "value": "31174"
              },
              "create_work_items_for_errors_that_affect_25_users": {
                "summary": "Create work items for errors that affect 25 users",
                "value": "31174"
              }
            }
          },
          {
            "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 errors_jira_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsJiraIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No such integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown, and `invalid_attributes` names it, or a value is refused, and `errors` names it. Refused values include an unknown application or one that collects no errors, a `tag_filter` that's malformed or over its limits, a notification the integration doesn't have, and a value of the wrong type. Send `jira_issue_type_id` with a new `jira_project_key`, since work types belong to a space.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The integration couldn't be loaded right now, so nothing or only part of the change was saved. The message says which. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorsJiraIntegrationUpdate"
              },
              "examples": {
                "create_work_items_in_another_space": {
                  "summary": "Create work items in another space",
                  "value": {
                    "jira_project_key": "OPS",
                    "jira_issue_type_id": "10002",
                    "jira_fields": {
                      "labels": [
                        {
                          "label": "errors",
                          "value": "errors"
                        }
                      ]
                    }
                  }
                },
                "create_work_items_for_errors_that_affect_25_users": {
                  "summary": "Create work items for errors that affect 25 users",
                  "value": {
                    "notifications": {
                      "affected_users_threshold": true
                    },
                    "affected_users_threshold_count": 25
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "jira_project_key",
          "occurrence_threshold_count",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "name",
          "jira_site_url",
          "jira_project_key",
          "jira_issue_type_id",
          "jira_fields",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_jira_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/linear-integrations": {
      "get": {
        "operationId": "list_errors_linear_integration",
        "summary": "List your Error tracking Linear integrations.",
        "tags": [
          "errors_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/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 errors_linear_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsLinearIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Linear integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "linear_priority",
          "auto_resolve",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "name",
          "linear_team_id",
          "linear_assignee_id",
          "linear_label_ids",
          "linear_priority",
          "linear_status_id",
          "linear_project_id",
          "auto_resolve",
          "linear_resolved_status_id",
          "auto_reopen",
          "sync_comments",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_linear_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_errors_linear_integration",
        "summary": "Create a Linear integration for Error tracking.",
        "description": "You'll get a link back to open in your browser and finish setting up the integration.",
        "tags": [
          "errors_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v1/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 errors_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Linear integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The sign-in couldn't be started right now. Nothing is created. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "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.errors.errors_github_integration.create"
        },
        "x-cli-wait": {
          "observe": "get_errors_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_errors_linear_integration",
            "bindings": {
              "id": {
                "source": "observed",
                "path": [
                  "integration_id"
                ]
              }
            }
          },
          "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/v1/linear-integrations/{id}": {
      "get": {
        "operationId": "get_errors_linear_integration",
        "summary": "Get an Errors Linear integration's settings.",
        "description": "An integration's ID is in the URL of its Configure page.",
        "tags": [
          "errors_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/linear-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "66368"
              ]
            },
            "description": "Get the ID via [List Linear integrations](/docs/errors/api/integrations/linear/list/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_errors_linear_integration": {
                "summary": "Get an Errors Linear integration",
                "value": "66368"
              }
            }
          },
          {
            "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 errors_linear_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsLinearIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Linear integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "linear_priority",
          "auto_resolve",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "name",
          "linear_team_id",
          "linear_assignee_id",
          "linear_label_ids",
          "linear_priority",
          "linear_status_id",
          "linear_project_id",
          "auto_resolve",
          "linear_resolved_status_id",
          "auto_reopen",
          "sync_comments",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_linear_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_errors_linear_integration",
        "summary": "Change the settings of an Error tracking Linear integration, the same ones as on its **Configure** page.",
        "description": "Only the settings you send change.",
        "tags": [
          "errors_linear_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v1/linear-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "66368"
              ]
            },
            "description": "The ID of the Errors Linear integration to update, in the URL of its Configure page.",
            "x-path-wildcard": false,
            "examples": {
              "create_issues_for_new_errors": {
                "summary": "Create issues for new errors",
                "value": "66368"
              }
            }
          },
          {
            "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 errors_linear_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsLinearIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No such integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown, and `invalid_attributes` names it, or a value is refused, and `errors` names it. Refused values include an unknown application or one that collects no errors, a `tag_filter` that's malformed or over its limits, a notification the integration doesn't have, and a value of the wrong type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The integration couldn't be loaded right now, so nothing or only part of the change was saved. The message says which. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorsLinearIntegrationUpdate"
              },
              "examples": {
                "create_issues_for_new_errors": {
                  "summary": "Create issues for new errors",
                  "value": {
                    "notifications": {
                      "new_errors": true
                    },
                    "linear_priority": "high",
                    "linear_label_ids": [
                      "0b8f3c2e-6a1d-4f97-b5e4-3c2a1d0e9f8b"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "linear_priority",
          "auto_resolve",
          "team_name"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "name",
          "linear_team_id",
          "linear_assignee_id",
          "linear_label_ids",
          "linear_priority",
          "linear_status_id",
          "linear_project_id",
          "auto_resolve",
          "linear_resolved_status_id",
          "auto_reopen",
          "sync_comments",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_linear_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/microsoft-teams-integrations": {
      "get": {
        "operationId": "list_errors_microsoft_teams_integration",
        "summary": "List your Error tracking Microsoft Teams integrations.",
        "tags": [
          "errors_microsoft_teams_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/microsoft-teams-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 errors_microsoft_teams_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsMicrosoftTeamsIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Microsoft Teams integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Connect the integration in the web app first, under [Error tracking → Integrations](https://errors.betterstack.com/team/0/integrations)."
        ],
        "x-cli-default-fields": [
          "id",
          "microsoft_teams_team_name",
          "microsoft_teams_channel_name",
          "team_name"
        ],
        "x-cli-name-fields": [
          "microsoft_teams_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "microsoft_teams_team_name",
          "microsoft_teams_channel_name",
          "routes",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_microsoft_teams_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/microsoft-teams-integrations/{id}": {
      "get": {
        "operationId": "get_errors_microsoft_teams_integration",
        "summary": "Get an Errors Microsoft Teams integration's settings.",
        "description": "An integration's ID is in the URL of its Configure page.",
        "tags": [
          "errors_microsoft_teams_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/microsoft-teams-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "55"
              ]
            },
            "description": "Get the ID via [List Microsoft Teams integrations](/docs/errors/api/integrations/microsoft-teams/list/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_errors_microsoft_teams_integration": {
                "summary": "Get an Errors Microsoft Teams integration",
                "value": "55"
              }
            }
          },
          {
            "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 errors_microsoft_teams_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsMicrosoftTeamsIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Microsoft Teams integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "microsoft_teams_team_name",
          "microsoft_teams_channel_name",
          "team_name"
        ],
        "x-cli-name-fields": [
          "microsoft_teams_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "microsoft_teams_team_name",
          "microsoft_teams_channel_name",
          "routes",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_microsoft_teams_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_errors_microsoft_teams_integration",
        "summary": "Change the settings of an Error tracking Microsoft Teams integration, the same ones as on its **Configure** page.",
        "description": "Only the settings you send change.",
        "tags": [
          "errors_microsoft_teams_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v1/microsoft-teams-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "send_an_application_s_errors_to_its_own_channel": {
                "summary": "Send an application's errors to its own channel",
                "value": "55"
              }
            }
          },
          {
            "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 errors_microsoft_teams_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsMicrosoftTeamsIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No such integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown, and `invalid_attributes` names it, or a value is refused, and `errors` names it. Refused values include an unknown application or one that collects no errors, a `tag_filter` that's malformed or over its limits, a notification the integration doesn't have, and a value of the wrong type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The integration couldn't be loaded right now, so nothing or only part of the change was saved. The message says which. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorsMicrosoftTeamsIntegrationUpdate"
              },
              "examples": {
                "send_an_application_s_errors_to_its_own_channel": {
                  "summary": "Send an application's errors to its own channel",
                  "value": {
                    "routes": [
                      {
                        "applications": [
                          {
                            "application_id": 1234,
                            "environments": [
                              "production"
                            ]
                          }
                        ],
                        "channels": [
                          {
                            "id": "19:a1b2c3d4e5f6@thread.tacv2"
                          }
                        ]
                      },
                      {
                        "applications": [],
                        "channels": [
                          {
                            "id": "19:f6e5d4c3b2a1@thread.tacv2"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-notes": [
          "Connect the integration in the web app first, under [Error tracking → Integrations](https://errors.betterstack.com/team/0/integrations)."
        ],
        "x-cli-default-fields": [
          "id",
          "microsoft_teams_team_name",
          "microsoft_teams_channel_name",
          "team_name"
        ],
        "x-cli-name-fields": [
          "microsoft_teams_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "microsoft_teams_team_name",
          "microsoft_teams_channel_name",
          "routes",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_microsoft_teams_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/releases": {
      "get": {
        "operationId": "list_release",
        "summary": "List your releases, newest first by `first_seen_at`.",
        "tags": [
          "release"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/releases",
        "parameters": [
          {
            "name": "application_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "Only releases of this application."
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "v1.2.3"
              ]
            },
            "description": "Only releases with exactly this version."
          },
          {
            "name": "environment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "production"
              ]
            },
            "description": "Only releases deployed to this environment. Repeat the parameter for several environments, as in `?environment[]=staging&environment[]=production`. A release matches if it has any of them."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-08-01T00:00:00Z"
              ]
            },
            "description": "Only releases first seen at or after this time."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-08-31T23:59:59Z"
              ]
            },
            "description": "Only releases first seen 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."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of release objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The release doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An unknown query parameter, an unknown `application_id`, or a `from` or `to` that isn't an ISO 8601 timestamp.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "version",
          "application_id",
          "origin",
          "first_seen_at",
          "last_seen_at"
        ],
        "x-cli-name-fields": [
          "version"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "version",
          "application_id",
          "environments",
          "origin",
          "first_seen_at",
          "last_seen_at",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.release.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_release",
        "summary": "Register a release for one or more error-tracking applications.",
        "description": "Without `applications`, the release is registered for every application that already reports that version.",
        "tags": [
          "release"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v1/releases",
        "parameters": [],
        "responses": {
          "201": {
            "description": "A list of release objects.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "releases": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "format": "int64",
                            "description": "ID of the registered release.",
                            "examples": [
                              456
                            ]
                          },
                          "application_id": {
                            "type": "integer",
                            "format": "int64",
                            "description": "The application the release was registered on.",
                            "examples": [
                              123
                            ]
                          }
                        }
                      }
                    },
                    "version": {
                      "type": "string",
                      "description": "The version that was registered.",
                      "examples": [
                        "v1.2.3"
                      ]
                    },
                    "applications": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "format": "int64"
                      },
                      "description": "IDs of the applications the version was registered on.",
                      "examples": [
                        [
                          123
                        ]
                      ]
                    },
                    "environment": {
                      "oneOf": [
                        {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The environment as it was sent, a string or a list. `null` when none was sent.",
                      "examples": [
                        [
                          "production"
                        ]
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The release doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `version` attribute is missing or blank. `required_attributes` names it. The `applications` attribute names an unknown application. `invalid_values` lists the unknown IDs. Get the application IDs via [List applications](/docs/errors/api/applications/list/). The `team_id` attribute names a team you can't access. Pass the team ID as `t123`, from [List teams](/docs/uptime/api/teams/list/), or the `SENTRY_ORG` value the Sentry CLI sends.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseCreate"
              },
              "examples": {
                "create_a_release": {
                  "summary": "Create a release",
                  "value": {
                    "version": "v1.2.3",
                    "applications": [
                      123
                    ],
                    "environment": [
                      "production"
                    ]
                  }
                },
                "register_a_commit_deployed_to_staging": {
                  "summary": "Register a commit deployed to staging",
                  "value": {
                    "version": "9f3c2a1",
                    "applications": [
                      123
                    ],
                    "environment": [
                      "staging"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-notes": [
          "Unknown body attributes are accepted and ignored here, unlike every other write in this API."
        ],
        "x-cli-default-fields": [
          "id",
          "version",
          "application_id",
          "origin",
          "first_seen_at",
          "last_seen_at"
        ],
        "x-cli-name-fields": [
          "version"
        ],
        "x-cli-response-fields": [
          "id",
          "version",
          "application_id",
          "environments",
          "origin",
          "first_seen_at",
          "last_seen_at",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.release.create"
        },
        "x-response-envelope": {
          "list_path": [
            "releases"
          ],
          "attributes_path": [],
          "id_path": [
            "id"
          ]
        }
      }
    },
    "/api/v1/releases/{id}": {
      "delete": {
        "operationId": "delete_release",
        "summary": "Delete a release.",
        "description": "The release's errors are kept. A release that still receives events is detected again by the next periodic scan.",
        "tags": [
          "release"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v1/releases/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_a_release": {
                "summary": "Delete a release",
                "value": "456"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The release doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_release",
        "summary": "Get a release, a version of your application that errors are reported for.",
        "tags": [
          "release"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/releases/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_a_release": {
                "summary": "Get a release",
                "value": "456"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A single release.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The release doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "version",
          "application_id",
          "origin",
          "first_seen_at",
          "last_seen_at"
        ],
        "x-cli-name-fields": [
          "version"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "version",
          "application_id",
          "environments",
          "origin",
          "first_seen_at",
          "last_seen_at",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.release.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v1/slack-integrations": {
      "get": {
        "operationId": "list_errors_slack_integration",
        "summary": "List your Error tracking Slack integrations.",
        "tags": [
          "errors_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/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 errors_slack_integration objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsSlackIntegrationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Slack integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "slack_team_name",
          "slack_channel_name",
          "post_updates",
          "team_name"
        ],
        "x-cli-name-fields": [
          "slack_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "slack_team_name",
          "slack_channel_name",
          "post_updates",
          "broadcast_updates",
          "ai_sre_on_mention",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_slack_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_errors_slack_integration",
        "summary": "Create a Slack integration for Error tracking.",
        "description": "You'll get a link back to open in your browser and finish setting up the integration.",
        "tags": [
          "errors_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v1/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 errors_integration_authorization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsIntegrationAuthorizationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Slack integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The sign-in couldn't be started right now. Nothing is created. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "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.errors.errors_github_integration.create"
        },
        "x-cli-wait": {
          "observe": "get_errors_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_errors_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/v1/slack-integrations/{id}": {
      "get": {
        "operationId": "get_errors_slack_integration",
        "summary": "Get an Errors Slack integration's settings.",
        "description": "An integration's ID is in the URL of its Configure page.",
        "tags": [
          "errors_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v1/slack-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "188"
              ]
            },
            "description": "Get the ID via [List Slack integrations](/docs/errors/api/integrations/slack/list/).",
            "x-path-wildcard": false,
            "examples": {
              "get_an_errors_slack_integration": {
                "summary": "Get an Errors Slack integration",
                "value": "188"
              }
            }
          },
          {
            "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 errors_slack_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsSlackIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The Errors Slack integration doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "slack_team_name",
          "slack_channel_name",
          "post_updates",
          "team_name"
        ],
        "x-cli-name-fields": [
          "slack_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "slack_team_name",
          "slack_channel_name",
          "post_updates",
          "broadcast_updates",
          "ai_sre_on_mention",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_slack_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_errors_slack_integration",
        "summary": "Change the settings of an Error tracking Slack integration, the same ones as on its **Configure** page.",
        "description": "Only the settings you send change.",
        "tags": [
          "errors_slack_integration"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v1/slack-integrations/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "notify_about_one_application_s_production_errors": {
                "summary": "Notify about one application's production errors",
                "value": "188"
              },
              "post_updates_in_threads": {
                "summary": "Post updates in threads",
                "value": "188"
              }
            }
          },
          {
            "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 errors_slack_integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorsSlackIntegrationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No such integration.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An attribute is unknown, and `invalid_attributes` names it, or a value is refused, and `errors` names it. Refused values include an unknown application or one that collects no errors, a `tag_filter` that's malformed or over its limits, a notification the integration doesn't have, and a value of the wrong type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The integration couldn't be loaded right now, so nothing or only part of the change was saved. The message says which. Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorsSlackIntegrationUpdate"
              },
              "examples": {
                "notify_about_one_application_s_production_errors": {
                  "summary": "Notify about one application's production errors",
                  "value": {
                    "applications": [
                      {
                        "application_id": 1234,
                        "environments": [
                          "production"
                        ]
                      }
                    ]
                  }
                },
                "post_updates_in_threads": {
                  "summary": "Post updates in threads",
                  "value": {
                    "post_updates": "thread_based",
                    "broadcast_updates": false
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "slack_team_name",
          "slack_channel_name",
          "post_updates",
          "team_name"
        ],
        "x-cli-name-fields": [
          "slack_channel_name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "applications",
          "notifications",
          "occurrence_threshold_count",
          "occurrence_threshold_interval",
          "affected_users_threshold_count",
          "tag_filter",
          "slack_team_name",
          "slack_channel_name",
          "post_updates",
          "broadcast_updates",
          "ai_sre_on_mention",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.errors_slack_integration.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/applications/{application_id}/ignored-errors": {
      "get": {
        "operationId": "list_ignored_error",
        "summary": "List the errors an application ignores permanently, in the order they were added.",
        "tags": [
          "ignored_error"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v2/applications/:application_id/ignored-errors",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The ID of the application to list ignored errors for, from [List applications](/docs/errors/api/applications/list/).",
            "x-path-wildcard": false,
            "examples": {
              "list_ignored_errors": {
                "summary": "List ignored errors",
                "value": "1234"
              }
            }
          },
          {
            "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 ignored_error objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IgnoredErrorList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "pattern",
          "comment"
        ],
        "x-cli-name-fields": [
          "pattern"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "pattern",
          "comment"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.ignored_error.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v2/applications/{application_id}/ignored-errors/{id}": {
      "delete": {
        "operationId": "delete_ignored_error",
        "summary": "Stop ignoring an error.",
        "description": "New occurrences of the error are ingested again, and the error goes back to unresolved.",
        "tags": [
          "ignored_error"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v2/applications/:application_id/ignored-errors/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The ID of the application the ignored error belongs to, from [List applications](/docs/errors/api/applications/list/).",
            "x-path-wildcard": false,
            "examples": {
              "stop_ignoring_an_error": {
                "summary": "Stop ignoring an error",
                "value": "1234"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The ignored error's `pattern` to remove, from the list of ignored errors. Can contain dots.",
            "x-path-wildcard": false,
            "examples": {
              "stop_ignoring_an_error": {
                "summary": "Stop ignoring an error",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "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/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "Your Better Stack role doesn't allow changing this application.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the pattern isn't on its **Ignored errors** list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v4/applications": {
      "get": {
        "operationId": "list_application",
        "summary": "List your error-tracking applications.",
        "tags": [
          "application"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Sort by `created_at`, `updated_at` or `name`. Put `-` before it to sort in descending order, like `-created_at`. Defaults to creation order. Any other value is ignored, and ties are ordered by ID."
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Only applications whose name contains this text, ignoring letter case."
          },
          {
            "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 application objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "platform",
          "team_id",
          "application_group_id",
          "ingesting_paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "platform",
          "application_group_id",
          "ingesting_paused",
          "errors_retention",
          "web_events_retention",
          "replays_retention",
          "data_region",
          "correlate_with_source_id",
          "github_repository_name",
          "gitlab_repository_name",
          "code_mapping_stack_root",
          "code_mapping_source_root",
          "custom_bucket",
          "vrl_transformation_exceptions",
          "vrl_transformation_replays",
          "vrl_transformation_web_events",
          "vrl_transformation_logs",
          "vrl_transformation_spans",
          "spike_protection_baseline_multiplier",
          "ai_prompt_template",
          "js_tag_configuration",
          "js_tag_own_domain_status",
          "source_types",
          "parent_source_id",
          "query_collections",
          "token",
          "js_tag_token",
          "table_name",
          "ingesting_host",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.application.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_application",
        "summary": "Create an error-tracking application.",
        "description": "The response holds the DSN to configure your SDK with.",
        "tags": [
          "application"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/applications",
        "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 application.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `name` or `platform` attribute is missing, an attribute is unknown, the token can access more than one team and none was selected, or validation failed. Validation fails when `application_group_id` or `correlate_with_source_id` is unknown, `github_repository_name` or `gitlab_repository_name` names a repository that isn't connected, both of them are sent, `data_region` isn't available to the organization, or `custom_bucket` can't be reached. Error tracking or custom buckets aren't available on your plan, or `errors_retention` is a retention period only a larger plan offers. A setting has a value the application refuses, such as a `replays_retention` your plan doesn't offer or a `js_tag_configuration` key with the wrong type. `invalid_values` names each refused setting, and a key inside `js_tag_configuration` by its path, for example `js_tag_configuration.sampling`. The `spike_protection_baseline_multiplier` is outside 0 to 100, or the `web_events_retention` is a retention period your plan doesn't offer. `errors` lists the messages and `invalid_attributes` names the settings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "429": {
            "description": "Too many applications are being created at once. Try again in a moment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationCreate"
              },
              "examples": {
                "create_an_application": {
                  "summary": "Create an application",
                  "value": {
                    "name": "new-web-app",
                    "platform": "ruby_errors",
                    "data_region": "us"
                  }
                },
                "with_source_code_mapping": {
                  "summary": "With source-code mapping",
                  "value": {
                    "name": "new-web-app",
                    "platform": "ruby_errors",
                    "data_region": "us",
                    "github_repository_name": "acme/web",
                    "code_mapping_stack_root": "/usr/src/app/",
                    "code_mapping_source_root": "apps/backend/"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "platform",
          "team_id",
          "application_group_id",
          "ingesting_paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "platform",
          "application_group_id",
          "ingesting_paused",
          "errors_retention",
          "web_events_retention",
          "replays_retention",
          "data_region",
          "correlate_with_source_id",
          "github_repository_name",
          "gitlab_repository_name",
          "code_mapping_stack_root",
          "code_mapping_source_root",
          "custom_bucket",
          "vrl_transformation_exceptions",
          "vrl_transformation_replays",
          "vrl_transformation_web_events",
          "vrl_transformation_logs",
          "vrl_transformation_spans",
          "spike_protection_baseline_multiplier",
          "ai_prompt_template",
          "js_tag_configuration",
          "js_tag_own_domain_status",
          "source_types",
          "parent_source_id",
          "query_collections",
          "token",
          "js_tag_token",
          "table_name",
          "ingesting_host",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.application.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/errors": {
      "get": {
        "operationId": "list_error",
        "summary": "List an application's error patterns, most recently seen first.",
        "description": "By default it lists unresolved patterns from the last three days.",
        "tags": [
          "error"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/errors",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The application to list errors for.",
            "x-path-wildcard": false,
            "examples": {
              "list_errors": {
                "summary": "List errors",
                "value": "123"
              }
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "unresolved"
              ]
            },
            "description": "One of `all`, `new`, `unresolved`, `ignored`, `resolved`, `reoccurred` and `unhandled`. Defaults to `unresolved`, which includes `unhandled` and `reoccurred`. `new` is unresolved errors with no linked issue, incident or pull request.",
            "examples": {
              "list_errors": {
                "summary": "List errors",
                "value": "unresolved"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-15T00:00:00Z"
              ]
            },
            "description": "Start of the time range in ISO 8601. Defaults to 3 days ago.",
            "examples": {
              "list_errors": {
                "summary": "List errors",
                "value": "2026-11-15T00:00:00Z"
              }
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-16T00:00:00Z"
              ]
            },
            "description": "End of the time range in ISO 8601. Defaults to now. Must be after `from`."
          },
          {
            "name": "environment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "production"
              ]
            },
            "description": "Only errors seen in this environment."
          },
          {
            "name": "release",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "1.4.2"
              ]
            },
            "description": "Only errors seen in this release."
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "TypeError"
              ]
            },
            "description": "Only errors whose type or message contains this text, ignoring letter case."
          },
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "last_seen",
                "first_seen",
                "exceptions_count",
                "users_count"
              ],
              "x-enum-descriptions": {
                "last_seen": "Puts the most recently seen errors first.",
                "first_seen": "Puts the oldest errors first.",
                "exceptions_count": "Puts the errors with the most occurrences first.",
                "users_count": "Puts the errors that affected the most users first."
              },
              "examples": [
                "last_seen"
              ]
            },
            "description": "Sort order. Defaults to `last_seen`."
          },
          {
            "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 error objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An unknown query parameter, a `state` outside the allowed values, a `from` or `to` that isn't ISO 8601, a `to` that isn't after `from`, or an `order_by` outside the allowed values. `invalid_values` names the attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "An application with no data in the range returns an empty list.",
          "A page can hold fewer errors than `per_page` before the last page, so stop only when `pagination.next` is `null`."
        ],
        "x-cli-default-fields": [
          "id",
          "application_id",
          "state",
          "occurrences",
          "affected_users",
          "last_seen_at",
          "message"
        ],
        "x-cli-name-fields": [
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "message",
          "call_site_function",
          "call_site_file",
          "environments",
          "state",
          "first_seen_at",
          "last_seen_at",
          "occurrences",
          "affected_users",
          "resolved_in_release_id",
          "ignored_until_count",
          "linked_issues",
          "url"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.error.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/errors/{error_id}/comments": {
      "get": {
        "operationId": "list_error_comment",
        "summary": "List the comments on an error and on its occurrences, newest first.",
        "tags": [
          "error_comment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/errors/:error_id/comments",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The ID of the application, from [List applications](/docs/errors/api/applications/list/).",
            "x-path-wildcard": false,
            "examples": {
              "list_error_comments": {
                "summary": "List error comments",
                "value": "1234"
              }
            }
          },
          {
            "name": "error_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The error's `id`, from [List errors](/docs/errors/api/errors/list/). Can contain dots.",
            "x-path-wildcard": false,
            "examples": {
              "list_error_comments": {
                "summary": "List error comments",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "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 error_comment objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommentList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "An error with no comments, or one that never occurred, returns an empty list."
        ],
        "x-cli-default-fields": [
          "id",
          "author_name",
          "posted_via",
          "created_at",
          "plaintext_content"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "content",
          "plaintext_content",
          "author_name",
          "user_email",
          "posted_via",
          "linear_issue",
          "event",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.error_comment.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "post": {
        "operationId": "create_error_comment",
        "summary": "Add a comment to an error's conversation.",
        "description": "When the error is linked to an issue in Linear and its integration syncs comments, the comment is posted there too.",
        "tags": [
          "error_comment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/applications/:application_id/errors/:error_id/comments",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The ID of the application, from [List applications](/docs/errors/api/applications/list/).",
            "x-path-wildcard": false,
            "examples": {
              "comment_on_an_error": {
                "summary": "Comment on an error",
                "value": "1234"
              }
            }
          },
          {
            "name": "error_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The error's `id`, from [List errors](/docs/errors/api/errors/list/). Can contain dots.",
            "x-path-wildcard": false,
            "examples": {
              "comment_on_an_error": {
                "summary": "Comment on an error",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "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 error_comment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommentDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or no error with that ID in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `content` attribute is missing, isn't a string or is blank, and `required_attributes` names it. Also returned for an unknown attribute, which `invalid_attributes` names. A mention is refused when it names a user by anything other than a `u123` ID or e-mail, or names someone outside the application's team, and `invalid_values.content` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorCommentCreate"
              },
              "examples": {
                "comment_on_an_error": {
                  "summary": "Comment on an error",
                  "value": {
                    "content": "Rolled back the 14:05 deploy. The error stopped."
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-notes": [
          "A comment made with OAuth is posted under your name. A comment made with a team or global API token is signed `Comment added using API`."
        ],
        "x-cli-default-fields": [
          "id",
          "author_name",
          "posted_via",
          "created_at",
          "plaintext_content"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "content",
          "plaintext_content",
          "author_name",
          "user_email",
          "posted_via",
          "linear_issue",
          "event",
          "created_at",
          "updated_at"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.error_comment.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/errors/{error_id}/issues": {
      "post": {
        "operationId": "create_error_issue",
        "summary": "Create a Linear issue or Jira work item for an error, and link it.",
        "description": "The issue describes the error with its call site, stack trace and a link to it in Better Stack, and uses the integration's default project and settings.",
        "tags": [
          "error_issue"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/applications/:application_id/errors/:error_id/issues",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The ID of the application, from [List applications](/docs/errors/api/applications/list/).",
            "x-path-wildcard": false,
            "examples": {
              "create_an_issue": {
                "summary": "Create an issue",
                "value": "1234"
              },
              "with_a_title_and_notes": {
                "summary": "With a title and notes",
                "value": "1234"
              }
            }
          },
          {
            "name": "error_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The error's `id`, from [List errors](/docs/errors/api/errors/list/). Can contain dots.",
            "x-path-wildcard": false,
            "examples": {
              "create_an_issue": {
                "summary": "Create an issue",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              },
              "with_a_title_and_notes": {
                "summary": "With a title and notes",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "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 error_issue. (the error already has an issue through that integration, and it's returned instead of creating another)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorIssueDocument"
                }
              }
            }
          },
          "201": {
            "description": "A single error_issue.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorIssueDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or no error with that ID in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "Your team has more than one integration the issue could go through. `integration_ids` lists them. Pass one as `integration_id`. The team has no Linear or Jira integration, `integration_id` names none of them, the title is too long for Linear, the integration's setup isn't finished, it needs to be reauthorized, the error's occurrences are no longer stored, `title` or `notes` isn't a string, or an attribute is unknown. `errors` says which. Linear or Jira refused to create the issue. `errors` opens with `The issue couldn't be created:` and gives the tracker's reason.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The integration couldn't be loaded, or Linear or Jira didn't respond because of an outage, a timeout or rate limiting. Try again in a few moments.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "integration_id": {
                    "type": "string",
                    "description": "The ID of the Linear or Jira integration to create the issue with. Needed only when your team has several. Leave it out then, and the request is refused with 422 and `integration_ids` lists them.",
                    "examples": [
                      "7"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "description": "The issue's title. Defaults to the application's name in brackets, then the error's type and message.",
                    "examples": [
                      "TypeError in renderCart"
                    ]
                  },
                  "notes": {
                    "type": "string",
                    "description": "Text added at the top of the issue's description.",
                    "examples": [
                      "Started after the 1.4.2 deploy."
                    ]
                  }
                }
              },
              "examples": {
                "with_a_title_and_notes": {
                  "summary": "With a title and notes",
                  "value": {
                    "title": "TypeError in renderCart",
                    "notes": "Started after the 1.4.2 deploy."
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "integration_type",
          "label",
          "url",
          "operation"
        ],
        "x-cli-name-fields": [
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "integration_id",
          "integration_type",
          "external_id",
          "label",
          "url",
          "operation"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.error_issue.create"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/errors/{error_id}/issues/link": {
      "post": {
        "operationId": "link_error_issue",
        "summary": "Link an error to an existing Linear or Jira issue.",
        "tags": [
          "error_issue"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "POST /api/v4/applications/:application_id/errors/:error_id/issues/link",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The ID of the application, from [List applications](/docs/errors/api/applications/list/).",
            "x-path-wildcard": false,
            "examples": {
              "link_an_issue": {
                "summary": "Link an issue",
                "value": "1234"
              }
            }
          },
          {
            "name": "error_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The error's `id`, from [List errors](/docs/errors/api/errors/list/). Can contain dots.",
            "x-path-wildcard": false,
            "examples": {
              "link_an_issue": {
                "summary": "Link an issue",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "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 error_issue. (the error is already linked to that issue, and the existing link is returned)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorIssueDocument"
                }
              }
            }
          },
          "201": {
            "description": "A single error_issue.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorIssueDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or no error with that ID in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "Your team has more than one integration the issue could go through. `integration_ids` lists them. Pass one as `integration_id`. The `issue` attribute is missing or isn't a string, or an attribute is unknown. Also returned when no issue matches `issue`, the team has no matching integration, `integration_id` names none of them or a different tracker, the integration needs to be reauthorized, or the error's occurrences are no longer stored. `errors` says which. Linear or Jira refused the request. `errors` opens with `The issue couldn't be linked:` and gives the tracker's reason.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "503": {
            "description": "The integration couldn't be loaded, or Linear or Jira didn't respond because of an outage, a timeout or rate limiting. Try again in a few moments.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "issue": {
                    "type": "string",
                    "description": "The issue to link, as a Linear issue identifier such as `ENG-123`, a Jira work item key such as `PROJ-45`, or the issue's URL.",
                    "examples": [
                      "ENG-123"
                    ]
                  },
                  "integration_id": {
                    "type": "string",
                    "description": "The ID of the Linear or Jira integration the issue belongs to. Needed only when your team has several. Leave it out then, and the request is refused with 422 and `integration_ids` lists them.",
                    "examples": [
                      "7"
                    ]
                  }
                },
                "required": [
                  "issue"
                ]
              },
              "examples": {
                "link_an_issue": {
                  "summary": "Link an issue",
                  "value": {
                    "issue": "ENG-123"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "integration_type",
          "label",
          "url",
          "operation"
        ],
        "x-cli-name-fields": [
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "integration_id",
          "integration_type",
          "external_id",
          "label",
          "url",
          "operation"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.error_issue.create"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/errors/{error_id}/issues/{id}": {
      "delete": {
        "operationId": "delete_error_issue",
        "summary": "Unlink an issue from an error.",
        "description": "The issue itself stays in Linear or Jira, unchanged.",
        "tags": [
          "error_issue"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v4/applications/:application_id/errors/:error_id/issues/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The ID of the application, from [List applications](/docs/errors/api/applications/list/).",
            "x-path-wildcard": false,
            "examples": {
              "unlink_an_issue": {
                "summary": "Unlink an issue",
                "value": "1234"
              }
            }
          },
          {
            "name": "error_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The error's `id`, from [List errors](/docs/errors/api/errors/list/). Can contain dots.",
            "x-path-wildcard": false,
            "examples": {
              "unlink_an_issue": {
                "summary": "Unlink an issue",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "ENG-123"
              ]
            },
            "description": "The linked issue, as its `id` or `label`, such as `ENG-123`, from `linked_issues` in [Get an error](/docs/errors/api/errors/get/).",
            "x-path-wildcard": false,
            "examples": {
              "unlink_an_issue": {
                "summary": "Unlink an issue",
                "value": "ENG-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": {
          "204": {
            "description": "No content."
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, no error with that ID in it, or no linked issue matches `id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v4/applications/{application_id}/errors/{id}": {
      "get": {
        "operationId": "get_error",
        "summary": "Get one error pattern's details and triage state.",
        "tags": [
          "error"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/errors/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The application the error belongs to.",
            "x-path-wildcard": false,
            "examples": {
              "get_an_error": {
                "summary": "Get an error",
                "value": "123"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The ID of the error, a hex string like `6f1c2b9a8e4d7f3012ab45cd`.",
            "x-path-wildcard": false,
            "examples": {
              "get_an_error": {
                "summary": "Get an error",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "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 error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or no error with that ID in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "application_id",
          "state",
          "occurrences",
          "affected_users",
          "last_seen_at",
          "message"
        ],
        "x-cli-name-fields": [
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "message",
          "call_site_function",
          "call_site_file",
          "environments",
          "state",
          "first_seen_at",
          "last_seen_at",
          "occurrences",
          "affected_users",
          "resolved_in_release_id",
          "ignored_until_count",
          "linked_issues",
          "url"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.error.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_error",
        "summary": "Change an error's triage state.",
        "description": "Resolve it, ignore it forever or for its next occurrences, or reopen it as unresolved.",
        "tags": [
          "error"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v4/applications/:application_id/errors/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "The application the error belongs to.",
            "x-path-wildcard": false,
            "examples": {
              "resolve": {
                "summary": "Resolve",
                "value": "123"
              },
              "ignore_the_next_10": {
                "summary": "Ignore the next 10",
                "value": "123"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "6f1c2b9a8e4d7f3012ab45cd"
              ]
            },
            "description": "The ID of the error, a hex string like `6f1c2b9a8e4d7f3012ab45cd`.",
            "x-path-wildcard": false,
            "examples": {
              "resolve": {
                "summary": "Resolve",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              },
              "ignore_the_next_10": {
                "summary": "Ignore the next 10",
                "value": "6f1c2b9a8e4d7f3012ab45cd"
              }
            }
          },
          {
            "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 error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "The token is read-only, or its scopes don't permit the action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or no error with that ID in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `state` attribute is missing. `required_attributes` names it. Send `state` as `resolved`, `ignored` or `unresolved`. A value is refused, and `invalid_values` names it with what it accepts. `state` accepts `resolved`, `ignored` or `unresolved`. `ignore_next_count` accepts 1, 10, 100 or 1000, with `state` set to `ignored`. `notify_every_exception` can be `true` or `false`. `resolve_in_release` accepts `current`, with `state` set to `resolved`, on an application that has a recorded release. Also returned when the error's current occurrence count isn't available for `ignore_next_count`. Retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorUpdate"
              },
              "examples": {
                "resolve": {
                  "summary": "Resolve",
                  "value": {
                    "state": "resolved"
                  }
                },
                "ignore_the_next_10": {
                  "summary": "Ignore the next 10",
                  "value": {
                    "state": "ignored",
                    "ignore_next_count": 10
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-notes": [
          "A state change works as in the web app, recording an activity and sending your team's configured notifications. A state change without `ignore_next_count` clears any earlier ignore countdown. A change made with OAuth is recorded under your name. A change made with a team or global API token isn't recorded under anyone's name."
        ],
        "x-cli-default-fields": [
          "id",
          "application_id",
          "state",
          "occurrences",
          "affected_users",
          "last_seen_at",
          "message"
        ],
        "x-cli-name-fields": [
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "message",
          "call_site_function",
          "call_site_file",
          "environments",
          "state",
          "first_seen_at",
          "last_seen_at",
          "occurrences",
          "affected_users",
          "resolved_in_release_id",
          "ignored_until_count",
          "linked_issues",
          "url"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.error.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/fields": {
      "get": {
        "operationId": "list_application_field",
        "summary": "List the fields an application's data can be queried by, with their types.",
        "description": "The list holds the fields seen in the application's logs, spans, exceptions or web events in the last 6 hours.",
        "tags": [
          "application_field"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/fields",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "Application whose fields are listed.",
            "x-path-wildcard": false,
            "examples": {
              "list_application_fields": {
                "summary": "List application fields",
                "value": "1234"
              },
              "web_event_fields": {
                "summary": "Web event fields",
                "value": "1234"
              }
            }
          },
          {
            "name": "source_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "logs",
                "spans",
                "exceptions",
                "web_events"
              ],
              "default": "logs",
              "examples": [
                "logs"
              ]
            },
            "description": "The kind of data whose fields are listed.",
            "examples": {
              "web_event_fields": {
                "summary": "Web event fields",
                "value": "web_events"
              }
            }
          },
          {
            "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 application_field objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationFieldList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `source_type` parameter isn't `logs`, `spans`, `exceptions` or `web_events`, or the application has no data of that type. `invalid_values` names it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "The response lists every field at once. An application that received no data in the last 6 hours returns an empty list."
        ],
        "x-cli-default-fields": [
          "path",
          "type"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "path",
          "path_parts"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.application_field.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/groups": {
      "get": {
        "operationId": "list_rum_group",
        "summary": "List a RUM application's user groups seen in a time range, most recently seen first.",
        "tags": [
          "rum_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/groups",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "The RUM application to list groups of.",
            "x-path-wildcard": false,
            "examples": {
              "list_groups": {
                "summary": "List groups",
                "value": "123456"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-10T00:00:00Z"
              ]
            },
            "description": "Start of the time range in ISO 8601. Defaults to 14 days before `to`. RUM data is kept for 90 days, so an earlier `from` counts from 90 days ago."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-24T00:00:00Z"
              ]
            },
            "description": "End of the time range in ISO 8601. Defaults to now. Must be after `from` and within the last 90 days."
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "acme"
              ]
            },
            "description": "Only groups whose ID or name contains this text, ignoring letter case."
          },
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "last_seen",
                "first_seen",
                "user_count",
                "session_count"
              ],
              "x-enum-descriptions": {
                "last_seen": "Puts the most recently seen groups first.",
                "first_seen": "Puts the newest groups first.",
                "user_count": "Puts the groups with the most users first.",
                "session_count": "Puts the groups with the most sessions with a session replay first."
              },
              "examples": [
                "last_seen"
              ]
            },
            "description": "Sort order. Defaults to `last_seen`.",
            "examples": {
              "list_groups": {
                "summary": "List groups",
                "value": "user_count"
              }
            }
          },
          {
            "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 rum_group objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RumGroupList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the application doesn't collect web events.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An unknown query parameter, a `from` or `to` that isn't ISO 8601, a `to` that isn't after `from` or is more than 90 days ago, or an `order_by` outside the allowed values. `invalid_values` names the attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Needs a role with **View users and groups** under **Applications**."
        ],
        "x-cli-default-fields": [
          "id",
          "name",
          "user_count",
          "session_count",
          "error_count",
          "last_seen_at"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "group_id",
          "name",
          "first_seen_at",
          "last_seen_at",
          "user_count",
          "session_count",
          "error_count",
          "replay_count",
          "users_url",
          "sessions_url"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.rum_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/groups/{id}": {
      "get": {
        "operationId": "get_rum_group",
        "summary": "Get one of a RUM application's user groups, with its activity in a time range.",
        "tags": [
          "rum_group"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/groups/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "The RUM application the group was seen in.",
            "x-path-wildcard": false,
            "examples": {
              "get_a_group": {
                "summary": "Get a group",
                "value": "123456"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "456"
              ]
            },
            "description": "The group's `id` from listing RUM groups. For a group sent without an ID, the `id` is its name.",
            "x-path-wildcard": false,
            "examples": {
              "get_a_group": {
                "summary": "Get a group",
                "value": "456"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-10T00:00:00Z"
              ]
            },
            "description": "Start of the time range in ISO 8601. Defaults to 14 days before `to`. RUM data is kept for 90 days, so an earlier `from` counts from 90 days ago."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-24T00:00:00Z"
              ]
            },
            "description": "End of the time range in ISO 8601. Defaults to now. Must be after `from` and within the last 90 days."
          },
          {
            "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 rum_group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RumGroupDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the group wasn't seen in the time range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "A `from` or `to` that isn't ISO 8601, or a `to` that isn't after `from` or is more than 90 days ago. `invalid_values` names the attribute. An unknown query parameter is listed in `invalid_attributes`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "user_count",
          "session_count",
          "error_count",
          "last_seen_at"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "group_id",
          "name",
          "first_seen_at",
          "last_seen_at",
          "user_count",
          "session_count",
          "error_count",
          "replay_count",
          "users_url",
          "sessions_url"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.rum_group.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/metrics": {
      "get": {
        "operationId": "list_application_metric",
        "summary": "List an application's ingested and user-defined metrics.",
        "tags": [
          "application_metric"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": false,
        "x-endpoint": "GET /api/v4/applications/:application_id/metrics",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "Application whose metrics are listed.",
            "x-path-wildcard": false
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "cardinality",
                "catalog"
              ],
              "x-enum-descriptions": {
                "cardinality": "Lists the metrics with the highest `active_series` first.",
                "catalog": "Keeps the catalog's own order, with ingested metrics by name, then user-defined ones in the order they were created."
              },
              "default": "cardinality",
              "examples": [
                "catalog"
              ]
            },
            "description": "The order the metrics are listed in."
          },
          {
            "name": "name_filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "http_*"
              ]
            },
            "description": "Only metrics whose name matches, ignoring letter case. Use `prefix*`, `*contains*`, `*suffix` or an exact name."
          },
          {
            "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 application_metric objects.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ApplicationMetricList"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "usage_available": {
                          "type": "boolean",
                          "description": "Whether the usage of user-defined metrics was measured. `false` when it couldn't be measured in time, so their `data_points` and `active_series` read 0.",
                          "examples": [
                            true
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `page` value isn't a whole number, or the token can access several teams and `team_id` doesn't name one of them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v4/applications/{application_id}/metrics/{id}": {
      "get": {
        "operationId": "get_application_metric",
        "summary": "Get one metric of an application.",
        "tags": [
          "application_metric"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": false,
        "x-endpoint": "GET /api/v4/applications/:application_id/metrics/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123"
              ]
            },
            "description": "Application the metric belongs to.",
            "x-path-wildcard": false
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "http_requests_total"
              ]
            },
            "description": "The metric name. Can contain dots.",
            "x-path-wildcard": false
          },
          {
            "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 application_metric.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationMetricDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or no metric with that name in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v4/applications/{application_id}/sessions": {
      "get": {
        "operationId": "list_rum_session",
        "summary": "List a RUM application's sessions that have a session replay in a time range, most recently active first.",
        "tags": [
          "rum_session"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/sessions",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "The RUM application to list sessions of.",
            "x-path-wildcard": false,
            "examples": {
              "list_sessions_with_errors": {
                "summary": "List sessions with errors",
                "value": "123456"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-10T00:00:00Z"
              ]
            },
            "description": "Start of the time range in ISO 8601. Defaults to 14 days before `to`. RUM data is kept for 90 days, so an earlier `from` counts from 90 days ago."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-24T00:00:00Z"
              ]
            },
            "description": "End of the time range in ISO 8601. Defaults to now. Must be after `from` and within the last 90 days."
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "user_123"
              ]
            },
            "description": "Only sessions of this user, by the user's `id` from listing RUM users."
          },
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "456"
              ]
            },
            "description": "Only sessions of this group's users, by the group's `id` from listing RUM groups."
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "unresolved",
                "resolved"
              ],
              "x-enum-descriptions": {
                "all": "Lists every session.",
                "unresolved": "Lists only sessions nobody resolved.",
                "resolved": "Lists only resolved sessions."
              },
              "examples": [
                "unresolved"
              ]
            },
            "description": "Only sessions in this state. Defaults to `all`."
          },
          {
            "name": "has_errors",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "examples": [
                true
              ]
            },
            "description": "`true` lists only sessions that ran into an error, `false` only sessions that didn't.",
            "examples": {
              "list_sessions_with_errors": {
                "summary": "List sessions with errors",
                "value": true
              }
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "last_seen",
                "duration",
                "page_count",
                "click_count",
                "error_count"
              ],
              "x-enum-descriptions": {
                "last_seen": "Puts the most recently active sessions first.",
                "duration": "Puts the longest sessions first.",
                "page_count": "Puts the sessions with the most pages first.",
                "click_count": "Puts the sessions with the most clicks first.",
                "error_count": "Puts the sessions with the most errors first."
              },
              "examples": [
                "last_seen"
              ]
            },
            "description": "Sort order. Defaults to `last_seen`."
          },
          {
            "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 rum_session objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RumSessionList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the application doesn't collect web events.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An unknown query parameter, a `from` or `to` that isn't ISO 8601, a `to` that isn't after `from` or is more than 90 days ago, a `has_errors` other than `true` or `false`, or a `state` or `order_by` outside the allowed values. `invalid_values` names the attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Needs a role with **View sessions and replays** under **Applications**.",
          "You watch a session replay in the web app, at the session's `url`. To export a recording, list the session's segments."
        ],
        "x-cli-default-fields": [
          "id",
          "user_identifier",
          "first_url",
          "duration_seconds",
          "error_count",
          "last_seen_at",
          "url"
        ],
        "x-cli-name-fields": [
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "user_identifier",
          "user_name",
          "group_id",
          "group_name",
          "country",
          "city",
          "browser",
          "os",
          "user_agent",
          "first_url",
          "last_url",
          "page_count",
          "click_count",
          "error_count",
          "replay_count",
          "first_seen_at",
          "last_seen_at",
          "duration_seconds",
          "state",
          "url",
          "replays",
          "timeline",
          "timeline_truncated"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.rum_session.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/sessions/{id}": {
      "get": {
        "operationId": "get_rum_session",
        "summary": "Get one RUM session with its session replays and a timeline of its page views, clicks, errors and traces.",
        "tags": [
          "rum_session"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/sessions/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "The RUM application the session was recorded in.",
            "x-path-wildcard": false,
            "examples": {
              "get_a_session": {
                "summary": "Get a session",
                "value": "123456"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "c682c012-26e6-40ce-bb45-5e6e7f5a8c0f"
              ]
            },
            "description": "The session's `id` from listing RUM sessions.",
            "x-path-wildcard": false,
            "examples": {
              "get_a_session": {
                "summary": "Get a session",
                "value": "c682c012-26e6-40ce-bb45-5e6e7f5a8c0f"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-10T00:00:00Z"
              ]
            },
            "description": "Start of the time range to look for the session in, in ISO 8601. Defaults to 90 days before `to`. RUM data is kept for 90 days, so an earlier `from` counts from 90 days ago."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-24T00:00:00Z"
              ]
            },
            "description": "End of the time range to look for the session in, in ISO 8601. Defaults to now. Must be after `from` and within the last 90 days."
          },
          {
            "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 rum_session.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RumSessionDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the session isn't in the time range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "A `from` or `to` that isn't ISO 8601, or a `to` that isn't after `from` or is more than 90 days ago. `invalid_values` names the attribute. An unknown query parameter is listed in `invalid_attributes`. Loading the session's timeline ran out of time. `errors` says why. Narrow `from` and `to` around the session.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "user_identifier",
          "first_url",
          "duration_seconds",
          "error_count",
          "last_seen_at",
          "url"
        ],
        "x-cli-name-fields": [
          "url"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "user_identifier",
          "user_name",
          "group_id",
          "group_name",
          "country",
          "city",
          "browser",
          "os",
          "user_agent",
          "first_url",
          "last_url",
          "page_count",
          "click_count",
          "error_count",
          "replay_count",
          "first_seen_at",
          "last_seen_at",
          "duration_seconds",
          "state",
          "url",
          "replays",
          "timeline",
          "timeline_truncated"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.rum_session.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/sessions/{session_id}/segments": {
      "get": {
        "operationId": "list_rum_session_segment",
        "summary": "List the recorded segments of a RUM session's session replays in recording order, with their rrweb events, to export the recording.",
        "tags": [
          "rum_session_segment"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/sessions/:session_id/segments",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "The RUM application the session was recorded in.",
            "x-path-wildcard": false,
            "examples": {
              "list_a_session_s_segments": {
                "summary": "List a session's segments",
                "value": "123456"
              }
            }
          },
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "c682c012-26e6-40ce-bb45-5e6e7f5a8c0f"
              ]
            },
            "description": "The session's `id` from listing RUM sessions.",
            "x-path-wildcard": false,
            "examples": {
              "list_a_session_s_segments": {
                "summary": "List a session's segments",
                "value": "c682c012-26e6-40ce-bb45-5e6e7f5a8c0f"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-10T00:00:00Z"
              ]
            },
            "description": "Start of the time range to look for the session in, in ISO 8601. Defaults to 90 days before `to`. RUM data is kept for 90 days, so an earlier `from` counts from 90 days ago."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-24T00:00:00Z"
              ]
            },
            "description": "End of the time range to look for the session in, in ISO 8601. Defaults to now. Must be after `from` and within the last 90 days."
          },
          {
            "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 rum_session_segment objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RumSessionSegmentList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the session isn't in the time range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "A `page` that isn't a whole number, a `from` or `to` that isn't ISO 8601, a `to` that isn't after `from` or is more than 90 days ago, or a token that can access several teams with a `team_id` that doesn't name one of them. `invalid_values` names the attribute. An unknown query parameter is listed in `invalid_attributes`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Needs a role with **View sessions and replays** under **Applications**.",
          "A session without a replay lists none."
        ],
        "x-cli-default-fields": [
          "id",
          "replay_id",
          "segment_id",
          "at"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "replay_id",
          "segment_id",
          "at",
          "events"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.rum_session_segment.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/users": {
      "get": {
        "operationId": "list_rum_user",
        "summary": "List a RUM application's signed-in users seen in a time range, most recently seen first.",
        "tags": [
          "rum_user"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/users",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "The RUM application to list users of.",
            "x-path-wildcard": false,
            "examples": {
              "list_users": {
                "summary": "List users",
                "value": "123456"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-10T00:00:00Z"
              ]
            },
            "description": "Start of the time range in ISO 8601. Defaults to 14 days before `to`. RUM data is kept for 90 days, so an earlier `from` counts from 90 days ago."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-24T00:00:00Z"
              ]
            },
            "description": "End of the time range in ISO 8601. Defaults to now. Must be after `from` and within the last 90 days."
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "jane"
              ]
            },
            "description": "Only users whose identifier or name contains this text, ignoring letter case."
          },
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "456"
              ]
            },
            "description": "Only users of this group, by its ID, or by its name for a group sent without an ID."
          },
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "last_seen",
                "first_seen",
                "error_count",
                "session_count"
              ],
              "x-enum-descriptions": {
                "last_seen": "Puts the most recently seen users first.",
                "first_seen": "Puts the newest users first.",
                "error_count": "Puts the users with the most errors first.",
                "session_count": "Puts the users with the most sessions with a session replay first."
              },
              "examples": [
                "last_seen"
              ]
            },
            "description": "Sort order. Defaults to `last_seen`.",
            "examples": {
              "list_users": {
                "summary": "List users",
                "value": "error_count"
              }
            }
          },
          {
            "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 rum_user objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RumUserList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the application doesn't collect web events.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "An unknown query parameter, a `from` or `to` that isn't ISO 8601, a `to` that isn't after `from` or is more than 90 days ago, or an `order_by` outside the allowed values. `invalid_values` names the attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "Needs a role with **View users and groups** under **Applications**."
        ],
        "x-cli-default-fields": [
          "id",
          "name",
          "group_name",
          "last_seen_at",
          "error_count",
          "session_count"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "name",
          "group_id",
          "group_name",
          "country",
          "city",
          "referrer",
          "utm",
          "first_seen_at",
          "last_seen_at",
          "error_count",
          "session_count",
          "sessions_url"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.rum_user.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{application_id}/users/{id}": {
      "get": {
        "operationId": "get_rum_user",
        "summary": "Get one signed-in user of a RUM application, with their activity in a time range.",
        "tags": [
          "rum_user"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:application_id/users/:id",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "123456"
              ]
            },
            "description": "The RUM application the user was seen in.",
            "x-path-wildcard": false,
            "examples": {
              "get_a_user": {
                "summary": "Get a user",
                "value": "123456"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[^/]+",
              "examples": [
                "user_123"
              ]
            },
            "description": "The user's `id` from listing RUM users, the user ID or e-mail the application sent.",
            "x-path-wildcard": false,
            "examples": {
              "get_a_user": {
                "summary": "Get a user",
                "value": "user_123"
              }
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-10T00:00:00Z"
              ]
            },
            "description": "Start of the time range in ISO 8601. Defaults to 14 days before `to`. RUM data is kept for 90 days, so an earlier `from` counts from 90 days ago."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "examples": [
                "2026-11-24T00:00:00Z"
              ]
            },
            "description": "End of the time range in ISO 8601. Defaults to now. Must be after `from` and within the last 90 days."
          },
          {
            "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 rum_user.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RumUserDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "No application with that ID, or the user wasn't seen in the time range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "A `from` or `to` that isn't ISO 8601, or a `to` that isn't after `from` or is more than 90 days ago. `invalid_values` names the attribute. An unknown query parameter is listed in `invalid_attributes`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "group_name",
          "last_seen_at",
          "error_count",
          "session_count"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "application_id",
          "name",
          "group_id",
          "group_name",
          "country",
          "city",
          "referrer",
          "utm",
          "first_seen_at",
          "last_seen_at",
          "error_count",
          "session_count",
          "sessions_url"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.rum_user.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/applications/{id}": {
      "delete": {
        "operationId": "delete_application",
        "summary": "Delete an application permanently.",
        "description": "Ingestion stops and stored errors are scheduled for removal. The application can still be fetched for a short time while deletion finishes.",
        "tags": [
          "application"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "DELETE /api/v4/applications/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "delete_an_application": {
                "summary": "Delete an application",
                "value": "1234"
              },
              "remove_with_its_data": {
                "summary": "Remove with its data",
                "value": "1234"
              }
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "Set to `true` to delete an application that has received data, together with all of that data. Without it, deleting such an application returns 409.",
            "examples": {
              "remove_with_its_data": {
                "summary": "Remove with its data",
                "value": true
              }
            }
          },
          {
            "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/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "Your Better Stack role doesn't allow changing this application.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "409": {
            "description": "The application has received data and `force=true` wasn't sent. Nothing is deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The application is managed by an integration and can't be deleted directly, or `force` is neither `true` nor `false`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get_application",
        "summary": "Get an application's full configuration.",
        "tags": [
          "application"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "GET /api/v4/applications/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "get_an_application": {
                "summary": "Get an application",
                "value": "1234"
              }
            }
          },
          {
            "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 application.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "platform",
          "team_id",
          "application_group_id",
          "ingesting_paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "platform",
          "application_group_id",
          "ingesting_paused",
          "errors_retention",
          "web_events_retention",
          "replays_retention",
          "data_region",
          "correlate_with_source_id",
          "github_repository_name",
          "gitlab_repository_name",
          "code_mapping_stack_root",
          "code_mapping_source_root",
          "custom_bucket",
          "vrl_transformation_exceptions",
          "vrl_transformation_replays",
          "vrl_transformation_web_events",
          "vrl_transformation_logs",
          "vrl_transformation_spans",
          "spike_protection_baseline_multiplier",
          "ai_prompt_template",
          "js_tag_configuration",
          "js_tag_own_domain_status",
          "source_types",
          "parent_source_id",
          "query_collections",
          "token",
          "js_tag_token",
          "table_name",
          "ingesting_host",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.application.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      },
      "patch": {
        "operationId": "update_application",
        "summary": "Update an application's settings.",
        "description": "Only send the fields you want to change.",
        "tags": [
          "application"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "write",
        "x-api": "errors",
        "x-cli": true,
        "x-endpoint": "PATCH /api/v4/applications/:id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-path-wildcard": false,
            "examples": {
              "rename_an_application": {
                "summary": "Rename an application",
                "value": "1234"
              },
              "pause_ingestion": {
                "summary": "Pause ingestion",
                "value": "1234"
              },
              "map_source_code": {
                "summary": "Map source code",
                "value": "1234"
              }
            }
          },
          {
            "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 application.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDocument"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "403": {
            "description": "Your Better Stack role doesn't allow changing this application.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The application doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The `platform`, `correlate_with_source_id` or `data_region` attribute was sent, `custom_bucket` holds more than the key pair, or validation failed. Ingestion was resumed with `ingesting_paused` set to `false` on a plan without error tracking, or `errors_retention` was changed to a retention period only a larger plan offers. A setting has a value the application refuses, such as a `replays_retention` your plan doesn't offer or a `js_tag_configuration` key with the wrong type. `invalid_values` names each refused setting, and a key inside `js_tag_configuration` by its path, for example `js_tag_configuration.sampling`. The `spike_protection_baseline_multiplier` is outside 0 to 100, or the `web_events_retention` is a retention period your plan doesn't offer. `errors` lists the messages and `invalid_attributes` names the settings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationUpdate"
              },
              "examples": {
                "rename_an_application": {
                  "summary": "Rename an application",
                  "value": {
                    "name": "updated-web-app"
                  }
                },
                "pause_ingestion": {
                  "summary": "Pause ingestion",
                  "value": {
                    "ingesting_paused": true
                  }
                },
                "map_source_code": {
                  "summary": "Map source code",
                  "value": {
                    "github_repository_name": "acme/web",
                    "code_mapping_stack_root": "/usr/src/app/",
                    "code_mapping_source_root": "apps/backend/"
                  }
                }
              }
            }
          }
        },
        "x-request-envelope": {
          "attributes_path": []
        },
        "x-cli-default-fields": [
          "id",
          "name",
          "platform",
          "team_id",
          "application_group_id",
          "ingesting_paused"
        ],
        "x-cli-name-fields": [
          "name"
        ],
        "x-cli-response-fields": [
          "id",
          "type",
          "name",
          "platform",
          "application_group_id",
          "ingesting_paused",
          "errors_retention",
          "web_events_retention",
          "replays_retention",
          "data_region",
          "correlate_with_source_id",
          "github_repository_name",
          "gitlab_repository_name",
          "code_mapping_stack_root",
          "code_mapping_source_root",
          "custom_bucket",
          "vrl_transformation_exceptions",
          "vrl_transformation_replays",
          "vrl_transformation_web_events",
          "vrl_transformation_logs",
          "vrl_transformation_spans",
          "spike_protection_baseline_multiplier",
          "ai_prompt_template",
          "js_tag_configuration",
          "js_tag_own_domain_status",
          "source_types",
          "parent_source_id",
          "query_collections",
          "token",
          "js_tag_token",
          "table_name",
          "ingesting_host",
          "created_at",
          "updated_at",
          "team_id",
          "team_name"
        ],
        "x-cli-response-schema": {
          "$ref": "#/components/schemas/CLIResponse.errors.application.list"
        },
        "x-response-envelope": {
          "item_path": [
            "data"
          ],
          "list_path": [
            "data"
          ],
          "attributes_path": [
            "attributes"
          ],
          "id_path": [
            "id"
          ],
          "type_path": [
            "type"
          ]
        }
      }
    },
    "/api/v4/data-regions": {
      "get": {
        "operationId": "list_data_region",
        "summary": "List the data regions and dedicated clusters available for a new application.",
        "description": "Pass an `id` as an application's `data_region` when creating it.",
        "tags": [
          "data_region"
        ],
        "security": [
          {
            "teamApiToken": []
          },
          {
            "globalApiToken": []
          },
          {
            "userOauth": []
          }
        ],
        "x-access": "read",
        "x-api": "errors",
        "x-cli": false,
        "x-endpoint": "GET /api/v4/data-regions",
        "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 list of data_region objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRegionList"
                }
              }
            }
          },
          "401": {
            "description": "The API token is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "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/TelemetryError"
                }
              }
            }
          },
          "404": {
            "description": "The data region doesn't exist, or the token can't access it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          },
          "422": {
            "description": "The request was understood but failed validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryError"
                }
              }
            }
          }
        },
        "x-notes": [
          "The response lists every region and cluster at once."
        ]
      }
    }
  },
  "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": {
      "Application": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The application's id."
          },
          "type": {
            "type": "string",
            "const": "application"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Application name."
              },
              "platform": {
                "type": "string",
                "enum": [
                  "aiohttp_errors",
                  "android_errors",
                  "angular_errors",
                  "asgi_errors",
                  "asp_dot_net_core_errors",
                  "asp_dot_net_errors",
                  "astro_errors",
                  "aws_lambda_dot_net_errors",
                  "aws_lambda_node_errors",
                  "aws_lambda_python_errors",
                  "azure_functions_node_errors",
                  "bottle_errors",
                  "bun_errors",
                  "celery_errors",
                  "chalice_errors",
                  "cli_errors",
                  "cloudflare_pages_errors",
                  "connect_errors",
                  "dart_errors",
                  "deno_errors",
                  "django_errors",
                  "dot_net_errors",
                  "dot_net_http_errors",
                  "dot_net_maui_errors",
                  "echo_errors",
                  "electron_errors",
                  "elixir_errors",
                  "ember_errors",
                  "express_errors",
                  "falcon_errors",
                  "fastapi_errors",
                  "fasthttp_errors",
                  "fastify_errors",
                  "fiber_errors",
                  "flask_errors",
                  "flutter_errors",
                  "gatsby_errors",
                  "gin_errors",
                  "go_errors",
                  "godot_errors",
                  "google_cloud_function_dot_net_errors",
                  "google_cloud_function_node_errors",
                  "google_cloud_function_python_errors",
                  "hapi_errors",
                  "ios_errors",
                  "iris_errors",
                  "java_errors",
                  "javascript_errors",
                  "koa_errors",
                  "kotlin_errors",
                  "laravel_errors",
                  "log4j_errors",
                  "logback_errors",
                  "macos_errors",
                  "minidump_errors",
                  "native_errors",
                  "negroni_errors",
                  "nest_js_errors",
                  "next_js_errors",
                  "node_errors",
                  "nuxt_errors",
                  "php_errors",
                  "powershell_errors",
                  "pyramid_errors",
                  "python_errors",
                  "qt_errors",
                  "quart_errors",
                  "rack_middleware_errors",
                  "rails_errors",
                  "react_errors",
                  "react_native_errors",
                  "react_router_framework_errors",
                  "remix_errors",
                  "rq_errors",
                  "ruby_errors",
                  "rust_errors",
                  "sanic_errors",
                  "serverless_python_errors",
                  "solid_errors",
                  "solidstart_errors",
                  "spring_boot_errors",
                  "spring_errors",
                  "starlette_errors",
                  "svelte_errors",
                  "sveltekit_errors",
                  "symfony_errors",
                  "tanstack_start_react_errors",
                  "tornado_errors",
                  "tryton_errors",
                  "unity_errors",
                  "unreal_engine_errors",
                  "vue_errors",
                  "windows_forms_errors",
                  "wpf_errors",
                  "wsgi_errors"
                ],
                "description": "The SDK or framework the application reports errors from."
              },
              "application_group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the application group to put this application in, from [List application groups](/docs/errors/api/applications-groups/list/)."
              },
              "ingesting_paused": {
                "type": "boolean",
                "description": "Whether ingestion is paused for this application.",
                "default": false
              },
              "errors_retention": {
                "type": "integer",
                "format": "int64",
                "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set.",
                "examples": [
                  90
                ]
              },
              "web_events_retention": {
                "type": "integer",
                "format": "int64",
                "description": "Days to keep web events. Accepts one of the retention periods your plan offers, or the value already set. A connected application's web events retention is set on its connected source."
              },
              "replays_retention": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Days to keep session replays. Accepts one of the retention periods your plan offers, or the value already set. A change applies to every application connected to the same source. Only an application that records session replays accepts it."
              },
              "data_region": {
                "type": "string",
                "description": "The data region, `europe`, `us`, `singapore` or a dedicated cluster's name from [List data regions](/docs/errors/api/data-regions/). An application created with `correlate_with_source_id` uses that source's region, and a different region here is refused."
              },
              "correlate_with_source_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](/docs/logs/api/list-all-existing-sources/)."
              },
              "github_repository_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](/docs/errors/integrations/github/) first.",
                "examples": [
                  "acme/web"
                ]
              },
              "gitlab_repository_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories.",
                "examples": [
                  "acme/web"
                ]
              },
              "code_mapping_stack_root": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.",
                "examples": [
                  "/usr/src/app/"
                ]
              },
              "code_mapping_source_root": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under `code_mapping_stack_root` is looked up under this path in the linked repository.",
                "examples": [
                  "apps/backend/"
                ]
              },
              "custom_bucket": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The bucket's name, taken from `endpoint`.",
                    "readOnly": true
                  },
                  "endpoint": {
                    "type": "string",
                    "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set."
                  },
                  "access_key_id": {
                    "type": "string",
                    "description": "The access key ID to write to the bucket with."
                  },
                  "secret_access_key": {
                    "type": "string",
                    "description": "The secret access key for `access_key_id`. Write-only."
                  },
                  "keep_data_after_retention": {
                    "type": "boolean",
                    "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set."
                  }
                },
                "description": "Your own S3-compatible bucket to archive data in, or `null` when the application uses Better Stack storage. Changing only `access_key_id` and `secret_access_key` rotates the bucket's key pair.",
                "examples": [
                  {
                    "name": "errors-archive",
                    "endpoint": "https://s3.eu-central-1.amazonaws.com/errors-archive",
                    "access_key_id": "AKIAIOSFODNN7EXAMPLE",
                    "keep_data_after_retention": false
                  }
                ]
              },
              "vrl_transformation_exceptions": {
                "type": "string",
                "format": "vrl",
                "description": "The VRL program that groups incoming exceptions into errors. A new application starts with its platform's default grouping, which groups exceptions by error name and call stack on most platforms. Read more about [exception grouping](/docs/errors/using-the-product/exception-grouping/)."
              },
              "vrl_transformation_replays": {
                "type": "string",
                "format": "vrl",
                "description": "The VRL program applied to session replays during ingestion."
              },
              "vrl_transformation_web_events": {
                "type": "string",
                "format": "vrl",
                "description": "The VRL program applied to web events, such as page views and web vitals, during ingestion. A new application starts with the default web events program."
              },
              "vrl_transformation_logs": {
                "type": "string",
                "format": "vrl",
                "description": "The VRL program applied to logs collected alongside errors, during ingestion. Read more about [VRL transformations](/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/)."
              },
              "vrl_transformation_spans": {
                "type": "string",
                "format": "vrl",
                "description": "The VRL program applied to spans collected alongside errors, during ingestion."
              },
              "spike_protection_baseline_multiplier": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "The baseline multiplier of spike protection, from 0 to 100. Lower values start sampling sooner, and higher values allow bigger bursts before sampling starts. `null` while spike protection is off."
              },
              "ai_prompt_template": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The AI prompt used to fix this application's errors, or the default prompt when the application has none of its own."
              },
              "js_tag_configuration": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "collect": {
                    "type": "object",
                    "properties": {
                      "errors": {
                        "type": "boolean",
                        "description": "Collect frontend errors."
                      },
                      "web_vitals": {
                        "type": "boolean",
                        "description": "Record web vitals."
                      },
                      "console": {
                        "type": "boolean",
                        "description": "Collect `console.log` calls."
                      },
                      "memory": {
                        "type": "boolean",
                        "description": "Record JavaScript heap memory, in Chrome only."
                      },
                      "analytics": {
                        "type": "boolean",
                        "description": "Record website analytics."
                      },
                      "anonymous_events": {
                        "type": "boolean",
                        "description": "Capture anonymous user events."
                      },
                      "replays": {
                        "type": "boolean",
                        "description": "Record session replays."
                      },
                      "identified_events": {
                        "type": "boolean",
                        "description": "Capture identified user events."
                      },
                      "fingerprint": {
                        "type": "boolean",
                        "description": "Collect the browser fingerprint."
                      }
                    },
                    "description": "The features the JavaScript tag collects, each on or off."
                  },
                  "sampling": {
                    "type": "object",
                    "properties": {
                      "errors": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Percentage of errors sent, from 0 to 100."
                      },
                      "replays": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Percentage of sessions recorded as session replays, from 0 to 100."
                      },
                      "web_events": {
                        "type": "integer",
                        "format": "int64",
                        "description": "Percentage of sessions that send web events, from 0 to 100."
                      }
                    },
                    "description": "Sampling rates of the JavaScript tag, as percentages."
                  },
                  "exclude_selectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "CSS selectors of elements excluded from session replays and autocapture."
                  },
                  "mask_selectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "CSS selectors of elements whose text session replays mask."
                  },
                  "shared_session_domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Your other domains to share sessions with."
                  },
                  "accept_incoming_sessions": {
                    "type": "boolean",
                    "description": "Continue sessions that arrive from your other domains."
                  },
                  "decorate_forms": {
                    "type": "boolean",
                    "description": "Also share sessions through forms that submit to your other domains."
                  },
                  "custom_config": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "JavaScript code the tag runs when it loads."
                  },
                  "session_timeout_minutes": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Session timeout in minutes, from 1 to 60."
                  },
                  "events_batch_interval_seconds": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Seconds between batches of events, at least 2."
                  },
                  "own_domain": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Your own subdomain to serve the tag from. The subdomain's CNAME record must point to `proxy.betterstack.net`."
                  }
                },
                "description": "Settings of the JavaScript tag, as on the application's **Frontend** page. `null` for an application without a JavaScript tag.",
                "examples": [
                  {
                    "collect": {
                      "errors": true,
                      "web_vitals": true,
                      "console": false,
                      "memory": false,
                      "analytics": true,
                      "anonymous_events": true,
                      "replays": true,
                      "identified_events": true,
                      "fingerprint": false
                    },
                    "sampling": {
                      "errors": 100,
                      "replays": 10,
                      "web_events": 100
                    },
                    "exclude_selectors": [
                      ".private"
                    ],
                    "mask_selectors": [
                      ".card-number"
                    ],
                    "shared_session_domains": [
                      "shop.example.com"
                    ],
                    "accept_incoming_sessions": true,
                    "decorate_forms": false,
                    "custom_config": null,
                    "session_timeout_minutes": 30,
                    "events_batch_interval_seconds": 5,
                    "own_domain": "rum.example.com"
                  }
                ]
              },
              "js_tag_own_domain_status": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "checking",
                  "missing",
                  "invalid",
                  "valid",
                  null
                ],
                "description": "Whether the CNAME record of your own subdomain points to `proxy.betterstack.net`. `null` when `js_tag_configuration` has no `own_domain`.",
                "x-enum-descriptions": {
                  "checking": "The CNAME record hasn't been checked yet since the subdomain last changed.",
                  "missing": "The subdomain has no CNAME record.",
                  "invalid": "The CNAME record doesn't point to `proxy.betterstack.net`.",
                  "valid": "The CNAME record points to `proxy.betterstack.net`, so the tag is served from the subdomain."
                },
                "readOnly": true
              },
              "source_types": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The kinds of data the application holds, such as `exceptions`, `logs`, `metrics`, `replays`, `spans` or `web_events`, sorted by name.",
                "readOnly": true,
                "examples": [
                  [
                    "exceptions",
                    "metrics",
                    "replays"
                  ]
                ]
              },
              "parent_source_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the telemetry source this application is connected to. `query_collections` names that source's collections. `null` when the application isn't connected to a source.",
                "readOnly": true,
                "examples": [
                  "4714"
                ]
              },
              "query_collections": {
                "type": "object",
                "properties": {
                  "database": {
                    "type": "string",
                    "description": "The ClickHouse database that holds the application's data."
                  },
                  "table": {
                    "type": "string",
                    "description": "The table that holds the application's data, as `database.table`."
                  },
                  "recent": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "The collections that hold the last 30 minutes of data, one for each kind of data the application holds, such as `exceptions` or `metrics`."
                  },
                  "s3": {
                    "type": "string",
                    "description": "The collection that holds older data of every kind."
                  },
                  "app_filter": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The condition that selects only this application's data in the collections of its connected source. `null` unless the application is connected to a source."
                  },
                  "metrics_app_filter": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The condition that selects only this application's data in the metrics collection of its connected source. `null` unless the application is connected to a source."
                  }
                },
                "description": "The ClickHouse database, table and collections to use when you query the application's data.",
                "readOnly": true,
                "examples": [
                  {
                    "database": "t123",
                    "table": "t123.nginx",
                    "recent": {
                      "exceptions": "remote(t123_nginx_exceptions)",
                      "metrics": "remote(t123_nginx_metrics)"
                    },
                    "s3": "s3Cluster(primary, t123_nginx_s3)",
                    "app_filter": "JSONExtractInt(raw, '_app_id') = 4719",
                    "metrics_app_filter": "app_id = 4719"
                  }
                ]
              },
              "token": {
                "type": "string",
                "description": "Ingestion token, the DSN to configure your SDK with.",
                "x-sensitive": true,
                "readOnly": true
              },
              "js_tag_token": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The token of the browser tag, separate from `token`. Pass it as the `?t=` value when you load the `/b.js` browser tag. `null` for a platform without a browser tag.",
                "x-sensitive": true,
                "readOnly": true
              },
              "table_name": {
                "type": "string",
                "description": "The application's table name, which identifies its data in SQL queries.",
                "readOnly": true,
                "examples": [
                  "nginx"
                ]
              },
              "ingesting_host": {
                "type": "string",
                "description": "Host to send data to.",
                "readOnly": true
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the application was created.",
                "readOnly": true
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the application was last updated.",
                "readOnly": true
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "The team that owns the application, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the application.",
                "readOnly": true,
                "examples": [
                  "Production"
                ]
              }
            }
          }
        }
      },
      "ApplicationCreate": {
        "$ref": "#/components/schemas/ApplicationCreateAttributes"
      },
      "ApplicationCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Application name."
          },
          "platform": {
            "type": "string",
            "enum": [
              "aiohttp_errors",
              "android_errors",
              "angular_errors",
              "asgi_errors",
              "asp_dot_net_core_errors",
              "asp_dot_net_errors",
              "astro_errors",
              "aws_lambda_dot_net_errors",
              "aws_lambda_node_errors",
              "aws_lambda_python_errors",
              "azure_functions_node_errors",
              "bottle_errors",
              "bun_errors",
              "celery_errors",
              "chalice_errors",
              "cli_errors",
              "cloudflare_pages_errors",
              "connect_errors",
              "dart_errors",
              "deno_errors",
              "django_errors",
              "dot_net_errors",
              "dot_net_http_errors",
              "dot_net_maui_errors",
              "echo_errors",
              "electron_errors",
              "elixir_errors",
              "ember_errors",
              "express_errors",
              "falcon_errors",
              "fastapi_errors",
              "fasthttp_errors",
              "fastify_errors",
              "fiber_errors",
              "flask_errors",
              "flutter_errors",
              "gatsby_errors",
              "gin_errors",
              "go_errors",
              "godot_errors",
              "google_cloud_function_dot_net_errors",
              "google_cloud_function_node_errors",
              "google_cloud_function_python_errors",
              "hapi_errors",
              "ios_errors",
              "iris_errors",
              "java_errors",
              "javascript_errors",
              "koa_errors",
              "kotlin_errors",
              "laravel_errors",
              "log4j_errors",
              "logback_errors",
              "macos_errors",
              "minidump_errors",
              "native_errors",
              "negroni_errors",
              "nest_js_errors",
              "next_js_errors",
              "node_errors",
              "nuxt_errors",
              "php_errors",
              "powershell_errors",
              "pyramid_errors",
              "python_errors",
              "qt_errors",
              "quart_errors",
              "rack_middleware_errors",
              "rails_errors",
              "react_errors",
              "react_native_errors",
              "react_router_framework_errors",
              "remix_errors",
              "rq_errors",
              "ruby_errors",
              "rust_errors",
              "sanic_errors",
              "serverless_python_errors",
              "solid_errors",
              "solidstart_errors",
              "spring_boot_errors",
              "spring_errors",
              "starlette_errors",
              "svelte_errors",
              "sveltekit_errors",
              "symfony_errors",
              "tanstack_start_react_errors",
              "tornado_errors",
              "tryton_errors",
              "unity_errors",
              "unreal_engine_errors",
              "vue_errors",
              "windows_forms_errors",
              "wpf_errors",
              "wsgi_errors"
            ],
            "description": "The SDK or framework the application reports errors from. Can't be changed after the application is created."
          },
          "application_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the application group to put this application in, from [List application groups](/docs/errors/api/applications-groups/list/)."
          },
          "ingesting_paused": {
            "type": "boolean",
            "description": "Whether ingestion is paused for this application.",
            "default": false
          },
          "errors_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set. Defaults to your plan's default retention, or to a longer one your other applications already use.",
            "examples": [
              90
            ]
          },
          "web_events_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep web events. Accepts one of the retention periods your plan offers, or the value already set. A connected application's web events retention is set on its connected source."
          },
          "replays_retention": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Days to keep session replays. Accepts one of the retention periods your plan offers, or the value already set. A change applies to every application connected to the same source. Only an application that records session replays accepts it. `null` can't be sent."
          },
          "data_region": {
            "type": "string",
            "description": "The data region, `europe`, `us`, `singapore` or a dedicated cluster's name from [List data regions](/docs/errors/api/data-regions/). An application created with `correlate_with_source_id` uses that source's region, and a different region here is refused. Omit it to use the organization's default. Set on create only. Sending it on update is refused."
          },
          "correlate_with_source_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](/docs/logs/api/list-all-existing-sources/). Set when the application is created and can't be changed. Sending it on update returns 422, even with the same value."
          },
          "github_repository_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](/docs/errors/integrations/github/) first. Send an empty string to disconnect it. Can't be set together with `gitlab_repository_name`.",
            "examples": [
              "acme/web"
            ]
          },
          "gitlab_repository_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories. Send an empty string to disconnect it. Can't be set together with `github_repository_name`.",
            "examples": [
              "acme/web"
            ]
          },
          "code_mapping_stack_root": {
            "type": [
              "string",
              "null"
            ],
            "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.",
            "examples": [
              "/usr/src/app/"
            ]
          },
          "code_mapping_source_root": {
            "type": [
              "string",
              "null"
            ],
            "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under `code_mapping_stack_root` is looked up under this path in the linked repository.",
            "examples": [
              "apps/backend/"
            ]
          },
          "custom_bucket": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The bucket's name, taken from `endpoint`.",
                "readOnly": true
              },
              "endpoint": {
                "type": "string",
                "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set."
              },
              "access_key_id": {
                "type": "string",
                "description": "The access key ID to write to the bucket with."
              },
              "secret_access_key": {
                "type": "string",
                "description": "The secret access key for `access_key_id`. Write-only."
              },
              "keep_data_after_retention": {
                "type": "boolean",
                "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set."
              }
            },
            "description": "Your own S3-compatible bucket to archive data in, or `null` when the application uses Better Stack storage. Changing only `access_key_id` and `secret_access_key` rotates the bucket's key pair.",
            "examples": [
              {
                "name": "errors-archive",
                "endpoint": "https://s3.eu-central-1.amazonaws.com/errors-archive",
                "access_key_id": "AKIAIOSFODNN7EXAMPLE",
                "secret_access_key": "s3cr3t-placeholder",
                "keep_data_after_retention": false
              }
            ]
          },
          "vrl_transformation_exceptions": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program that groups incoming exceptions into errors. A new application starts with its platform's default grouping, which groups exceptions by error name and call stack on most platforms. Read more about [exception grouping](/docs/errors/using-the-product/exception-grouping/). Send an empty string to remove it. Send `null` to go back to the default grouping."
          },
          "vrl_transformation_replays": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to session replays during ingestion. Send an empty string to remove it."
          },
          "vrl_transformation_web_events": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to web events, such as page views and web vitals, during ingestion. A new application starts with the default web events program. Send an empty string to remove it. Send `null` to go back to the default web events program."
          },
          "vrl_transformation_logs": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to logs collected alongside errors, during ingestion. Read more about [VRL transformations](/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/). Send an empty string to remove it."
          },
          "vrl_transformation_spans": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to spans collected alongside errors, during ingestion. Send an empty string to remove it."
          },
          "spike_protection_baseline_multiplier": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The baseline multiplier of spike protection, from 0 to 100. Lower values start sampling sooner, and higher values allow bigger bursts before sampling starts. `null` while spike protection is off. Send `null` to turn spike protection off."
          },
          "ai_prompt_template": {
            "type": [
              "string",
              "null"
            ],
            "description": "The AI prompt used to fix this application's errors, or the default prompt when the application has none of its own. Send `null` to go back to the default prompt. A blank prompt is refused."
          },
          "js_tag_configuration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "collect": {
                "type": "object",
                "properties": {
                  "errors": {
                    "type": "boolean",
                    "description": "Collect frontend errors."
                  },
                  "web_vitals": {
                    "type": "boolean",
                    "description": "Record web vitals."
                  },
                  "console": {
                    "type": "boolean",
                    "description": "Collect `console.log` calls."
                  },
                  "memory": {
                    "type": "boolean",
                    "description": "Record JavaScript heap memory, in Chrome only."
                  },
                  "analytics": {
                    "type": "boolean",
                    "description": "Record website analytics."
                  },
                  "anonymous_events": {
                    "type": "boolean",
                    "description": "Capture anonymous user events."
                  },
                  "replays": {
                    "type": "boolean",
                    "description": "Record session replays."
                  },
                  "identified_events": {
                    "type": "boolean",
                    "description": "Capture identified user events."
                  },
                  "fingerprint": {
                    "type": "boolean",
                    "description": "Collect the browser fingerprint."
                  }
                },
                "description": "The features the JavaScript tag collects, each on or off."
              },
              "sampling": {
                "type": "object",
                "properties": {
                  "errors": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of errors sent, from 0 to 100."
                  },
                  "replays": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of sessions recorded as session replays, from 0 to 100."
                  },
                  "web_events": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of sessions that send web events, from 0 to 100."
                  }
                },
                "description": "Sampling rates of the JavaScript tag, as percentages."
              },
              "exclude_selectors": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CSS selectors of elements excluded from session replays and autocapture."
              },
              "mask_selectors": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CSS selectors of elements whose text session replays mask."
              },
              "shared_session_domains": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Your other domains to share sessions with."
              },
              "accept_incoming_sessions": {
                "type": "boolean",
                "description": "Continue sessions that arrive from your other domains."
              },
              "decorate_forms": {
                "type": "boolean",
                "description": "Also share sessions through forms that submit to your other domains."
              },
              "custom_config": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "JavaScript code the tag runs when it loads. Send `null` to remove it."
              },
              "session_timeout_minutes": {
                "type": "integer",
                "format": "int64",
                "description": "Session timeout in minutes, from 1 to 60."
              },
              "events_batch_interval_seconds": {
                "type": "integer",
                "format": "int64",
                "description": "Seconds between batches of events, at least 2."
              },
              "own_domain": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Your own subdomain to serve the tag from. The subdomain's CNAME record must point to `proxy.betterstack.net`. Send `null` to remove it."
              }
            },
            "description": "Settings of the JavaScript tag, as on the application's **Frontend** page. `null` for an application without a JavaScript tag. An update changes only the keys you send, inside `collect` and `sampling` too. Only `custom_config` and `own_domain` accept `null`.",
            "examples": [
              {
                "collect": {
                  "errors": true,
                  "web_vitals": true,
                  "console": false,
                  "memory": false,
                  "analytics": true,
                  "anonymous_events": true,
                  "replays": true,
                  "identified_events": true,
                  "fingerprint": false
                },
                "sampling": {
                  "errors": 100,
                  "replays": 10,
                  "web_events": 100
                },
                "exclude_selectors": [
                  ".private"
                ],
                "mask_selectors": [
                  ".card-number"
                ],
                "shared_session_domains": [
                  "shop.example.com"
                ],
                "accept_incoming_sessions": true,
                "decorate_forms": false,
                "custom_config": null,
                "session_timeout_minutes": 30,
                "events_batch_interval_seconds": 5,
                "own_domain": "rum.example.com"
              }
            ]
          }
        },
        "required": [
          "name",
          "platform"
        ]
      },
      "ApplicationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Application"
          }
        }
      },
      "ApplicationField": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The application_field's id."
          },
          "type": {
            "type": "string",
            "const": "source_field"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "description": "The field's path in the log or span, such as `error.message`.",
                "readOnly": true,
                "examples": [
                  "error.message"
                ]
              },
              "path_parts": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The path split into segments, each single-quoted, ready to pass to `JSONExtract` in a query, such as `'error', 'message'`.",
                "readOnly": true,
                "examples": [
                  [
                    "'error'",
                    "'message'"
                  ]
                ]
              },
              "type": {
                "type": "string",
                "description": "The field's data type, such as `String` or `Int64`.",
                "readOnly": true,
                "examples": [
                  "String"
                ]
              }
            }
          }
        }
      },
      "ApplicationFieldList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApplicationField"
            }
          }
        }
      },
      "ApplicationGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The application_group's id."
          },
          "type": {
            "type": "string",
            "const": "application_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Group name.",
                "examples": [
                  "production-apps"
                ]
              },
              "sort_index": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Display order among your application groups. Lower values come first.",
                "examples": [
                  1
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was created.",
                "readOnly": true,
                "examples": [
                  "2025-01-15T10:25:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the group was last updated.",
                "readOnly": true,
                "examples": [
                  "2025-01-15T10:30:00.000Z"
                ]
              },
              "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": [
                  "example-team"
                ]
              }
            }
          }
        }
      },
      "ApplicationGroupCreate": {
        "$ref": "#/components/schemas/ApplicationGroupCreateAttributes"
      },
      "ApplicationGroupCreateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "production-apps"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Display order among your application groups. Lower values come first.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "ApplicationGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ApplicationGroup"
          }
        }
      },
      "ApplicationGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApplicationGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ApplicationGroupUpdate": {
        "$ref": "#/components/schemas/ApplicationGroupUpdateAttributes"
      },
      "ApplicationGroupUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Group name.",
            "examples": [
              "production-apps"
            ]
          },
          "sort_index": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Display order among your application groups. Lower values come first.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "ApplicationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Application"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ApplicationMetric": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The application_metric's id."
          },
          "type": {
            "type": "string",
            "const": "source_metric"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Metric name.",
                "readOnly": true,
                "examples": [
                  "http_requests_total"
                ]
              },
              "type": {
                "type": "string",
                "description": "The data type the metric is stored as. Ingested metrics are `float64`. A user-defined metric has the type its definition sets.",
                "readOnly": true,
                "examples": [
                  "float64"
                ]
              },
              "origin": {
                "type": "string",
                "enum": [
                  "ingested",
                  "user-defined"
                ],
                "description": "Where the metric comes from.",
                "x-enum-descriptions": {
                  "ingested": "The metric was sent to Better Stack as a metric.",
                  "user-defined": "The metric is defined from the application's data."
                },
                "readOnly": true,
                "examples": [
                  "ingested"
                ]
              },
              "layout": {
                "type": "string",
                "enum": [
                  "row-based",
                  "column-based"
                ],
                "description": "How the metric is stored, which decides how to query it.",
                "x-enum-descriptions": {
                  "row-based": "The metric shares the `value_*` columns with other metrics and is selected by `name`.",
                  "column-based": "The metric has columns of its own."
                },
                "readOnly": true,
                "examples": [
                  "row-based"
                ]
              },
              "aggregations": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Aggregations stored for the metric, such as `avg`, `max` and `min`.",
                "readOnly": true,
                "examples": [
                  [
                    "avg",
                    "max",
                    "min"
                  ]
                ]
              },
              "data_points": {
                "type": "integer",
                "format": "int64",
                "description": "Data points received in the last 24 hours.",
                "readOnly": true,
                "examples": [
                  182400
                ]
              },
              "active_series": {
                "type": "integer",
                "format": "int64",
                "description": "Distinct series seen in the last 24 hours.",
                "readOnly": true,
                "examples": [
                  37
                ]
              },
              "sql_expression": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The SQL expression a user-defined metric is defined by. `null` for an ingested metric or one defined by `json_dot_notation`. Returned by get only.",
                "readOnly": true,
                "examples": [
                  "JSONExtract(raw, 'duration', 'Nullable(Float64)')"
                ]
              },
              "json_dot_notation": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The JSON field a user-defined metric is read from, when it's defined that way. Returned by get only.",
                "readOnly": true,
                "examples": [
                  "request.duration"
                ]
              },
              "query_examples": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Expressions to select the metric with in a metrics query. Returned by get only.",
                "readOnly": true,
                "examples": [
                  [
                    "avgMergeIf(value_avg, name = 'http_requests_total')",
                    "avgMergeIf(rate_avg, name = 'http_requests_total')   -- per-second rate, for counters"
                  ]
                ]
              },
              "labels": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                },
                "description": "Labels seen on an ingested metric in the last 24 hours. `null` for a user-defined metric. Returned by get only.",
                "readOnly": true,
                "examples": [
                  [
                    "host",
                    "method",
                    "status"
                  ]
                ]
              }
            }
          }
        }
      },
      "ApplicationMetricDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ApplicationMetric"
          }
        }
      },
      "ApplicationMetricList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApplicationMetric"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ApplicationUpdate": {
        "$ref": "#/components/schemas/ApplicationUpdateAttributes"
      },
      "ApplicationUpdateAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Application name."
          },
          "application_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the application group to put this application in, from [List application groups](/docs/errors/api/applications-groups/list/). On update, send `null` to move it out of its group."
          },
          "ingesting_paused": {
            "type": "boolean",
            "description": "Whether ingestion is paused for this application.",
            "default": false
          },
          "errors_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set. Defaults to your plan's default retention, or to a longer one your other applications already use.",
            "examples": [
              90
            ]
          },
          "web_events_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep web events. Accepts one of the retention periods your plan offers, or the value already set. A connected application's web events retention is set on its connected source."
          },
          "replays_retention": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Days to keep session replays. Accepts one of the retention periods your plan offers, or the value already set. A change applies to every application connected to the same source. Only an application that records session replays accepts it. `null` can't be sent."
          },
          "github_repository_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](/docs/errors/integrations/github/) first. Send an empty string to disconnect it. Can't be set together with `gitlab_repository_name`.",
            "examples": [
              "acme/web"
            ]
          },
          "gitlab_repository_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories. Send an empty string to disconnect it. Can't be set together with `github_repository_name`.",
            "examples": [
              "acme/web"
            ]
          },
          "code_mapping_stack_root": {
            "type": [
              "string",
              "null"
            ],
            "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.",
            "examples": [
              "/usr/src/app/"
            ]
          },
          "code_mapping_source_root": {
            "type": [
              "string",
              "null"
            ],
            "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under `code_mapping_stack_root` is looked up under this path in the linked repository.",
            "examples": [
              "apps/backend/"
            ]
          },
          "custom_bucket": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "access_key_id": {
                "type": "string",
                "description": "The access key ID to write to the bucket with."
              },
              "secret_access_key": {
                "type": "string",
                "description": "The secret access key for `access_key_id`. Write-only."
              }
            },
            "description": "Your own S3-compatible bucket to archive data in, or `null` when the application uses Better Stack storage. Changing only `access_key_id` and `secret_access_key` rotates the bucket's key pair.",
            "examples": [
              {
                "name": "errors-archive",
                "endpoint": "https://s3.eu-central-1.amazonaws.com/errors-archive",
                "access_key_id": "AKIAIOSFODNN7EXAMPLE",
                "secret_access_key": "s3cr3t-placeholder",
                "keep_data_after_retention": false
              }
            ]
          },
          "vrl_transformation_exceptions": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program that groups incoming exceptions into errors. A new application starts with its platform's default grouping, which groups exceptions by error name and call stack on most platforms. Read more about [exception grouping](/docs/errors/using-the-product/exception-grouping/). Send an empty string to remove it. Send `null` to go back to the default grouping."
          },
          "vrl_transformation_replays": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to session replays during ingestion. Send an empty string to remove it."
          },
          "vrl_transformation_web_events": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to web events, such as page views and web vitals, during ingestion. A new application starts with the default web events program. Send an empty string to remove it. Send `null` to go back to the default web events program."
          },
          "vrl_transformation_logs": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to logs collected alongside errors, during ingestion. Read more about [VRL transformations](/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/). Send an empty string to remove it."
          },
          "vrl_transformation_spans": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to spans collected alongside errors, during ingestion. Send an empty string to remove it."
          },
          "spike_protection_baseline_multiplier": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The baseline multiplier of spike protection, from 0 to 100. Lower values start sampling sooner, and higher values allow bigger bursts before sampling starts. `null` while spike protection is off. Send `null` to turn spike protection off."
          },
          "ai_prompt_template": {
            "type": [
              "string",
              "null"
            ],
            "description": "The AI prompt used to fix this application's errors, or the default prompt when the application has none of its own. Send `null` to go back to the default prompt. A blank prompt is refused."
          },
          "js_tag_configuration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "collect": {
                "type": "object",
                "properties": {
                  "errors": {
                    "type": "boolean",
                    "description": "Collect frontend errors."
                  },
                  "web_vitals": {
                    "type": "boolean",
                    "description": "Record web vitals."
                  },
                  "console": {
                    "type": "boolean",
                    "description": "Collect `console.log` calls."
                  },
                  "memory": {
                    "type": "boolean",
                    "description": "Record JavaScript heap memory, in Chrome only."
                  },
                  "analytics": {
                    "type": "boolean",
                    "description": "Record website analytics."
                  },
                  "anonymous_events": {
                    "type": "boolean",
                    "description": "Capture anonymous user events."
                  },
                  "replays": {
                    "type": "boolean",
                    "description": "Record session replays."
                  },
                  "identified_events": {
                    "type": "boolean",
                    "description": "Capture identified user events."
                  },
                  "fingerprint": {
                    "type": "boolean",
                    "description": "Collect the browser fingerprint."
                  }
                },
                "description": "The features the JavaScript tag collects, each on or off."
              },
              "sampling": {
                "type": "object",
                "properties": {
                  "errors": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of errors sent, from 0 to 100."
                  },
                  "replays": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of sessions recorded as session replays, from 0 to 100."
                  },
                  "web_events": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of sessions that send web events, from 0 to 100."
                  }
                },
                "description": "Sampling rates of the JavaScript tag, as percentages."
              },
              "exclude_selectors": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CSS selectors of elements excluded from session replays and autocapture."
              },
              "mask_selectors": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CSS selectors of elements whose text session replays mask."
              },
              "shared_session_domains": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Your other domains to share sessions with."
              },
              "accept_incoming_sessions": {
                "type": "boolean",
                "description": "Continue sessions that arrive from your other domains."
              },
              "decorate_forms": {
                "type": "boolean",
                "description": "Also share sessions through forms that submit to your other domains."
              },
              "custom_config": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "JavaScript code the tag runs when it loads. Send `null` to remove it."
              },
              "session_timeout_minutes": {
                "type": "integer",
                "format": "int64",
                "description": "Session timeout in minutes, from 1 to 60."
              },
              "events_batch_interval_seconds": {
                "type": "integer",
                "format": "int64",
                "description": "Seconds between batches of events, at least 2."
              },
              "own_domain": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Your own subdomain to serve the tag from. The subdomain's CNAME record must point to `proxy.betterstack.net`. Send `null` to remove it."
              }
            },
            "description": "Settings of the JavaScript tag, as on the application's **Frontend** page. `null` for an application without a JavaScript tag. An update changes only the keys you send, inside `collect` and `sampling` too. Only `custom_config` and `own_domain` accept `null`.",
            "examples": [
              {
                "collect": {
                  "errors": true,
                  "web_vitals": true,
                  "console": false,
                  "memory": false,
                  "analytics": true,
                  "anonymous_events": true,
                  "replays": true,
                  "identified_events": true,
                  "fingerprint": false
                },
                "sampling": {
                  "errors": 100,
                  "replays": 10,
                  "web_events": 100
                },
                "exclude_selectors": [
                  ".private"
                ],
                "mask_selectors": [
                  ".card-number"
                ],
                "shared_session_domains": [
                  "shop.example.com"
                ],
                "accept_incoming_sessions": true,
                "decorate_forms": false,
                "custom_config": null,
                "session_timeout_minutes": 30,
                "events_batch_interval_seconds": 5,
                "own_domain": "rum.example.com"
              }
            ]
          }
        }
      },
      "CLIResponse.errors.application.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Application name.",
            "nullable": false,
            "sensitive": false
          },
          "platform": {
            "type": "string",
            "enum": [
              "aiohttp_errors",
              "android_errors",
              "angular_errors",
              "asgi_errors",
              "asp_dot_net_core_errors",
              "asp_dot_net_errors",
              "astro_errors",
              "aws_lambda_dot_net_errors",
              "aws_lambda_node_errors",
              "aws_lambda_python_errors",
              "azure_functions_node_errors",
              "bottle_errors",
              "bun_errors",
              "celery_errors",
              "chalice_errors",
              "cli_errors",
              "cloudflare_pages_errors",
              "connect_errors",
              "dart_errors",
              "deno_errors",
              "django_errors",
              "dot_net_errors",
              "dot_net_http_errors",
              "dot_net_maui_errors",
              "echo_errors",
              "electron_errors",
              "elixir_errors",
              "ember_errors",
              "express_errors",
              "falcon_errors",
              "fastapi_errors",
              "fasthttp_errors",
              "fastify_errors",
              "fiber_errors",
              "flask_errors",
              "flutter_errors",
              "gatsby_errors",
              "gin_errors",
              "go_errors",
              "godot_errors",
              "google_cloud_function_dot_net_errors",
              "google_cloud_function_node_errors",
              "google_cloud_function_python_errors",
              "hapi_errors",
              "ios_errors",
              "iris_errors",
              "java_errors",
              "javascript_errors",
              "koa_errors",
              "kotlin_errors",
              "laravel_errors",
              "log4j_errors",
              "logback_errors",
              "macos_errors",
              "minidump_errors",
              "native_errors",
              "negroni_errors",
              "nest_js_errors",
              "next_js_errors",
              "node_errors",
              "nuxt_errors",
              "php_errors",
              "powershell_errors",
              "pyramid_errors",
              "python_errors",
              "qt_errors",
              "quart_errors",
              "rack_middleware_errors",
              "rails_errors",
              "react_errors",
              "react_native_errors",
              "react_router_framework_errors",
              "remix_errors",
              "rq_errors",
              "ruby_errors",
              "rust_errors",
              "sanic_errors",
              "serverless_python_errors",
              "solid_errors",
              "solidstart_errors",
              "spring_boot_errors",
              "spring_errors",
              "starlette_errors",
              "svelte_errors",
              "sveltekit_errors",
              "symfony_errors",
              "tanstack_start_react_errors",
              "tornado_errors",
              "tryton_errors",
              "unity_errors",
              "unreal_engine_errors",
              "vue_errors",
              "windows_forms_errors",
              "wpf_errors",
              "wsgi_errors"
            ],
            "description": "The SDK or framework the application reports errors from.",
            "nullable": false,
            "sensitive": false
          },
          "application_group_id": {
            "type": "string",
            "description": "The ID of the application group to put this application in, from [List application groups](/docs/errors/api/applications-groups/list/).",
            "nullable": true,
            "sensitive": false
          },
          "ingesting_paused": {
            "type": "boolean",
            "description": "Whether ingestion is paused for this application.",
            "nullable": false,
            "sensitive": false
          },
          "errors_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set.",
            "nullable": false,
            "sensitive": false
          },
          "web_events_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep web events. Accepts one of the retention periods your plan offers, or the value already set. A connected application's web events retention is set on its connected source.",
            "nullable": false,
            "sensitive": false
          },
          "replays_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep session replays. Accepts one of the retention periods your plan offers, or the value already set. A change applies to every application connected to the same source. Only an application that records session replays accepts it.",
            "nullable": true,
            "sensitive": false
          },
          "data_region": {
            "type": "string",
            "description": "The data region, `europe`, `us`, `singapore` or a dedicated cluster's name from [List data regions](/docs/errors/api/data-regions/). An application created with `correlate_with_source_id` uses that source's region, and a different region here is refused.",
            "nullable": false,
            "sensitive": false
          },
          "correlate_with_source_id": {
            "type": "string",
            "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](/docs/logs/api/list-all-existing-sources/).",
            "nullable": true,
            "sensitive": false
          },
          "github_repository_name": {
            "type": "string",
            "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](/docs/errors/integrations/github/) first.",
            "nullable": true,
            "sensitive": false
          },
          "gitlab_repository_name": {
            "type": "string",
            "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories.",
            "nullable": true,
            "sensitive": false
          },
          "code_mapping_stack_root": {
            "type": "string",
            "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.",
            "nullable": true,
            "sensitive": false
          },
          "code_mapping_source_root": {
            "type": "string",
            "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under `code_mapping_stack_root` is looked up under this path in the linked repository.",
            "nullable": true,
            "sensitive": false
          },
          "custom_bucket": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The bucket's name, taken from `endpoint`.",
                "readOnly": true
              },
              "endpoint": {
                "type": "string",
                "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set."
              },
              "access_key_id": {
                "type": "string",
                "description": "The access key ID to write to the bucket with."
              },
              "secret_access_key": {
                "type": "string",
                "description": "The secret access key for `access_key_id`. Write-only."
              },
              "keep_data_after_retention": {
                "type": "boolean",
                "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set."
              }
            },
            "description": "Your own S3-compatible bucket to archive data in, or `null` when the application uses Better Stack storage. Changing only `access_key_id` and `secret_access_key` rotates the bucket's key pair.",
            "nullable": true,
            "sensitive": false
          },
          "vrl_transformation_exceptions": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program that groups incoming exceptions into errors. A new application starts with its platform's default grouping, which groups exceptions by error name and call stack on most platforms. Read more about [exception grouping](/docs/errors/using-the-product/exception-grouping/).",
            "nullable": false,
            "sensitive": false
          },
          "vrl_transformation_replays": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to session replays during ingestion.",
            "nullable": false,
            "sensitive": false
          },
          "vrl_transformation_web_events": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to web events, such as page views and web vitals, during ingestion. A new application starts with the default web events program.",
            "nullable": false,
            "sensitive": false
          },
          "vrl_transformation_logs": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to logs collected alongside errors, during ingestion. Read more about [VRL transformations](/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).",
            "nullable": false,
            "sensitive": false
          },
          "vrl_transformation_spans": {
            "type": "string",
            "format": "vrl",
            "description": "The VRL program applied to spans collected alongside errors, during ingestion.",
            "nullable": false,
            "sensitive": false
          },
          "spike_protection_baseline_multiplier": {
            "type": "integer",
            "format": "int64",
            "description": "The baseline multiplier of spike protection, from 0 to 100. Lower values start sampling sooner, and higher values allow bigger bursts before sampling starts. `null` while spike protection is off.",
            "nullable": true,
            "sensitive": false
          },
          "ai_prompt_template": {
            "type": "string",
            "description": "The AI prompt used to fix this application's errors, or the default prompt when the application has none of its own.",
            "nullable": true,
            "sensitive": false
          },
          "js_tag_configuration": {
            "type": "object",
            "properties": {
              "collect": {
                "type": "object",
                "properties": {
                  "errors": {
                    "type": "boolean",
                    "description": "Collect frontend errors."
                  },
                  "web_vitals": {
                    "type": "boolean",
                    "description": "Record web vitals."
                  },
                  "console": {
                    "type": "boolean",
                    "description": "Collect `console.log` calls."
                  },
                  "memory": {
                    "type": "boolean",
                    "description": "Record JavaScript heap memory, in Chrome only."
                  },
                  "analytics": {
                    "type": "boolean",
                    "description": "Record website analytics."
                  },
                  "anonymous_events": {
                    "type": "boolean",
                    "description": "Capture anonymous user events."
                  },
                  "replays": {
                    "type": "boolean",
                    "description": "Record session replays."
                  },
                  "identified_events": {
                    "type": "boolean",
                    "description": "Capture identified user events."
                  },
                  "fingerprint": {
                    "type": "boolean",
                    "description": "Collect the browser fingerprint."
                  }
                },
                "description": "The features the JavaScript tag collects, each on or off."
              },
              "sampling": {
                "type": "object",
                "properties": {
                  "errors": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of errors sent, from 0 to 100."
                  },
                  "replays": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of sessions recorded as session replays, from 0 to 100."
                  },
                  "web_events": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Percentage of sessions that send web events, from 0 to 100."
                  }
                },
                "description": "Sampling rates of the JavaScript tag, as percentages."
              },
              "exclude_selectors": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CSS selectors of elements excluded from session replays and autocapture."
              },
              "mask_selectors": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CSS selectors of elements whose text session replays mask."
              },
              "shared_session_domains": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Your other domains to share sessions with."
              },
              "accept_incoming_sessions": {
                "type": "boolean",
                "description": "Continue sessions that arrive from your other domains."
              },
              "decorate_forms": {
                "type": "boolean",
                "description": "Also share sessions through forms that submit to your other domains."
              },
              "custom_config": {
                "type": "string",
                "description": "JavaScript code the tag runs when it loads.",
                "nullable": true
              },
              "session_timeout_minutes": {
                "type": "integer",
                "format": "int64",
                "description": "Session timeout in minutes, from 1 to 60."
              },
              "events_batch_interval_seconds": {
                "type": "integer",
                "format": "int64",
                "description": "Seconds between batches of events, at least 2."
              },
              "own_domain": {
                "type": "string",
                "description": "Your own subdomain to serve the tag from. The subdomain's CNAME record must point to `proxy.betterstack.net`.",
                "nullable": true
              }
            },
            "description": "Settings of the JavaScript tag, as on the application's **Frontend** page. `null` for an application without a JavaScript tag.",
            "nullable": true,
            "sensitive": false
          },
          "js_tag_own_domain_status": {
            "type": "string",
            "enum": [
              "checking",
              "missing",
              "invalid",
              "valid",
              null
            ],
            "description": "Whether the CNAME record of your own subdomain points to `proxy.betterstack.net`. `null` when `js_tag_configuration` has no `own_domain`.\n\n- `checking`: The CNAME record hasn't been checked yet since the subdomain last changed.\n- `missing`: The subdomain has no CNAME record.\n- `invalid`: The CNAME record doesn't point to `proxy.betterstack.net`.\n- `valid`: The CNAME record points to `proxy.betterstack.net`, so the tag is served from the subdomain.",
            "x-enum-descriptions": {
              "checking": "The CNAME record hasn't been checked yet since the subdomain last changed.",
              "missing": "The subdomain has no CNAME record.",
              "invalid": "The CNAME record doesn't point to `proxy.betterstack.net`.",
              "valid": "The CNAME record points to `proxy.betterstack.net`, so the tag is served from the subdomain."
            },
            "nullable": true,
            "sensitive": false
          },
          "source_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The kinds of data the application holds, such as `exceptions`, `logs`, `metrics`, `replays`, `spans` or `web_events`, sorted by name.",
            "nullable": false,
            "sensitive": false
          },
          "parent_source_id": {
            "type": "string",
            "description": "The ID of the telemetry source this application is connected to. `query_collections` names that source's collections. `null` when the application isn't connected to a source.",
            "nullable": true,
            "sensitive": false
          },
          "query_collections": {
            "type": "object",
            "properties": {
              "database": {
                "type": "string",
                "description": "The ClickHouse database that holds the application's data."
              },
              "table": {
                "type": "string",
                "description": "The table that holds the application's data, as `database.table`."
              },
              "recent": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                },
                "description": "The collections that hold the last 30 minutes of data, one for each kind of data the application holds, such as `exceptions` or `metrics`."
              },
              "s3": {
                "type": "string",
                "description": "The collection that holds older data of every kind."
              },
              "app_filter": {
                "type": "string",
                "description": "The condition that selects only this application's data in the collections of its connected source. `null` unless the application is connected to a source.",
                "nullable": true
              },
              "metrics_app_filter": {
                "type": "string",
                "description": "The condition that selects only this application's data in the metrics collection of its connected source. `null` unless the application is connected to a source.",
                "nullable": true
              }
            },
            "description": "The ClickHouse database, table and collections to use when you query the application's data.",
            "nullable": false,
            "sensitive": false
          },
          "token": {
            "type": "string",
            "description": "Ingestion token, the DSN to configure your SDK with.",
            "nullable": false,
            "sensitive": true
          },
          "js_tag_token": {
            "type": "string",
            "description": "The token of the browser tag, separate from `token`. Pass it as the `?t=` value when you load the `/b.js` browser tag. `null` for a platform without a browser tag.",
            "nullable": true,
            "sensitive": true
          },
          "table_name": {
            "type": "string",
            "description": "The application's table name, which identifies its data in SQL queries.",
            "nullable": false,
            "sensitive": false
          },
          "ingesting_host": {
            "type": "string",
            "description": "Host to send data to.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the application was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the application was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "The team that owns the application, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the application.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.application_field.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "path": {
            "type": "string",
            "description": "The field's path in the log or span, such as `error.message`.",
            "nullable": false,
            "sensitive": false
          },
          "path_parts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The path split into segments, each single-quoted, ready to pass to `JSONExtract` in a query, such as `'error', 'message'`.",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "description": "The field's data type, such as `String` or `Int64`.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.application_group.applications": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Application name.",
            "nullable": false,
            "sensitive": false
          },
          "platform": {
            "type": "string",
            "enum": [
              "aiohttp_errors",
              "android_errors",
              "angular_errors",
              "asgi_errors",
              "asp_dot_net_core_errors",
              "asp_dot_net_errors",
              "astro_errors",
              "aws_lambda_dot_net_errors",
              "aws_lambda_node_errors",
              "aws_lambda_python_errors",
              "azure_functions_node_errors",
              "bottle_errors",
              "bun_errors",
              "celery_errors",
              "chalice_errors",
              "cli_errors",
              "cloudflare_pages_errors",
              "connect_errors",
              "dart_errors",
              "deno_errors",
              "django_errors",
              "dot_net_errors",
              "dot_net_http_errors",
              "dot_net_maui_errors",
              "echo_errors",
              "electron_errors",
              "elixir_errors",
              "ember_errors",
              "express_errors",
              "falcon_errors",
              "fastapi_errors",
              "fasthttp_errors",
              "fastify_errors",
              "fiber_errors",
              "flask_errors",
              "flutter_errors",
              "gatsby_errors",
              "gin_errors",
              "go_errors",
              "godot_errors",
              "google_cloud_function_dot_net_errors",
              "google_cloud_function_node_errors",
              "google_cloud_function_python_errors",
              "hapi_errors",
              "ios_errors",
              "iris_errors",
              "java_errors",
              "javascript_errors",
              "koa_errors",
              "kotlin_errors",
              "laravel_errors",
              "log4j_errors",
              "logback_errors",
              "macos_errors",
              "minidump_errors",
              "native_errors",
              "negroni_errors",
              "nest_js_errors",
              "next_js_errors",
              "node_errors",
              "nuxt_errors",
              "php_errors",
              "powershell_errors",
              "pyramid_errors",
              "python_errors",
              "qt_errors",
              "quart_errors",
              "rack_middleware_errors",
              "rails_errors",
              "react_errors",
              "react_native_errors",
              "react_router_framework_errors",
              "remix_errors",
              "rq_errors",
              "ruby_errors",
              "rust_errors",
              "sanic_errors",
              "serverless_python_errors",
              "solid_errors",
              "solidstart_errors",
              "spring_boot_errors",
              "spring_errors",
              "starlette_errors",
              "svelte_errors",
              "sveltekit_errors",
              "symfony_errors",
              "tanstack_start_react_errors",
              "tornado_errors",
              "tryton_errors",
              "unity_errors",
              "unreal_engine_errors",
              "vue_errors",
              "windows_forms_errors",
              "wpf_errors",
              "wsgi_errors"
            ],
            "description": "The SDK or framework the application reports errors from.",
            "nullable": false,
            "sensitive": false
          },
          "application_group_id": {
            "type": "integer",
            "format": "int64",
            "description": "The ID of the application group to put this application in, from [List application groups](/docs/errors/api/applications-groups/list/).",
            "nullable": true,
            "sensitive": false
          },
          "ingesting_paused": {
            "type": "boolean",
            "description": "Whether ingestion is paused for this application.",
            "nullable": false,
            "sensitive": false
          },
          "errors_retention": {
            "type": "integer",
            "format": "int64",
            "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set.",
            "nullable": false,
            "sensitive": false
          },
          "data_region": {
            "type": "string",
            "description": "The data region, `europe`, `us`, `singapore` or a dedicated cluster's name from [List data regions](/docs/errors/api/data-regions/). An application created with `correlate_with_source_id` uses that source's region, and a different region here is refused.",
            "nullable": false,
            "sensitive": false
          },
          "correlate_with_source_id": {
            "type": "string",
            "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](/docs/logs/api/list-all-existing-sources/).",
            "nullable": true,
            "sensitive": false
          },
          "github_repository_name": {
            "type": "string",
            "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](/docs/errors/integrations/github/) first.",
            "nullable": true,
            "sensitive": false
          },
          "gitlab_repository_name": {
            "type": "string",
            "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories.",
            "nullable": true,
            "sensitive": false
          },
          "code_mapping_stack_root": {
            "type": "string",
            "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.",
            "nullable": true,
            "sensitive": false
          },
          "code_mapping_source_root": {
            "type": "string",
            "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under `code_mapping_stack_root` is looked up under this path in the linked repository.",
            "nullable": true,
            "sensitive": false
          },
          "custom_bucket": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The bucket's name, taken from `endpoint`.",
                "readOnly": true
              },
              "endpoint": {
                "type": "string",
                "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set."
              },
              "access_key_id": {
                "type": "string",
                "description": "The access key ID to write to the bucket with."
              },
              "secret_access_key": {
                "type": "string",
                "description": "The secret access key for `access_key_id`. Write-only."
              },
              "keep_data_after_retention": {
                "type": "boolean",
                "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set."
              }
            },
            "description": "Your own S3-compatible bucket to archive data in, or `null` when the application uses Better Stack storage. Changing only `access_key_id` and `secret_access_key` rotates the bucket's key pair.",
            "nullable": true,
            "sensitive": false
          },
          "token": {
            "type": "string",
            "description": "Ingestion token, the DSN to configure your SDK with.",
            "nullable": false,
            "sensitive": true
          },
          "js_tag_token": {
            "type": "string",
            "description": "The token of the browser tag, separate from `token`. Pass it as the `?t=` value when you load the `/b.js` browser tag. `null` for a platform without a browser tag.",
            "nullable": true,
            "sensitive": true
          },
          "table_name": {
            "type": "string",
            "description": "The application's table name, which identifies its data in SQL queries.",
            "nullable": false,
            "sensitive": false
          },
          "ingesting_host": {
            "type": "string",
            "description": "Host to send data to.",
            "nullable": false,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the application was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the application was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "integer",
            "format": "int64",
            "description": "The team that owns the application, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the application.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.application_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 your application 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 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.errors.error.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "application_id": {
            "type": "string",
            "description": "The application this error belongs to.",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "description": "The exception's class or type name. The `type` next to the record's `id` is always `error`.",
            "nullable": false,
            "sensitive": false
          },
          "message": {
            "type": "string",
            "description": "Exception message.",
            "nullable": false,
            "sensitive": false
          },
          "call_site_function": {
            "type": "string",
            "description": "Function the exception was raised in.",
            "nullable": true,
            "sensitive": false
          },
          "call_site_file": {
            "type": "string",
            "description": "Source file the exception was raised in.",
            "nullable": true,
            "sensitive": false
          },
          "environments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The environments the error occurred in, like `production`. List returns only those in the queried time range.",
            "nullable": false,
            "sensitive": false
          },
          "state": {
            "type": "string",
            "enum": [
              "unhandled",
              "unresolved",
              "reoccurred",
              "ignored",
              "resolved"
            ],
            "description": "Triage state.\n\n- `unhandled`: Nobody has triaged the error yet. An update can't set it.\n- `unresolved`: The error is open.\n- `reoccurred`: A resolved error occurred again, or an ignore for its next occurrences ran out. An update can't set it.\n- `ignored`: The error is ignored, forever or for its next occurrences.\n- `resolved`: Someone marked the error as resolved.",
            "x-enum-descriptions": {
              "unhandled": "Nobody has triaged the error yet. An update can't set it.",
              "unresolved": "The error is open.",
              "reoccurred": "A resolved error occurred again, or an ignore for its next occurrences ran out. An update can't set it.",
              "ignored": "The error is ignored, forever or for its next occurrences.",
              "resolved": "Someone marked the error as resolved."
            },
            "nullable": false,
            "sensitive": false
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the error first occurred.",
            "nullable": true,
            "sensitive": false
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the error last occurred.",
            "nullable": true,
            "sensitive": false
          },
          "occurrences": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences in the queried time range. Returned by list only.",
            "nullable": true,
            "sensitive": false
          },
          "affected_users": {
            "type": "integer",
            "format": "int64",
            "description": "Number of distinct affected users in the queried time range. Returned by list only.",
            "nullable": true,
            "sensitive": false
          },
          "resolved_in_release_id": {
            "type": "string",
            "description": "The ID of the release this error was marked resolved in.",
            "nullable": true,
            "sensitive": false
          },
          "ignored_until_count": {
            "type": "integer",
            "format": "int64",
            "description": "The occurrence count at which the ignore ends. `null` when there is no countdown, because the error is ignored forever or isn't ignored.",
            "nullable": true,
            "sensitive": false
          },
          "linked_issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The link's ID."
                },
                "integration_id": {
                  "type": "string",
                  "description": "The ID of the tracker integration the issue lives in."
                },
                "integration_type": {
                  "type": "string",
                  "description": "The tracker, one of `linear`, `jira` or `gitlab`."
                },
                "external_id": {
                  "type": "string",
                  "description": "The issue's ID in the tracker."
                },
                "label": {
                  "type": "string",
                  "description": "The issue's label in the tracker, like `ENG-123`."
                },
                "url": {
                  "type": "string",
                  "description": "Link to the issue in the tracker."
                },
                "operation": {
                  "type": "string",
                  "description": "How the issue was linked, one of `created_automatically`, `created_manually` or `linked_manually`."
                }
              }
            },
            "description": "The issues linked to the error in a connected tracker, such as Linear or Jira. Returned by get and update only.",
            "nullable": false,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "Link to this error's page in the Better Stack web app.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.error_comment.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "content": {
            "type": "string",
            "description": "Comment text, in Markdown. A mention is a `**M_START**{...}**M_END**` block whose `id` is the team member's user ID, such as `**M_START**{\"id\":\"u123\"}**M_END**`. To mention someone, send that block with their `u123` ID or e-mail as `id`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/).",
            "nullable": false,
            "sensitive": false
          },
          "plaintext_content": {
            "type": "string",
            "description": "The comment as plain text, with each mention written as `@name`.",
            "nullable": false,
            "sensitive": false
          },
          "author_name": {
            "type": "string",
            "description": "Who wrote the comment. A comment created with a team or global API token is signed `Comment added using API`.",
            "nullable": false,
            "sensitive": false
          },
          "user_email": {
            "type": "string",
            "description": "The author's e-mail, when a Better Stack user wrote the comment.",
            "nullable": true,
            "sensitive": false
          },
          "posted_via": {
            "type": "string",
            "enum": [
              "mcp",
              "cli",
              "ai_sre",
              "ai_engineer",
              "api",
              "slack",
              "linear",
              "email_reply",
              "microsoft_teams",
              "policy_step",
              null
            ],
            "description": "How the comment was posted. `null` when it was written in the web app.\n\n- `mcp`: Posted through the Better Stack MCP server.\n- `cli`: A signed-in person posted it with the Better Stack CLI.\n- `ai_sre`: AI SRE posted it for a person.\n- `ai_engineer`: AI Engineer posted it for a person.\n- `api`: Posted with an API token that has no user of its own.\n- `slack`: Someone replied in the error's Slack thread.\n- `linear`: Synced from a comment in Linear on the issue linked to the error.\n- `email_reply`: Arrived as a reply to an e-mail.\n- `microsoft_teams`: Arrived from Microsoft Teams.\n- `policy_step`: An escalation policy step posted it.",
            "x-enum-descriptions": {
              "mcp": "Posted through the Better Stack MCP server.",
              "cli": "A signed-in person posted it with the Better Stack CLI.",
              "ai_sre": "AI SRE posted it for a person.",
              "ai_engineer": "AI Engineer posted it for a person.",
              "api": "Posted with an API token that has no user of its own.",
              "slack": "Someone replied in the error's Slack thread.",
              "linear": "Synced from a comment in Linear on the issue linked to the error.",
              "email_reply": "Arrived as a reply to an e-mail.",
              "microsoft_teams": "Arrived from Microsoft Teams.",
              "policy_step": "An escalation policy step posted it."
            },
            "nullable": true,
            "sensitive": false
          },
          "linear_issue": {
            "type": "string",
            "description": "The Linear issue a synced comment came from, such as `ENG-123`.",
            "nullable": true,
            "sensitive": false
          },
          "event": {
            "type": "string",
            "description": "The occurrence the comment was left on, as its event ID, or as its timestamp when the occurrence has no ID. `null` for a comment on the error itself.",
            "nullable": true,
            "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.errors.error_issue.create": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "integration_id": {
            "type": "string",
            "description": "The ID of the Linear or Jira integration the issue is linked through.",
            "nullable": false,
            "sensitive": false
          },
          "integration_type": {
            "type": "string",
            "description": "The tracker, such as `linear` or `jira`.",
            "nullable": false,
            "sensitive": false
          },
          "external_id": {
            "type": "string",
            "description": "The issue's ID in the tracker.",
            "nullable": false,
            "sensitive": false
          },
          "label": {
            "type": "string",
            "description": "The issue's identifier in the tracker, such as `ENG-123` or `PROJ-45`.",
            "nullable": false,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "Link to the issue in the tracker.",
            "nullable": false,
            "sensitive": false
          },
          "operation": {
            "type": "string",
            "enum": [
              "created_automatically",
              "created_manually",
              "linked_manually"
            ],
            "description": "How the link was made.\n\n- `created_automatically`: The issue was created automatically for a new error.\n- `created_manually`: The issue was created on request.\n- `linked_manually`: An existing issue was linked.",
            "x-enum-descriptions": {
              "created_automatically": "The issue was created automatically for a new error.",
              "created_manually": "The issue was created on request.",
              "linked_manually": "An existing issue was linked."
            },
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.errors_github_integration.create": {
        "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",
              "github"
            ],
            "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, except for GitHub.\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, except for GitHub.",
              "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 expires, 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`, and always `null` for GitHub.",
            "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.errors.errors_github_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "account_login": {
            "type": "string",
            "description": "The GitHub user or organization the Better Stack GitHub App is installed on.",
            "nullable": false,
            "sensitive": false
          },
          "account_type": {
            "type": "string",
            "enum": [
              "Organization",
              "User"
            ],
            "description": "Whether the GitHub account is an organization or a user.",
            "nullable": false,
            "sensitive": false
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "suspended"
            ],
            "description": "The state of the GitHub App on this account.\n\n- `active`: The GitHub App works on this account.\n- `suspended`: The account's owner suspended the GitHub App on GitHub.",
            "x-enum-descriptions": {
              "active": "The GitHub App works on this account.",
              "suspended": "The account's owner suspended the GitHub App on GitHub."
            },
            "nullable": false,
            "sensitive": false
          },
          "can_create_pull_requests": {
            "type": "boolean",
            "description": "Whether the GitHub App can push branches and open pull requests. The value is `false` until the account's owner accepts the updated GitHub App permissions on GitHub.",
            "nullable": false,
            "sensitive": false
          },
          "settings_url": {
            "type": "string",
            "description": "The GitHub page where the account's owner picks which repositories the GitHub App can access.",
            "nullable": false,
            "sensitive": false
          },
          "repositories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "format": "int64",
                  "description": "ID of the repository."
                },
                "full_name": {
                  "type": "string",
                  "description": "The repository's owner and name, such as `acme/api`.",
                  "readOnly": true
                },
                "default_branch": {
                  "type": "string",
                  "description": "The repository's default branch.",
                  "readOnly": true
                }
              }
            },
            "description": "The repositories of this GitHub account the team uses.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "ID of the team the GitHub account is connected to, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team the GitHub account is connected to.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.errors_jira_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "applications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "application_id": {
                  "type": "integer",
                  "format": "int64",
                  "description": "ID of an Error tracking application."
                },
                "environments": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Environments whose errors the integration files work items for. Empty means every environment."
                }
              }
            },
            "description": "Applications this integration files work items for, each with its environments. Empty means any application. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Jira work item for the error, we comment on it instead."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`. When this integration already filed a Jira work item for the error, we comment on it instead."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users. When this integration already filed a Jira work item for the error, we comment on it instead."
              }
            },
            "description": "Which events file a Jira work item, as under **Automatic work item creation** in the web app. An update changes only the toggles sent.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "nullable": false,
            "sensitive": false
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to get a work item. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": false,
            "sensitive": false
          },
          "jira_site_url": {
            "type": "string",
            "description": "Jira site the integration is connected to.",
            "nullable": true,
            "sensitive": false
          },
          "jira_project_key": {
            "type": "string",
            "description": "The key of the Jira space work items are created in.",
            "nullable": false,
            "sensitive": false
          },
          "jira_issue_type_id": {
            "type": "string",
            "description": "The ID of the Jira work type new work items get.",
            "nullable": false,
            "sensitive": false
          },
          "jira_fields": {
            "type": "object",
            "additionalProperties": true,
            "description": "More Jira fields set on new work items, keyed by Jira field ID. 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": "ID of the team that owns the integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.errors_linear_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "applications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "application_id": {
                  "type": "integer",
                  "format": "int64",
                  "description": "ID of an Error tracking application."
                },
                "environments": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Environments whose errors the integration files issues for. Empty means every environment."
                }
              }
            },
            "description": "Applications this integration files issues for, each with its environments. Empty means any application. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Linear issue for the error, we comment on it instead."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`. When this integration already filed a Linear issue for the error, we comment on it instead."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users. When this integration already filed a Linear issue for the error, we comment on it instead."
              }
            },
            "description": "Which events file a Linear issue, as under **Automatic issue creation** in the web app. An update changes only the toggles sent.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "nullable": false,
            "sensitive": false
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to get an issue. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "nullable": false,
            "sensitive": false
          },
          "linear_team_id": {
            "type": "string",
            "description": "The ID of the Linear team issues are created in. To get the Linear IDs, pick them once on the integration's **Configure** page and read them back via [Get a Linear integration](/docs/errors/api/integrations/linear/get/). Changing the team clears `linear_status_id`, `linear_resolved_status_id`, `linear_project_id` and `linear_label_ids` unless the same request sets them. `null` clears it.",
            "nullable": true,
            "sensitive": false
          },
          "linear_assignee_id": {
            "type": "string",
            "description": "The ID of the Linear user new issues are assigned to. `null` clears it. Reads return an empty string when none is set.",
            "nullable": true,
            "sensitive": false
          },
          "linear_label_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The IDs of the Linear labels added to new issues. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "linear_priority": {
            "type": "string",
            "enum": [
              "no_priority",
              "urgent",
              "high",
              "medium",
              "low"
            ],
            "description": "Priority of new issues.",
            "nullable": false,
            "sensitive": false
          },
          "linear_status_id": {
            "type": "string",
            "description": "The ID of the Linear status new issues get. Empty means the Linear team's default status. `null` clears it. Reads return an empty string when none is set.",
            "nullable": true,
            "sensitive": false
          },
          "linear_project_id": {
            "type": "string",
            "description": "The ID of the Linear project new issues are added to. `null` clears it. Reads return an empty string when none is set.",
            "nullable": true,
            "sensitive": false
          },
          "auto_resolve": {
            "type": "boolean",
            "description": "Resolve the error when its Linear issue is done, and move the issue to `linear_resolved_status_id` when the error is resolved. Moving the issue works only when `linear_resolved_status_id` is set.",
            "nullable": false,
            "sensitive": false
          },
          "linear_resolved_status_id": {
            "type": "string",
            "description": "The ID of the Linear status an issue moves to when its error is resolved. `null` clears it. Reads return an empty string when none is set.",
            "nullable": true,
            "sensitive": false
          },
          "auto_reopen": {
            "type": "boolean",
            "description": "Reopen the Linear issue when its error is automatically re-opened, moving the issue back to `linear_status_id`. Works only when `linear_status_id` and `linear_resolved_status_id` are both set.",
            "nullable": false,
            "sensitive": false
          },
          "sync_comments": {
            "type": "boolean",
            "description": "Share comments between errors and their linked Linear issues.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "ID of the team that owns the integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.errors_microsoft_teams_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "spike_protection": {
                "type": "boolean",
                "description": "Spike protection starts sampling exceptions."
              },
              "new_releases": {
                "type": "boolean",
                "description": "New release is observed."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users."
              }
            },
            "description": "Which events post to the channels, as under **Notify me when** in the web app. An update changes only the toggles sent.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "nullable": false,
            "sensitive": false
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The `new_releases` and `spike_protection` notifications and state changes are posted whatever the tags.",
            "nullable": false,
            "sensitive": false
          },
          "microsoft_teams_team_name": {
            "type": "string",
            "description": "Microsoft Teams team the Better Stack app was added to.",
            "nullable": true,
            "sensitive": false
          },
          "microsoft_teams_channel_name": {
            "type": "string",
            "description": "Channel the app was added to, which gets every error while `routes` is empty.",
            "nullable": true,
            "sensitive": false
          },
          "routes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "applications": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "application_id": {
                        "type": "integer",
                        "format": "int64",
                        "description": "The ID of the application whose errors the route sends."
                      },
                      "environments": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "The environments whose errors the route sends, such as `production`. Empty means every environment."
                      }
                    }
                  },
                  "description": "Applications whose errors this route sends, each with its environments. Empty means any application."
                },
                "channels": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Microsoft Teams channel ID of a standard channel in the team the app was added to."
                      },
                      "name": {
                        "type": "string",
                        "description": "Channel name, as Teams lists it.",
                        "readOnly": true
                      }
                    }
                  },
                  "description": "Channels the route posts to. At least one."
                }
              }
            },
            "description": "Which applications' errors go to which channels. An application that isn't in any route gets no messages, unless one of the routes has no applications. Empty means everything goes to the channel the app was added to. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "ID of the team that owns the integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.errors_slack_integration.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "applications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "application_id": {
                  "type": "integer",
                  "format": "int64",
                  "description": "ID of an Error tracking application."
                },
                "environments": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Environments whose errors the integration posts. Empty means every environment."
                }
              }
            },
            "description": "Applications whose errors this integration posts, each with its environments. Empty means any application. An update replaces the whole list.",
            "nullable": false,
            "sensitive": false
          },
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "spike_protection": {
                "type": "boolean",
                "description": "Spike protection starts sampling exceptions."
              },
              "new_releases": {
                "type": "boolean",
                "description": "New release is observed."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users."
              }
            },
            "description": "Which events post to the channel, as under **Notify me when** in the web app. An update changes only the toggles sent.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "nullable": false,
            "sensitive": false
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "nullable": false,
            "sensitive": false
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The `new_releases` and `spike_protection` notifications and state changes are posted whatever the tags.",
            "nullable": false,
            "sensitive": false
          },
          "slack_team_name": {
            "type": "string",
            "description": "The Slack workspace the channel is in.",
            "nullable": false,
            "sensitive": false
          },
          "slack_channel_name": {
            "type": "string",
            "description": "Slack channel errors are posted to.",
            "nullable": false,
            "sensitive": false
          },
          "post_updates": {
            "type": "string",
            "enum": [
              "single_channel",
              "thread_based"
            ],
            "description": "How updates are posted to Slack.\n\n- `single_channel`: Posts every update to the channel.\n- `thread_based`: Posts each new error to the channel and its updates in a thread.",
            "x-enum-descriptions": {
              "single_channel": "Posts every update to the channel.",
              "thread_based": "Posts each new error to the channel and its updates in a thread."
            },
            "nullable": false,
            "sensitive": false
          },
          "broadcast_updates": {
            "type": "boolean",
            "description": "With `thread_based`, also send important updates to the channel. Important updates are resolved and re-opened errors, spikes, and errors reaching an occurrence milestone.",
            "nullable": false,
            "sensitive": false
          },
          "ai_sre_on_mention": {
            "type": "boolean",
            "description": "Start an AI SRE conversation when Better Stack is tagged in the channel.",
            "nullable": false,
            "sensitive": false
          },
          "team_id": {
            "type": "string",
            "pattern": "^t[1-9][0-9]*$",
            "description": "ID of the team that owns the integration, such as `t123`.",
            "nullable": false,
            "sensitive": false
          },
          "team_name": {
            "type": "string",
            "description": "Name of the team that owns the integration.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.ignored_error.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "pattern": {
            "type": "string",
            "description": "The pattern of the ignored error, the same as the error's `id`.",
            "nullable": false,
            "sensitive": false
          },
          "comment": {
            "type": "string",
            "description": "A note to recognize the error by, usually its type and message when it was ignored. `null` when there's none.",
            "nullable": true,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.release.create": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Release version or commit ref.",
            "nullable": false,
            "sensitive": false
          },
          "application_id": {
            "type": "integer",
            "format": "int64",
            "description": "The application the release was registered on.",
            "nullable": false,
            "sensitive": false
          },
          "environments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Environments this release was deployed to. Registering only a version, without `applications`, adds the environment to that version's release on every application that has one.",
            "nullable": false,
            "sensitive": false
          },
          "origin": {
            "type": "string",
            "enum": [
              "detected",
              "reported"
            ],
            "description": "How the release first became known.\n\n- `detected`: The release was found in the first event that carries its version.\n- `reported`: The release was registered through this API, MCP or the Sentry CLI.",
            "x-enum-descriptions": {
              "detected": "The release was found in the first event that carries its version.",
              "reported": "The release was registered through this API, MCP or the Sentry CLI."
            },
            "nullable": false,
            "sensitive": false
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the release was registered or first seen in an event, whichever came first. Later registrations and events don't change it.",
            "nullable": false,
            "sensitive": false
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When an event last carried the release. A registered release shows its registration time until its first event. `null` for a release with no event since this field was added.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the release was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the release was last updated.",
            "nullable": false,
            "sensitive": false
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "ID of the registered release.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.release.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "version": {
            "type": "string",
            "description": "Release version or commit ref.",
            "nullable": false,
            "sensitive": false
          },
          "application_id": {
            "type": "integer",
            "format": "int64",
            "description": "The application this release belongs to.",
            "nullable": false,
            "sensitive": false
          },
          "environments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Environments this release was deployed to. Registering only a version, without `applications`, adds the environment to that version's release on every application that has one.",
            "nullable": false,
            "sensitive": false
          },
          "origin": {
            "type": "string",
            "enum": [
              "detected",
              "reported"
            ],
            "description": "How the release first became known.\n\n- `detected`: The release was found in the first event that carries its version.\n- `reported`: The release was registered through this API, MCP or the Sentry CLI.",
            "x-enum-descriptions": {
              "detected": "The release was found in the first event that carries its version.",
              "reported": "The release was registered through this API, MCP or the Sentry CLI."
            },
            "nullable": false,
            "sensitive": false
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the release was registered or first seen in an event, whichever came first. Later registrations and events don't change it.",
            "nullable": false,
            "sensitive": false
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When an event last carried the release. A registered release shows its registration time until its first event. `null` for a release with no event since this field was added.",
            "nullable": true,
            "sensitive": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the release was created.",
            "nullable": false,
            "sensitive": false
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the release was last updated.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.rum_group.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "application_id": {
            "type": "string",
            "description": "The application the group was seen in.",
            "nullable": false,
            "sensitive": false
          },
          "group_id": {
            "type": "string",
            "description": "The group's ID as the application sent it. `null` for a group sent with a name only.",
            "nullable": true,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The group's latest name. `null` when the application sent none.",
            "nullable": true,
            "sensitive": false
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was first seen in the time range.",
            "nullable": true,
            "sensitive": false
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group was last seen in the time range.",
            "nullable": true,
            "sensitive": false
          },
          "user_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of the group's users seen in the time range.",
            "nullable": false,
            "sensitive": false
          },
          "session_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of the group's sessions with a session replay in the time range.",
            "nullable": false,
            "sensitive": false
          },
          "error_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of errors the group's users ran into in the time range.",
            "nullable": false,
            "sensitive": false
          },
          "replay_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of session replays recorded for the group in the time range.",
            "nullable": false,
            "sensitive": false
          },
          "users_url": {
            "type": "string",
            "description": "Link to the Users page in the Better Stack web app, filtered to this group.",
            "nullable": false,
            "sensitive": false
          },
          "sessions_url": {
            "type": "string",
            "description": "Link to the Sessions page in the Better Stack web app, filtered to this group.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.rum_session.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "application_id": {
            "type": "string",
            "description": "The application the session was recorded in.",
            "nullable": false,
            "sensitive": false
          },
          "user_identifier": {
            "type": "string",
            "description": "The identifier of the session's signed-in user, the same as the user's `id` in RUM users. `null` for an anonymous visitor.",
            "nullable": true,
            "sensitive": false
          },
          "user_name": {
            "type": "string",
            "description": "The signed-in user's `email`, or their `username` or IP address when there's no e-mail, as the Sessions page shows it. `null` when the application sent none of them.",
            "nullable": true,
            "sensitive": false
          },
          "group_id": {
            "type": "string",
            "description": "The ID of the user's group. `null` when the application sent none.",
            "nullable": true,
            "sensitive": false
          },
          "group_name": {
            "type": "string",
            "description": "The name of the user's group. `null` when the application sent none.",
            "nullable": true,
            "sensitive": false
          },
          "country": {
            "type": "string",
            "description": "The country the session came from. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "city": {
            "type": "string",
            "description": "The city the session came from. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "browser": {
            "type": "string",
            "description": "The browser. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "os": {
            "type": "string",
            "description": "The operating system. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "user_agent": {
            "type": "string",
            "description": "The browser's user agent, as the replay recorded it. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "first_url": {
            "type": "string",
            "description": "The first page of the session. `null` when no page was recorded.",
            "nullable": true,
            "sensitive": false
          },
          "last_url": {
            "type": "string",
            "description": "The last page of the session. `null` when no page was recorded.",
            "nullable": true,
            "sensitive": false
          },
          "page_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of distinct pages visited.",
            "nullable": false,
            "sensitive": false
          },
          "click_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of clicks the session replay recorded.",
            "nullable": false,
            "sensitive": false
          },
          "error_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of errors the session ran into.",
            "nullable": false,
            "sensitive": false
          },
          "replay_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of session replays recorded in the session.",
            "nullable": false,
            "sensitive": false
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the session started.",
            "nullable": true,
            "sensitive": false
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the session was last active.",
            "nullable": true,
            "sensitive": false
          },
          "duration_seconds": {
            "type": "number",
            "description": "Seconds from the session's start to its last activity.",
            "nullable": true,
            "sensitive": false
          },
          "state": {
            "type": "string",
            "enum": [
              "unresolved",
              "resolved"
            ],
            "description": "Whether the session was resolved on the Sessions page.\n\n- `unresolved`: Nobody has resolved the session.\n- `resolved`: Someone resolved the session on the Sessions page.",
            "x-enum-descriptions": {
              "unresolved": "Nobody has resolved the session.",
              "resolved": "Someone resolved the session on the Sessions page."
            },
            "nullable": false,
            "sensitive": false
          },
          "url": {
            "type": "string",
            "description": "Link to the session's page in the Better Stack web app, where its replay plays.",
            "nullable": false,
            "sensitive": false
          },
          "replays": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The replay's ID."
                },
                "first_seen_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the replay's recording started."
                },
                "last_seen_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the replay last recorded activity."
                }
              }
            },
            "description": "The session's replays, oldest first. Returned by get only.",
            "nullable": false,
            "sensitive": false
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the entry happened."
                },
                "type": {
                  "type": "string",
                  "description": "One of `page_view`, `click`, `event`, `error` or `trace`. An `event` is any other web event, such as `session-start` or a custom event."
                },
                "name": {
                  "type": "string",
                  "description": "The web event's name, the error's type, or the name of the trace's first span."
                },
                "url": {
                  "type": "string",
                  "description": "The page the entry happened on."
                },
                "target": {
                  "type": "string",
                  "description": "For a click, the element clicked, such as `button#buy`."
                },
                "error_id": {
                  "type": "string",
                  "description": "For an error, the error's ID. Get the error's details with [Get an error](/docs/errors/api/errors/get/)."
                },
                "message": {
                  "type": "string",
                  "description": "For an error, its message."
                },
                "trace_id": {
                  "type": "string",
                  "description": "For a trace, its ID."
                },
                "span_count": {
                  "type": "integer",
                  "format": "int64",
                  "description": "For a trace, the number of its spans from this session."
                },
                "duration_ms": {
                  "type": "number",
                  "description": "For a trace, milliseconds from its first span's start to its last span's end."
                }
              }
            },
            "description": "What happened in the session, oldest first. Holds page views, clicks, other web events, errors and traces, at most 500 entries. Returned by get only.",
            "nullable": false,
            "sensitive": false
          },
          "timeline_truncated": {
            "type": "boolean",
            "description": "Whether the session holds more than the 500 timeline entries returned. Returned by get only.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.rum_session_segment.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "replay_id": {
            "type": "string",
            "description": "The replay the segment belongs to.",
            "nullable": false,
            "sensitive": false
          },
          "segment_id": {
            "type": "integer",
            "format": "int64",
            "description": "The segment's number in its replay, from 0.",
            "nullable": false,
            "sensitive": false
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "When the segment was recorded.",
            "nullable": true,
            "sensitive": false
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The segment's rrweb events, in the format the rrweb player reads.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "CLIResponse.errors.rum_user.list": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "type": {
            "type": "string",
            "nullable": false,
            "sensitive": false
          },
          "application_id": {
            "type": "string",
            "description": "The application the user was seen in.",
            "nullable": false,
            "sensitive": false
          },
          "name": {
            "type": "string",
            "description": "The user's latest `email`, or their `username` or IP address when there's no e-mail, as the Users page shows it. `null` when the application sent none of them.",
            "nullable": true,
            "sensitive": false
          },
          "group_id": {
            "type": "string",
            "description": "The ID of the user's latest group, such as their company. `null` when the application sent none.",
            "nullable": true,
            "sensitive": false
          },
          "group_name": {
            "type": "string",
            "description": "The name of the user's latest group. `null` when the application sent none.",
            "nullable": true,
            "sensitive": false
          },
          "country": {
            "type": "string",
            "description": "The country the user was last seen in. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "city": {
            "type": "string",
            "description": "The city the user was last seen in. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "referrer": {
            "type": "string",
            "description": "Where the user's latest visit came from. `null` when it isn't known.",
            "nullable": true,
            "sensitive": false
          },
          "utm": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The `utm_` campaign parameters of the user's latest visit, keyed without the prefix as `source`, `medium`, `campaign`, `term` and `content`. Holds only the ones sent.",
            "nullable": false,
            "sensitive": false
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the user was first seen in the time range.",
            "nullable": true,
            "sensitive": false
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the user was last seen in the time range.",
            "nullable": true,
            "sensitive": false
          },
          "error_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of errors the user ran into in the time range.",
            "nullable": false,
            "sensitive": false
          },
          "session_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of the user's sessions with a session replay in the time range.",
            "nullable": false,
            "sensitive": false
          },
          "sessions_url": {
            "type": "string",
            "description": "Link to the Sessions page in the Better Stack web app, filtered to this user.",
            "nullable": false,
            "sensitive": false
          }
        }
      },
      "DataRegion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The data_region's id."
          },
          "type": {
            "type": "string",
            "const": "data_region"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The region's or cluster's name, such as `Europe` or `United States`.",
                "readOnly": true,
                "examples": [
                  "Europe"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "region",
                  "dedicated_cluster"
                ],
                "description": "The kind of place the data is stored in.",
                "x-enum-descriptions": {
                  "region": "A shared data region.",
                  "dedicated_cluster": "A cluster only your organization stores data on."
                },
                "readOnly": true,
                "examples": [
                  "region"
                ]
              }
            }
          }
        }
      },
      "DataRegionList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataRegion"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The error's id."
          },
          "type": {
            "type": "string",
            "const": "error"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "application_id": {
                "type": "string",
                "description": "The application this error belongs to.",
                "readOnly": true,
                "examples": [
                  "123"
                ]
              },
              "type": {
                "type": "string",
                "description": "The exception's class or type name. The `type` next to the record's `id` is always `error`.",
                "readOnly": true,
                "examples": [
                  "TypeError"
                ]
              },
              "message": {
                "type": "string",
                "description": "Exception message.",
                "readOnly": true,
                "examples": [
                  "Cannot read properties of undefined (reading 'id')"
                ]
              },
              "call_site_function": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Function the exception was raised in.",
                "readOnly": true,
                "examples": [
                  "renderCart"
                ]
              },
              "call_site_file": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Source file the exception was raised in.",
                "readOnly": true,
                "examples": [
                  "app/javascript/cart.js"
                ]
              },
              "environments": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The environments the error occurred in, like `production`. List returns only those in the queried time range.",
                "readOnly": true,
                "examples": [
                  [
                    "production"
                  ]
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "unhandled",
                  "unresolved",
                  "reoccurred",
                  "ignored",
                  "resolved"
                ],
                "description": "Triage state.",
                "x-enum-descriptions": {
                  "unhandled": "Nobody has triaged the error yet. An update can't set it.",
                  "unresolved": "The error is open.",
                  "reoccurred": "A resolved error occurred again, or an ignore for its next occurrences ran out. An update can't set it.",
                  "ignored": "The error is ignored, forever or for its next occurrences.",
                  "resolved": "Someone marked the error as resolved."
                },
                "examples": [
                  "unresolved"
                ]
              },
              "first_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the error first occurred.",
                "readOnly": true,
                "examples": [
                  "2026-11-10T08:12:44Z"
                ]
              },
              "last_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the error last occurred.",
                "readOnly": true,
                "examples": [
                  "2026-11-16T07:58:02Z"
                ]
              },
              "occurrences": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Number of occurrences in the queried time range. Returned by list only.",
                "readOnly": true,
                "examples": [
                  182
                ]
              },
              "affected_users": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Number of distinct affected users in the queried time range. Returned by list only.",
                "readOnly": true,
                "examples": [
                  37
                ]
              },
              "resolved_in_release_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the release this error was marked resolved in.",
                "readOnly": true,
                "examples": [
                  "456"
                ]
              },
              "ignored_until_count": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "The occurrence count at which the ignore ends. `null` when there is no countdown, because the error is ignored forever or isn't ignored.",
                "readOnly": true,
                "examples": [
                  192
                ]
              },
              "linked_issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The link's ID."
                    },
                    "integration_id": {
                      "type": "string",
                      "description": "The ID of the tracker integration the issue lives in."
                    },
                    "integration_type": {
                      "type": "string",
                      "description": "The tracker, one of `linear`, `jira` or `gitlab`."
                    },
                    "external_id": {
                      "type": "string",
                      "description": "The issue's ID in the tracker."
                    },
                    "label": {
                      "type": "string",
                      "description": "The issue's label in the tracker, like `ENG-123`."
                    },
                    "url": {
                      "type": "string",
                      "description": "Link to the issue in the tracker."
                    },
                    "operation": {
                      "type": "string",
                      "description": "How the issue was linked, one of `created_automatically`, `created_manually` or `linked_manually`."
                    }
                  }
                },
                "description": "The issues linked to the error in a connected tracker, such as Linear or Jira. Returned by get and update only.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "id": "42",
                      "integration_id": "7",
                      "integration_type": "linear",
                      "external_id": "ENG-123",
                      "label": "ENG-123",
                      "url": "https://linear.app/example/issue/ENG-123",
                      "operation": "linked_manually"
                    }
                  ]
                ]
              },
              "url": {
                "type": "string",
                "description": "Link to this error's page in the Better Stack web app.",
                "readOnly": true,
                "examples": [
                  "https://errors.betterstack.com/team/t12345/errors/6f1c2b9a8e4d7f3012ab45cd?s=123"
                ]
              }
            }
          }
        }
      },
      "ErrorComment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The error_comment's id."
          },
          "type": {
            "type": "string",
            "const": "error_comment"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "content": {
                "type": "string",
                "description": "Comment text, in Markdown. A mention is a `**M_START**{...}**M_END**` block whose `id` is the team member's user ID, such as `**M_START**{\"id\":\"u123\"}**M_END**`. To mention someone, send that block with their `u123` ID or e-mail as `id`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/).",
                "examples": [
                  "Rolled back the 14:05 deploy. The error stopped."
                ]
              },
              "plaintext_content": {
                "type": "string",
                "description": "The comment as plain text, with each mention written as `@name`.",
                "readOnly": true,
                "examples": [
                  "Rolled back the 14:05 deploy. The error stopped."
                ]
              },
              "author_name": {
                "type": "string",
                "description": "Who wrote the comment. A comment created with a team or global API token is signed `Comment added using API`.",
                "readOnly": true,
                "examples": [
                  "Jane Smith"
                ]
              },
              "user_email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The author's e-mail, when a Better Stack user wrote the comment.",
                "readOnly": true,
                "examples": [
                  "jane@example.com"
                ]
              },
              "posted_via": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "mcp",
                  "cli",
                  "ai_sre",
                  "ai_engineer",
                  "api",
                  "slack",
                  "linear",
                  "email_reply",
                  "microsoft_teams",
                  "policy_step",
                  null
                ],
                "description": "How the comment was posted. `null` when it was written in the web app.",
                "x-enum-descriptions": {
                  "mcp": "Posted through the Better Stack MCP server.",
                  "cli": "A signed-in person posted it with the Better Stack CLI.",
                  "ai_sre": "AI SRE posted it for a person.",
                  "ai_engineer": "AI Engineer posted it for a person.",
                  "api": "Posted with an API token that has no user of its own.",
                  "slack": "Someone replied in the error's Slack thread.",
                  "linear": "Synced from a comment in Linear on the issue linked to the error.",
                  "email_reply": "Arrived as a reply to an e-mail.",
                  "microsoft_teams": "Arrived from Microsoft Teams.",
                  "policy_step": "An escalation policy step posted it."
                },
                "readOnly": true
              },
              "linear_issue": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The Linear issue a synced comment came from, such as `ENG-123`.",
                "readOnly": true
              },
              "event": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The occurrence the comment was left on, as its event ID, or as its timestamp when the occurrence has no ID. `null` for a comment on the error itself.",
                "readOnly": true
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the comment was created.",
                "readOnly": true,
                "examples": [
                  "2026-11-16T07:58:02Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the comment was last updated.",
                "readOnly": true,
                "examples": [
                  "2026-11-16T07:58:02Z"
                ]
              }
            }
          }
        }
      },
      "ErrorCommentCreate": {
        "$ref": "#/components/schemas/ErrorCommentCreateAttributes"
      },
      "ErrorCommentCreateAttributes": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "Comment text, in Markdown. A mention is a `**M_START**{...}**M_END**` block whose `id` is the team member's user ID, such as `**M_START**{\"id\":\"u123\"}**M_END**`. To mention someone, send that block with their `u123` ID or e-mail as `id`. Get the user ID via [List team members](/docs/uptime/api/team-members/list/).",
            "examples": [
              "Rolled back the 14:05 deploy. The error stopped."
            ]
          }
        },
        "required": [
          "content"
        ]
      },
      "ErrorCommentDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorComment"
          }
        }
      },
      "ErrorCommentList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorComment"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ErrorDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "ErrorIssue": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The error_issue's id."
          },
          "type": {
            "type": "string",
            "const": "error_issue"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "integration_id": {
                "type": "string",
                "description": "The ID of the Linear or Jira integration the issue is linked through.",
                "readOnly": true,
                "examples": [
                  "7"
                ]
              },
              "integration_type": {
                "type": "string",
                "description": "The tracker, such as `linear` or `jira`.",
                "readOnly": true,
                "examples": [
                  "linear"
                ]
              },
              "external_id": {
                "type": "string",
                "description": "The issue's ID in the tracker.",
                "readOnly": true,
                "examples": [
                  "ENG-123"
                ]
              },
              "label": {
                "type": "string",
                "description": "The issue's identifier in the tracker, such as `ENG-123` or `PROJ-45`.",
                "readOnly": true,
                "examples": [
                  "ENG-123"
                ]
              },
              "url": {
                "type": "string",
                "description": "Link to the issue in the tracker.",
                "readOnly": true,
                "examples": [
                  "https://linear.app/example/issue/ENG-123"
                ]
              },
              "operation": {
                "type": "string",
                "enum": [
                  "created_automatically",
                  "created_manually",
                  "linked_manually"
                ],
                "description": "How the link was made.",
                "x-enum-descriptions": {
                  "created_automatically": "The issue was created automatically for a new error.",
                  "created_manually": "The issue was created on request.",
                  "linked_manually": "An existing issue was linked."
                },
                "readOnly": true,
                "examples": [
                  "linked_manually"
                ]
              }
            }
          }
        }
      },
      "ErrorIssueDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorIssue"
          }
        }
      },
      "ErrorList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ErrorUpdate": {
        "$ref": "#/components/schemas/ErrorUpdateAttributes"
      },
      "ErrorUpdateAttributes": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "unhandled",
              "unresolved",
              "reoccurred",
              "ignored",
              "resolved"
            ],
            "description": "Triage state.",
            "x-enum-descriptions": {
              "unhandled": "Nobody has triaged the error yet. An update can't set it.",
              "unresolved": "The error is open.",
              "reoccurred": "A resolved error occurred again, or an ignore for its next occurrences ran out. An update can't set it.",
              "ignored": "The error is ignored, forever or for its next occurrences.",
              "resolved": "Someone marked the error as resolved."
            },
            "examples": [
              "unresolved"
            ]
          },
          "ignore_next_count": {
            "type": "integer",
            "format": "int64",
            "description": "With `state` set to `ignored`, ignore only the next 1, 10, 100 or 1000 occurrences instead of ignoring the error forever. Needs the error's current occurrence count to be available, otherwise the update is refused with 422.",
            "writeOnly": true,
            "examples": [
              10
            ]
          },
          "notify_every_exception": {
            "type": "boolean",
            "description": "Whether to notify on every occurrence of this error, not only when it first appears or reoccurs.",
            "writeOnly": true,
            "examples": [
              true
            ]
          },
          "resolve_in_release": {
            "type": "string",
            "enum": [
              "current"
            ],
            "description": "Set to `current` to resolve the error in the application's current release, the highest version seen in the last week. Use it with `state` set to `resolved`. The error reopens only if it occurs in a newer release. Needs at least one recorded release.",
            "writeOnly": true,
            "examples": [
              "current"
            ]
          }
        },
        "required": [
          "state"
        ]
      },
      "ErrorsGitHubIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The errors_github_integration's id."
          },
          "type": {
            "type": "string",
            "const": "github_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "account_login": {
                "type": "string",
                "description": "The GitHub user or organization the Better Stack GitHub App is installed on.",
                "readOnly": true,
                "examples": [
                  "acme"
                ]
              },
              "account_type": {
                "type": "string",
                "enum": [
                  "Organization",
                  "User"
                ],
                "description": "Whether the GitHub account is an organization or a user.",
                "readOnly": true,
                "examples": [
                  "Organization"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "suspended"
                ],
                "description": "The state of the GitHub App on this account.",
                "x-enum-descriptions": {
                  "active": "The GitHub App works on this account.",
                  "suspended": "The account's owner suspended the GitHub App on GitHub."
                },
                "readOnly": true,
                "examples": [
                  "active"
                ]
              },
              "can_create_pull_requests": {
                "type": "boolean",
                "description": "Whether the GitHub App can push branches and open pull requests. The value is `false` until the account's owner accepts the updated GitHub App permissions on GitHub.",
                "readOnly": true,
                "examples": [
                  true
                ]
              },
              "settings_url": {
                "type": "string",
                "description": "The GitHub page where the account's owner picks which repositories the GitHub App can access.",
                "readOnly": true,
                "examples": [
                  "https://github.com/organizations/acme/settings/installations/12345678"
                ]
              },
              "repositories": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "format": "int64",
                      "description": "ID of the repository."
                    },
                    "full_name": {
                      "type": "string",
                      "description": "The repository's owner and name, such as `acme/api`.",
                      "readOnly": true
                    },
                    "default_branch": {
                      "type": "string",
                      "description": "The repository's default branch.",
                      "readOnly": true
                    }
                  }
                },
                "description": "The repositories of this GitHub account the team uses.",
                "examples": [
                  [
                    {
                      "id": 89949,
                      "full_name": "acme/api",
                      "default_branch": "main"
                    }
                  ]
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "ID of the team the GitHub account is connected to, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123456"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team the GitHub account is connected to.",
                "readOnly": true,
                "examples": [
                  "My team"
                ]
              }
            }
          }
        }
      },
      "ErrorsGitHubIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorsGitHubIntegration"
          }
        }
      },
      "ErrorsGitHubIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorsGitHubIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ErrorsGitHubIntegrationUpdate": {
        "$ref": "#/components/schemas/ErrorsGitHubIntegrationUpdateAttributes"
      },
      "ErrorsGitHubIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "repositories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the repository."
                },
                "full_name": {
                  "type": "string",
                  "description": "The repository's owner and name, such as `acme/api`.",
                  "readOnly": true
                },
                "default_branch": {
                  "type": "string",
                  "description": "The repository's default branch.",
                  "readOnly": true
                }
              }
            },
            "description": "The repositories of this GitHub account the team uses. Send the repositories to keep, each by its `id`. The others are removed from the team. To add one, connect GitHub again.",
            "examples": [
              [
                {
                  "id": "89949",
                  "full_name": "acme/api",
                  "default_branch": "main"
                }
              ]
            ]
          }
        }
      },
      "ErrorsIntegrationAuthorization": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The errors_integration_authorization's id."
          },
          "type": {
            "type": "string",
            "const": "integration_authorization"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "integration_type": {
                "type": "string",
                "enum": [
                  "slack",
                  "linear",
                  "jira",
                  "github"
                ],
                "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, except for GitHub.",
                  "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=errors"
                ]
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the link expires, 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`, and always `null` for GitHub.",
                "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"
                ]
              }
            }
          }
        }
      },
      "ErrorsIntegrationAuthorizationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorsIntegrationAuthorization"
          }
        }
      },
      "ErrorsJiraIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The errors_jira_integration's id."
          },
          "type": {
            "type": "string",
            "const": "jira_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "applications": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "application_id": {
                      "type": "integer",
                      "format": "int64",
                      "description": "ID of an Error tracking application."
                    },
                    "environments": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Environments whose errors the integration files work items for. Empty means every environment."
                    }
                  }
                },
                "description": "Applications this integration files work items for, each with its environments. Empty means any application. An update replaces the whole list.",
                "examples": [
                  [
                    {
                      "application_id": 1234,
                      "environments": []
                    }
                  ]
                ]
              },
              "notifications": {
                "type": "object",
                "properties": {
                  "spikes": {
                    "type": "boolean",
                    "description": "Application has a spike in errors."
                  },
                  "new_errors": {
                    "type": "boolean",
                    "description": "New error occurs."
                  },
                  "automatically_reopened": {
                    "type": "boolean",
                    "description": "Error is automatically re-opened."
                  },
                  "occurrence_milestones": {
                    "type": "boolean",
                    "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Jira work item for the error, we comment on it instead."
                  },
                  "occurrence_threshold": {
                    "type": "boolean",
                    "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`. When this integration already filed a Jira work item for the error, we comment on it instead."
                  },
                  "affected_users_threshold": {
                    "type": "boolean",
                    "description": "Error reaches `affected_users_threshold_count` affected users. When this integration already filed a Jira work item for the error, we comment on it instead."
                  }
                },
                "description": "Which events file a Jira work item, as under **Automatic work item creation** in the web app. An update changes only the toggles sent.",
                "examples": [
                  {
                    "spikes": false,
                    "new_errors": false,
                    "automatically_reopened": false,
                    "occurrence_milestones": false,
                    "occurrence_threshold": false,
                    "affected_users_threshold": true
                  }
                ]
              },
              "occurrence_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  10
                ]
              },
              "occurrence_threshold_interval": {
                "type": "string",
                "enum": [
                  "minute",
                  "hour",
                  "day",
                  "week"
                ],
                "description": "Time window for `notifications.occurrence_threshold`.",
                "default": "minute",
                "examples": [
                  "minute"
                ]
              },
              "affected_users_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  25
                ]
              },
              "tag_filter": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tag": {
                      "type": "string",
                      "description": "Exception tag, such as environment or level."
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Matches any of these values."
                    }
                  }
                },
                "description": "The tags an error must have to get a work item. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.",
                "examples": [
                  [
                    {
                      "tag": "environment",
                      "values": [
                        "production"
                      ]
                    }
                  ]
                ]
              },
              "name": {
                "type": "string",
                "description": "Integration name.",
                "examples": [
                  "Ops errors"
                ]
              },
              "jira_site_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Jira site the integration is connected to.",
                "readOnly": true,
                "examples": [
                  "https://example.atlassian.net"
                ]
              },
              "jira_project_key": {
                "type": "string",
                "description": "The key of the Jira space work items are created in.",
                "examples": [
                  "OPS"
                ]
              },
              "jira_issue_type_id": {
                "type": "string",
                "description": "The ID of the Jira work type new work items get.",
                "examples": [
                  "10002"
                ]
              },
              "jira_fields": {
                "type": "object",
                "additionalProperties": true,
                "description": "More Jira fields set on new work items, keyed by Jira field ID. 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`.",
                "examples": [
                  {
                    "labels": [
                      {
                        "label": "errors",
                        "value": "errors"
                      }
                    ]
                  }
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "ID of the team that owns the integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123456"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the integration.",
                "readOnly": true,
                "examples": [
                  "My team"
                ]
              }
            }
          }
        }
      },
      "ErrorsJiraIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorsJiraIntegration"
          }
        }
      },
      "ErrorsJiraIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorsJiraIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ErrorsJiraIntegrationUpdate": {
        "$ref": "#/components/schemas/ErrorsJiraIntegrationUpdateAttributes"
      },
      "ErrorsJiraIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "applications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "application_id": {
                  "type": "string",
                  "description": "ID of an Error tracking application."
                },
                "environments": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Environments whose errors the integration files work items for. Empty means every environment."
                }
              }
            },
            "description": "Applications this integration files work items for, each with its environments. Empty means any application. An update replaces the whole list.",
            "examples": [
              [
                {
                  "application_id": "1234",
                  "environments": []
                }
              ]
            ]
          },
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Jira work item for the error, we comment on it instead."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`. When this integration already filed a Jira work item for the error, we comment on it instead."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users. When this integration already filed a Jira work item for the error, we comment on it instead."
              }
            },
            "description": "Which events file a Jira work item, as under **Automatic work item creation** in the web app. An update changes only the toggles sent.",
            "examples": [
              {
                "spikes": false,
                "new_errors": false,
                "automatically_reopened": false,
                "occurrence_milestones": false,
                "occurrence_threshold": false,
                "affected_users_threshold": true
              }
            ]
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              10
            ]
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "default": "minute",
            "examples": [
              "minute"
            ]
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              25
            ]
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to get a work item. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.",
            "examples": [
              [
                {
                  "tag": "environment",
                  "values": [
                    "production"
                  ]
                }
              ]
            ]
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "examples": [
              "Ops errors"
            ]
          },
          "jira_project_key": {
            "type": "string",
            "description": "The key of the Jira space work items are created in. When you change it, send `jira_issue_type_id` in the same request. A change also clears `jira_fields` unless you send them too.",
            "examples": [
              "OPS"
            ]
          },
          "jira_issue_type_id": {
            "type": "string",
            "description": "The ID of the Jira work type new work items get.",
            "examples": [
              "10002"
            ]
          },
          "jira_fields": {
            "type": "object",
            "additionalProperties": true,
            "description": "More Jira fields set on new work items, keyed by Jira field ID. 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`.",
            "examples": [
              {
                "labels": [
                  {
                    "label": "errors",
                    "value": "errors"
                  }
                ]
              }
            ]
          }
        }
      },
      "ErrorsLinearIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The errors_linear_integration's id."
          },
          "type": {
            "type": "string",
            "const": "linear_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "applications": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "application_id": {
                      "type": "integer",
                      "format": "int64",
                      "description": "ID of an Error tracking application."
                    },
                    "environments": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Environments whose errors the integration files issues for. Empty means every environment."
                    }
                  }
                },
                "description": "Applications this integration files issues for, each with its environments. Empty means any application. An update replaces the whole list.",
                "examples": [
                  [
                    {
                      "application_id": 1234,
                      "environments": [
                        "production"
                      ]
                    }
                  ]
                ]
              },
              "notifications": {
                "type": "object",
                "properties": {
                  "spikes": {
                    "type": "boolean",
                    "description": "Application has a spike in errors."
                  },
                  "new_errors": {
                    "type": "boolean",
                    "description": "New error occurs."
                  },
                  "automatically_reopened": {
                    "type": "boolean",
                    "description": "Error is automatically re-opened."
                  },
                  "occurrence_milestones": {
                    "type": "boolean",
                    "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Linear issue for the error, we comment on it instead."
                  },
                  "occurrence_threshold": {
                    "type": "boolean",
                    "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`. When this integration already filed a Linear issue for the error, we comment on it instead."
                  },
                  "affected_users_threshold": {
                    "type": "boolean",
                    "description": "Error reaches `affected_users_threshold_count` affected users. When this integration already filed a Linear issue for the error, we comment on it instead."
                  }
                },
                "description": "Which events file a Linear issue, as under **Automatic issue creation** in the web app. An update changes only the toggles sent.",
                "examples": [
                  {
                    "spikes": false,
                    "new_errors": true,
                    "automatically_reopened": true,
                    "occurrence_milestones": false,
                    "occurrence_threshold": true,
                    "affected_users_threshold": false
                  }
                ]
              },
              "occurrence_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  100
                ]
              },
              "occurrence_threshold_interval": {
                "type": "string",
                "enum": [
                  "minute",
                  "hour",
                  "day",
                  "week"
                ],
                "description": "Time window for `notifications.occurrence_threshold`.",
                "default": "minute",
                "examples": [
                  "hour"
                ]
              },
              "affected_users_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  10
                ]
              },
              "tag_filter": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tag": {
                      "type": "string",
                      "description": "Exception tag, such as environment or level."
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Matches any of these values."
                    }
                  }
                },
                "description": "The tags an error must have to get an issue. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.",
                "examples": [
                  [
                    {
                      "tag": "environment",
                      "values": [
                        "production"
                      ]
                    }
                  ]
                ]
              },
              "name": {
                "type": "string",
                "description": "Integration name.",
                "examples": [
                  "Platform errors"
                ]
              },
              "linear_team_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the Linear team issues are created in. To get the Linear IDs, pick them once on the integration's **Configure** page and read them back via [Get a Linear integration](/docs/errors/api/integrations/linear/get/). Changing the team clears `linear_status_id`, `linear_resolved_status_id`, `linear_project_id` and `linear_label_ids` unless the same request sets them. `null` clears it.",
                "examples": [
                  "9cfb482a-81e3-4154-b5b9-2c805e70a02d"
                ]
              },
              "linear_assignee_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the Linear user new issues are assigned to. `null` clears it. Reads return an empty string when none is set.",
                "examples": [
                  "7a1e2c4d-9f3b-4b6a-8d2e-5c1f0a9b3e47"
                ]
              },
              "linear_label_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The IDs of the Linear labels added to new issues. An update replaces the whole list.",
                "default": [],
                "examples": [
                  [
                    "0b8f3c2e-6a1d-4f97-b5e4-3c2a1d0e9f8b"
                  ]
                ]
              },
              "linear_priority": {
                "type": "string",
                "enum": [
                  "no_priority",
                  "urgent",
                  "high",
                  "medium",
                  "low"
                ],
                "description": "Priority of new issues.",
                "examples": [
                  "high"
                ]
              },
              "linear_status_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the Linear status new issues get. Empty means the Linear team's default status. `null` clears it. Reads return an empty string when none is set.",
                "examples": [
                  "5c3a1f8e-2b7d-4e61-9a0c-7d4b8e2f1a36"
                ]
              },
              "linear_project_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the Linear project new issues are added to. `null` clears it. Reads return an empty string when none is set.",
                "examples": [
                  "c4e8a2f6-3d1b-4a7e-9c5f-2b8d6e0a1f93"
                ]
              },
              "auto_resolve": {
                "type": "boolean",
                "description": "Resolve the error when its Linear issue is done, and move the issue to `linear_resolved_status_id` when the error is resolved. Moving the issue works only when `linear_resolved_status_id` is set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "linear_resolved_status_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the Linear status an issue moves to when its error is resolved. `null` clears it. Reads return an empty string when none is set.",
                "examples": [
                  "e2d4f6a8-1b3c-4d5e-8f70-9a1b2c3d4e5f"
                ]
              },
              "auto_reopen": {
                "type": "boolean",
                "description": "Reopen the Linear issue when its error is automatically re-opened, moving the issue back to `linear_status_id`. Works only when `linear_status_id` and `linear_resolved_status_id` are both set.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "sync_comments": {
                "type": "boolean",
                "description": "Share comments between errors and their linked Linear issues.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "ID of the team that owns the integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123456"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the integration.",
                "readOnly": true,
                "examples": [
                  "My team"
                ]
              }
            }
          }
        }
      },
      "ErrorsLinearIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorsLinearIntegration"
          }
        }
      },
      "ErrorsLinearIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorsLinearIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ErrorsLinearIntegrationUpdate": {
        "$ref": "#/components/schemas/ErrorsLinearIntegrationUpdateAttributes"
      },
      "ErrorsLinearIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "applications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "application_id": {
                  "type": "string",
                  "description": "ID of an Error tracking application."
                },
                "environments": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Environments whose errors the integration files issues for. Empty means every environment."
                }
              }
            },
            "description": "Applications this integration files issues for, each with its environments. Empty means any application. An update replaces the whole list.",
            "examples": [
              [
                {
                  "application_id": "1234",
                  "environments": [
                    "production"
                  ]
                }
              ]
            ]
          },
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Linear issue for the error, we comment on it instead."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`. When this integration already filed a Linear issue for the error, we comment on it instead."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users. When this integration already filed a Linear issue for the error, we comment on it instead."
              }
            },
            "description": "Which events file a Linear issue, as under **Automatic issue creation** in the web app. An update changes only the toggles sent.",
            "examples": [
              {
                "spikes": false,
                "new_errors": true,
                "automatically_reopened": true,
                "occurrence_milestones": false,
                "occurrence_threshold": true,
                "affected_users_threshold": false
              }
            ]
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              100
            ]
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "default": "minute",
            "examples": [
              "hour"
            ]
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              10
            ]
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to get an issue. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.",
            "examples": [
              [
                {
                  "tag": "environment",
                  "values": [
                    "production"
                  ]
                }
              ]
            ]
          },
          "name": {
            "type": "string",
            "description": "Integration name.",
            "examples": [
              "Platform errors"
            ]
          },
          "linear_team_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the Linear team issues are created in. To get the Linear IDs, pick them once on the integration's **Configure** page and read them back via [Get a Linear integration](/docs/errors/api/integrations/linear/get/). Changing the team clears `linear_status_id`, `linear_resolved_status_id`, `linear_project_id` and `linear_label_ids` unless the same request sets them. `null` clears it.",
            "examples": [
              "9cfb482a-81e3-4154-b5b9-2c805e70a02d"
            ]
          },
          "linear_assignee_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the Linear user new issues are assigned to. `null` clears it. Reads return an empty string when none is set.",
            "examples": [
              "7a1e2c4d-9f3b-4b6a-8d2e-5c1f0a9b3e47"
            ]
          },
          "linear_label_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The IDs of the Linear labels added to new issues. An update replaces the whole list.",
            "default": [],
            "examples": [
              [
                "0b8f3c2e-6a1d-4f97-b5e4-3c2a1d0e9f8b"
              ]
            ]
          },
          "linear_priority": {
            "type": "string",
            "enum": [
              "no_priority",
              "urgent",
              "high",
              "medium",
              "low"
            ],
            "description": "Priority of new issues.",
            "examples": [
              "high"
            ]
          },
          "linear_status_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the Linear status new issues get. Empty means the Linear team's default status. `null` clears it. Reads return an empty string when none is set.",
            "examples": [
              "5c3a1f8e-2b7d-4e61-9a0c-7d4b8e2f1a36"
            ]
          },
          "linear_project_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the Linear project new issues are added to. `null` clears it. Reads return an empty string when none is set.",
            "examples": [
              "c4e8a2f6-3d1b-4a7e-9c5f-2b8d6e0a1f93"
            ]
          },
          "auto_resolve": {
            "type": "boolean",
            "description": "Resolve the error when its Linear issue is done, and move the issue to `linear_resolved_status_id` when the error is resolved. Moving the issue works only when `linear_resolved_status_id` is set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "linear_resolved_status_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the Linear status an issue moves to when its error is resolved. `null` clears it. Reads return an empty string when none is set.",
            "examples": [
              "e2d4f6a8-1b3c-4d5e-8f70-9a1b2c3d4e5f"
            ]
          },
          "auto_reopen": {
            "type": "boolean",
            "description": "Reopen the Linear issue when its error is automatically re-opened, moving the issue back to `linear_status_id`. Works only when `linear_status_id` and `linear_resolved_status_id` are both set.",
            "default": true,
            "examples": [
              true
            ]
          },
          "sync_comments": {
            "type": "boolean",
            "description": "Share comments between errors and their linked Linear issues.",
            "default": true,
            "examples": [
              true
            ]
          }
        }
      },
      "ErrorsMicrosoftTeamsIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The errors_microsoft_teams_integration's id."
          },
          "type": {
            "type": "string",
            "const": "microsoft_teams_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "notifications": {
                "type": "object",
                "properties": {
                  "spikes": {
                    "type": "boolean",
                    "description": "Application has a spike in errors."
                  },
                  "spike_protection": {
                    "type": "boolean",
                    "description": "Spike protection starts sampling exceptions."
                  },
                  "new_releases": {
                    "type": "boolean",
                    "description": "New release is observed."
                  },
                  "new_errors": {
                    "type": "boolean",
                    "description": "New error occurs."
                  },
                  "occurrence_milestones": {
                    "type": "boolean",
                    "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on."
                  },
                  "occurrence_threshold": {
                    "type": "boolean",
                    "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`."
                  },
                  "automatically_reopened": {
                    "type": "boolean",
                    "description": "Error is automatically re-opened."
                  },
                  "affected_users_threshold": {
                    "type": "boolean",
                    "description": "Error reaches `affected_users_threshold_count` affected users."
                  }
                },
                "description": "Which events post to the channels, as under **Notify me when** in the web app. An update changes only the toggles sent.",
                "examples": [
                  {
                    "spikes": true,
                    "spike_protection": true,
                    "new_releases": true,
                    "new_errors": true,
                    "occurrence_milestones": true,
                    "occurrence_threshold": false,
                    "automatically_reopened": false,
                    "affected_users_threshold": false
                  }
                ]
              },
              "occurrence_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  10
                ]
              },
              "occurrence_threshold_interval": {
                "type": "string",
                "enum": [
                  "minute",
                  "hour",
                  "day",
                  "week"
                ],
                "description": "Time window for `notifications.occurrence_threshold`.",
                "default": "minute",
                "examples": [
                  "minute"
                ]
              },
              "affected_users_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  10
                ]
              },
              "tag_filter": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tag": {
                      "type": "string",
                      "description": "Exception tag, such as environment or level."
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Matches any of these values."
                    }
                  }
                },
                "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The `new_releases` and `spike_protection` notifications and state changes are posted whatever the tags.",
                "examples": [
                  [
                    {
                      "tag": "level",
                      "values": [
                        "error",
                        "fatal"
                      ]
                    }
                  ]
                ]
              },
              "microsoft_teams_team_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Microsoft Teams team the Better Stack app was added to.",
                "readOnly": true,
                "examples": [
                  "Engineering"
                ]
              },
              "microsoft_teams_channel_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Channel the app was added to, which gets every error while `routes` is empty.",
                "readOnly": true,
                "examples": [
                  "General"
                ]
              },
              "routes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "applications": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "application_id": {
                            "type": "integer",
                            "format": "int64",
                            "description": "The ID of the application whose errors the route sends."
                          },
                          "environments": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "The environments whose errors the route sends, such as `production`. Empty means every environment."
                          }
                        }
                      },
                      "description": "Applications whose errors this route sends, each with its environments. Empty means any application."
                    },
                    "channels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Microsoft Teams channel ID of a standard channel in the team the app was added to."
                          },
                          "name": {
                            "type": "string",
                            "description": "Channel name, as Teams lists it.",
                            "readOnly": true
                          }
                        }
                      },
                      "description": "Channels the route posts to. At least one."
                    }
                  }
                },
                "description": "Which applications' errors go to which channels. An application that isn't in any route gets no messages, unless one of the routes has no applications. Empty means everything goes to the channel the app was added to. An update replaces the whole list.",
                "examples": [
                  [
                    {
                      "applications": [
                        {
                          "application_id": 1234,
                          "environments": [
                            "production"
                          ]
                        }
                      ],
                      "channels": [
                        {
                          "id": "19:a1b2c3d4e5f6@thread.tacv2",
                          "name": "Checkout errors"
                        }
                      ]
                    },
                    {
                      "applications": [],
                      "channels": [
                        {
                          "id": "19:f6e5d4c3b2a1@thread.tacv2",
                          "name": "General"
                        }
                      ]
                    }
                  ]
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "ID of the team that owns the integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123456"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the integration.",
                "readOnly": true,
                "examples": [
                  "My team"
                ]
              }
            }
          }
        }
      },
      "ErrorsMicrosoftTeamsIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorsMicrosoftTeamsIntegration"
          }
        }
      },
      "ErrorsMicrosoftTeamsIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorsMicrosoftTeamsIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ErrorsMicrosoftTeamsIntegrationUpdate": {
        "$ref": "#/components/schemas/ErrorsMicrosoftTeamsIntegrationUpdateAttributes"
      },
      "ErrorsMicrosoftTeamsIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "spike_protection": {
                "type": "boolean",
                "description": "Spike protection starts sampling exceptions."
              },
              "new_releases": {
                "type": "boolean",
                "description": "New release is observed."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users."
              }
            },
            "description": "Which events post to the channels, as under **Notify me when** in the web app. An update changes only the toggles sent.",
            "examples": [
              {
                "spikes": true,
                "spike_protection": true,
                "new_releases": true,
                "new_errors": true,
                "occurrence_milestones": true,
                "occurrence_threshold": false,
                "automatically_reopened": false,
                "affected_users_threshold": false
              }
            ]
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              10
            ]
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "default": "minute",
            "examples": [
              "minute"
            ]
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              10
            ]
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The `new_releases` and `spike_protection` notifications and state changes are posted whatever the tags.",
            "examples": [
              [
                {
                  "tag": "level",
                  "values": [
                    "error",
                    "fatal"
                  ]
                }
              ]
            ]
          },
          "routes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "applications": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "application_id": {
                        "type": "string",
                        "description": "The ID of the application whose errors the route sends."
                      },
                      "environments": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "The environments whose errors the route sends, such as `production`. Empty means every environment."
                      }
                    }
                  },
                  "description": "Applications whose errors this route sends, each with its environments. Empty means any application."
                },
                "channels": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Microsoft Teams channel ID of a standard channel in the team the app was added to."
                      },
                      "name": {
                        "type": "string",
                        "description": "Channel name, as Teams lists it.",
                        "readOnly": true
                      }
                    }
                  },
                  "description": "Channels the route posts to. At least one."
                }
              }
            },
            "description": "Which applications' errors go to which channels. An application that isn't in any route gets no messages, unless one of the routes has no applications. Empty means everything goes to the channel the app was added to. An update replaces the whole list.",
            "examples": [
              [
                {
                  "applications": [
                    {
                      "application_id": "1234",
                      "environments": [
                        "production"
                      ]
                    }
                  ],
                  "channels": [
                    {
                      "id": "19:a1b2c3d4e5f6@thread.tacv2",
                      "name": "Checkout errors"
                    }
                  ]
                },
                {
                  "applications": [],
                  "channels": [
                    {
                      "id": "19:f6e5d4c3b2a1@thread.tacv2",
                      "name": "General"
                    }
                  ]
                }
              ]
            ]
          }
        }
      },
      "ErrorsSlackIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The errors_slack_integration's id."
          },
          "type": {
            "type": "string",
            "const": "slack_integration"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "applications": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "application_id": {
                      "type": "integer",
                      "format": "int64",
                      "description": "ID of an Error tracking application."
                    },
                    "environments": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Environments whose errors the integration posts. Empty means every environment."
                    }
                  }
                },
                "description": "Applications whose errors this integration posts, each with its environments. Empty means any application. An update replaces the whole list.",
                "examples": [
                  [
                    {
                      "application_id": 1234,
                      "environments": [
                        "production"
                      ]
                    }
                  ]
                ]
              },
              "notifications": {
                "type": "object",
                "properties": {
                  "spikes": {
                    "type": "boolean",
                    "description": "Application has a spike in errors."
                  },
                  "spike_protection": {
                    "type": "boolean",
                    "description": "Spike protection starts sampling exceptions."
                  },
                  "new_releases": {
                    "type": "boolean",
                    "description": "New release is observed."
                  },
                  "new_errors": {
                    "type": "boolean",
                    "description": "New error occurs."
                  },
                  "occurrence_milestones": {
                    "type": "boolean",
                    "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on."
                  },
                  "occurrence_threshold": {
                    "type": "boolean",
                    "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`."
                  },
                  "automatically_reopened": {
                    "type": "boolean",
                    "description": "Error is automatically re-opened."
                  },
                  "affected_users_threshold": {
                    "type": "boolean",
                    "description": "Error reaches `affected_users_threshold_count` affected users."
                  }
                },
                "description": "Which events post to the channel, as under **Notify me when** in the web app. An update changes only the toggles sent.",
                "examples": [
                  {
                    "spikes": true,
                    "spike_protection": true,
                    "new_releases": true,
                    "new_errors": true,
                    "occurrence_milestones": true,
                    "occurrence_threshold": false,
                    "automatically_reopened": false,
                    "affected_users_threshold": true
                  }
                ]
              },
              "occurrence_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  10
                ]
              },
              "occurrence_threshold_interval": {
                "type": "string",
                "enum": [
                  "minute",
                  "hour",
                  "day",
                  "week"
                ],
                "description": "Time window for `notifications.occurrence_threshold`.",
                "default": "minute",
                "examples": [
                  "minute"
                ]
              },
              "affected_users_threshold_count": {
                "type": "integer",
                "format": "int64",
                "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
                "default": 10,
                "examples": [
                  50
                ]
              },
              "tag_filter": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tag": {
                      "type": "string",
                      "description": "Exception tag, such as environment or level."
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Matches any of these values."
                    }
                  }
                },
                "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The `new_releases` and `spike_protection` notifications and state changes are posted whatever the tags.",
                "examples": [
                  [
                    {
                      "tag": "level",
                      "values": [
                        "error",
                        "fatal"
                      ]
                    }
                  ]
                ]
              },
              "slack_team_name": {
                "type": "string",
                "description": "The Slack workspace the channel is in.",
                "readOnly": true,
                "examples": [
                  "My Slack workspace"
                ]
              },
              "slack_channel_name": {
                "type": "string",
                "description": "Slack channel errors are posted to.",
                "readOnly": true,
                "examples": [
                  "#errors"
                ]
              },
              "post_updates": {
                "type": "string",
                "enum": [
                  "single_channel",
                  "thread_based"
                ],
                "description": "How updates are posted to Slack.",
                "x-enum-descriptions": {
                  "single_channel": "Posts every update to the channel.",
                  "thread_based": "Posts each new error to the channel and its updates in a thread."
                },
                "default": "single_channel",
                "examples": [
                  "thread_based"
                ]
              },
              "broadcast_updates": {
                "type": "boolean",
                "description": "With `thread_based`, also send important updates to the channel. Important updates are resolved and re-opened errors, spikes, and errors reaching an occurrence milestone.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "ai_sre_on_mention": {
                "type": "boolean",
                "description": "Start an AI SRE conversation when Better Stack is tagged in the channel.",
                "default": true,
                "examples": [
                  true
                ]
              },
              "team_id": {
                "type": "string",
                "pattern": "^t[1-9][0-9]*$",
                "description": "ID of the team that owns the integration, such as `t123`.",
                "readOnly": true,
                "examples": [
                  "t123456"
                ]
              },
              "team_name": {
                "type": "string",
                "description": "Name of the team that owns the integration.",
                "readOnly": true,
                "examples": [
                  "My team"
                ]
              }
            }
          }
        }
      },
      "ErrorsSlackIntegrationDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ErrorsSlackIntegration"
          }
        }
      },
      "ErrorsSlackIntegrationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorsSlackIntegration"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "ErrorsSlackIntegrationUpdate": {
        "$ref": "#/components/schemas/ErrorsSlackIntegrationUpdateAttributes"
      },
      "ErrorsSlackIntegrationUpdateAttributes": {
        "type": "object",
        "properties": {
          "applications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "application_id": {
                  "type": "string",
                  "description": "ID of an Error tracking application."
                },
                "environments": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Environments whose errors the integration posts. Empty means every environment."
                }
              }
            },
            "description": "Applications whose errors this integration posts, each with its environments. Empty means any application. An update replaces the whole list.",
            "examples": [
              [
                {
                  "application_id": "1234",
                  "environments": [
                    "production"
                  ]
                }
              ]
            ]
          },
          "notifications": {
            "type": "object",
            "properties": {
              "spikes": {
                "type": "boolean",
                "description": "Application has a spike in errors."
              },
              "spike_protection": {
                "type": "boolean",
                "description": "Spike protection starts sampling exceptions."
              },
              "new_releases": {
                "type": "boolean",
                "description": "New release is observed."
              },
              "new_errors": {
                "type": "boolean",
                "description": "New error occurs."
              },
              "occurrence_milestones": {
                "type": "boolean",
                "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on."
              },
              "occurrence_threshold": {
                "type": "boolean",
                "description": "Error occurs `occurrence_threshold_count` times within `occurrence_threshold_interval`."
              },
              "automatically_reopened": {
                "type": "boolean",
                "description": "Error is automatically re-opened."
              },
              "affected_users_threshold": {
                "type": "boolean",
                "description": "Error reaches `affected_users_threshold_count` affected users."
              }
            },
            "description": "Which events post to the channel, as under **Notify me when** in the web app. An update changes only the toggles sent.",
            "examples": [
              {
                "spikes": true,
                "spike_protection": true,
                "new_releases": true,
                "new_errors": true,
                "occurrence_milestones": true,
                "occurrence_threshold": false,
                "automatically_reopened": false,
                "affected_users_threshold": true
              }
            ]
          },
          "occurrence_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              10
            ]
          },
          "occurrence_threshold_interval": {
            "type": "string",
            "enum": [
              "minute",
              "hour",
              "day",
              "week"
            ],
            "description": "Time window for `notifications.occurrence_threshold`.",
            "default": "minute",
            "examples": [
              "minute"
            ]
          },
          "affected_users_threshold_count": {
            "type": "integer",
            "format": "int64",
            "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.",
            "default": 10,
            "examples": [
              50
            ]
          },
          "tag_filter": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tag": {
                  "type": "string",
                  "description": "Exception tag, such as environment or level."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Matches any of these values."
                }
              }
            },
            "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The `new_releases` and `spike_protection` notifications and state changes are posted whatever the tags.",
            "examples": [
              [
                {
                  "tag": "level",
                  "values": [
                    "error",
                    "fatal"
                  ]
                }
              ]
            ]
          },
          "post_updates": {
            "type": "string",
            "enum": [
              "single_channel",
              "thread_based"
            ],
            "description": "How updates are posted to Slack.",
            "x-enum-descriptions": {
              "single_channel": "Posts every update to the channel.",
              "thread_based": "Posts each new error to the channel and its updates in a thread."
            },
            "default": "single_channel",
            "examples": [
              "thread_based"
            ]
          },
          "broadcast_updates": {
            "type": "boolean",
            "description": "With `thread_based`, also send important updates to the channel. Important updates are resolved and re-opened errors, spikes, and errors reaching an occurrence milestone.",
            "default": true,
            "examples": [
              true
            ]
          },
          "ai_sre_on_mention": {
            "type": "boolean",
            "description": "Start an AI SRE conversation when Better Stack is tagged in the channel.",
            "default": true,
            "examples": [
              true
            ]
          }
        }
      },
      "IgnoredError": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ignored_error's id."
          },
          "type": {
            "type": "string",
            "const": "ignored_error"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "pattern": {
                "type": "string",
                "description": "The pattern of the ignored error, the same as the error's `id`.",
                "readOnly": true,
                "examples": [
                  "6f1c2b9a8e4d7f3012ab45cd"
                ]
              },
              "comment": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A note to recognize the error by, usually its type and message when it was ignored. `null` when there's none.",
                "readOnly": true,
                "examples": [
                  "TypeError: Cannot read properties of undefined (reading 'id')"
                ]
              }
            }
          }
        }
      },
      "IgnoredErrorList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IgnoredError"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "PaginationInline:rumSessionSegment#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."
          }
        }
      },
      "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."
          }
        }
      },
      "Release": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The release's id."
          },
          "type": {
            "type": "string",
            "const": "release"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string",
                "description": "Release version or commit ref.",
                "examples": [
                  "v1.2.3"
                ]
              },
              "application_id": {
                "type": "integer",
                "format": "int64",
                "description": "The application this release belongs to.",
                "readOnly": true,
                "examples": [
                  123
                ]
              },
              "environments": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Environments this release was deployed to. Registering only a version, without `applications`, adds the environment to that version's release on every application that has one.",
                "readOnly": true,
                "examples": [
                  [
                    "production"
                  ]
                ]
              },
              "origin": {
                "type": "string",
                "enum": [
                  "detected",
                  "reported"
                ],
                "description": "How the release first became known.",
                "x-enum-descriptions": {
                  "detected": "The release was found in the first event that carries its version.",
                  "reported": "The release was registered through this API, MCP or the Sentry CLI."
                },
                "readOnly": true,
                "examples": [
                  "reported"
                ]
              },
              "first_seen_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the release was registered or first seen in an event, whichever came first. Later registrations and events don't change it.",
                "readOnly": true,
                "examples": [
                  "2026-08-18T09:00:00.000Z"
                ]
              },
              "last_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When an event last carried the release. A registered release shows its registration time until its first event. `null` for a release with no event since this field was added.",
                "readOnly": true,
                "examples": [
                  "2026-08-18T09:00:00.000Z"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the release was created.",
                "readOnly": true,
                "examples": [
                  "2026-08-18T09:00:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the release was last updated.",
                "readOnly": true,
                "examples": [
                  "2026-08-18T09:00:00.000Z"
                ]
              }
            }
          }
        }
      },
      "ReleaseCreate": {
        "$ref": "#/components/schemas/ReleaseCreateAttributes"
      },
      "ReleaseCreateAttributes": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Release version or commit ref.",
            "examples": [
              "v1.2.3"
            ]
          },
          "applications": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "IDs of the applications to register this release on. For a connected application, the release is registered on the application it's connected to. Leave it out to register the release on every application already reporting this version. When no application reports this version, nothing is registered and the response is still 201.",
            "writeOnly": true,
            "examples": [
              [
                123
              ]
            ]
          },
          "environment": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Environments this release was deployed to. A single string is accepted too. Added to any environments the release already has.",
            "writeOnly": true,
            "examples": [
              [
                "production"
              ]
            ]
          },
          "team_id": {
            "type": "string",
            "description": "The team the release is for, as `t123` or as the team ID the Sentry CLI sends as `SENTRY_ORG`. When you send only a version, the release is registered only on this team's applications. An unknown team is refused.",
            "writeOnly": true,
            "examples": [
              "t123456"
            ]
          }
        },
        "required": [
          "version"
        ]
      },
      "ReleaseDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Release"
          }
        }
      },
      "ReleaseList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Release"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "RumGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The rum_group's id."
          },
          "type": {
            "type": "string",
            "const": "rum_group"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "application_id": {
                "type": "string",
                "description": "The application the group was seen in.",
                "readOnly": true,
                "examples": [
                  "123456"
                ]
              },
              "group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The group's ID as the application sent it. `null` for a group sent with a name only.",
                "readOnly": true,
                "examples": [
                  "456"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The group's latest name. `null` when the application sent none.",
                "readOnly": true,
                "examples": [
                  "Acme Inc."
                ]
              },
              "first_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the group was first seen in the time range.",
                "readOnly": true,
                "examples": [
                  "2026-11-10T08:12:44.000Z"
                ]
              },
              "last_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the group was last seen in the time range.",
                "readOnly": true,
                "examples": [
                  "2026-11-23T17:03:56.000Z"
                ]
              },
              "user_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of the group's users seen in the time range.",
                "readOnly": true,
                "examples": [
                  12
                ]
              },
              "session_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of the group's sessions with a session replay in the time range.",
                "readOnly": true,
                "examples": [
                  40
                ]
              },
              "error_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of errors the group's users ran into in the time range.",
                "readOnly": true,
                "examples": [
                  7
                ]
              },
              "replay_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of session replays recorded for the group in the time range.",
                "readOnly": true,
                "examples": [
                  44
                ]
              },
              "users_url": {
                "type": "string",
                "description": "Link to the Users page in the Better Stack web app, filtered to this group.",
                "readOnly": true,
                "examples": [
                  "https://rum.betterstack.com/team/t12345/users#/?q=user.group_id%3D%22456%22&s=123456"
                ]
              },
              "sessions_url": {
                "type": "string",
                "description": "Link to the Sessions page in the Better Stack web app, filtered to this group.",
                "readOnly": true,
                "examples": [
                  "https://rum.betterstack.com/team/t12345/sessions#/?q=user.group_id%3D%22456%22&s=123456"
                ]
              }
            }
          }
        }
      },
      "RumGroupDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/RumGroup"
          }
        }
      },
      "RumGroupList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RumGroup"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "RumSession": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The rum_session's id."
          },
          "type": {
            "type": "string",
            "const": "rum_session"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "application_id": {
                "type": "string",
                "description": "The application the session was recorded in.",
                "readOnly": true,
                "examples": [
                  "123456"
                ]
              },
              "user_identifier": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The identifier of the session's signed-in user, the same as the user's `id` in RUM users. `null` for an anonymous visitor.",
                "readOnly": true,
                "examples": [
                  "user_123"
                ]
              },
              "user_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The signed-in user's `email`, or their `username` or IP address when there's no e-mail, as the Sessions page shows it. `null` when the application sent none of them.",
                "readOnly": true,
                "examples": [
                  "jane@example.com"
                ]
              },
              "group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the user's group. `null` when the application sent none.",
                "readOnly": true,
                "examples": [
                  "456"
                ]
              },
              "group_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The name of the user's group. `null` when the application sent none.",
                "readOnly": true,
                "examples": [
                  "Acme Inc."
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The country the session came from. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "Czechia"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The city the session came from. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "Prague"
                ]
              },
              "browser": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The browser. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "Chrome"
                ]
              },
              "os": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The operating system. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "macOS"
                ]
              },
              "user_agent": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The browser's user agent, as the replay recorded it. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
                ]
              },
              "first_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The first page of the session. `null` when no page was recorded.",
                "readOnly": true,
                "examples": [
                  "https://shop.example.com/"
                ]
              },
              "last_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The last page of the session. `null` when no page was recorded.",
                "readOnly": true,
                "examples": [
                  "https://shop.example.com/checkout"
                ]
              },
              "page_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of distinct pages visited.",
                "readOnly": true,
                "examples": [
                  4
                ]
              },
              "click_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of clicks the session replay recorded.",
                "readOnly": true,
                "examples": [
                  12
                ]
              },
              "error_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of errors the session ran into.",
                "readOnly": true,
                "examples": [
                  1
                ]
              },
              "replay_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of session replays recorded in the session.",
                "readOnly": true,
                "examples": [
                  1
                ]
              },
              "first_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the session started.",
                "readOnly": true,
                "examples": [
                  "2026-11-23T17:00:12.000Z"
                ]
              },
              "last_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the session was last active.",
                "readOnly": true,
                "examples": [
                  "2026-11-23T17:05:40.000Z"
                ]
              },
              "duration_seconds": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Seconds from the session's start to its last activity.",
                "readOnly": true,
                "examples": [
                  328.0
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "unresolved",
                  "resolved"
                ],
                "description": "Whether the session was resolved on the Sessions page.",
                "x-enum-descriptions": {
                  "unresolved": "Nobody has resolved the session.",
                  "resolved": "Someone resolved the session on the Sessions page."
                },
                "readOnly": true,
                "examples": [
                  "unresolved"
                ]
              },
              "url": {
                "type": "string",
                "description": "Link to the session's page in the Better Stack web app, where its replay plays.",
                "readOnly": true,
                "examples": [
                  "https://rum.betterstack.com/team/t12345/sessions/c682c012-26e6-40ce-bb45-5e6e7f5a8c0f?rf=1795483200000000&rt=1795483528000000&s=123456"
                ]
              },
              "replays": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The replay's ID."
                    },
                    "first_seen_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the replay's recording started."
                    },
                    "last_seen_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the replay last recorded activity."
                    }
                  }
                },
                "description": "The session's replays, oldest first. Returned by get only.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "id": "9bfc56e1c78844d1891123bf9051be7b",
                      "first_seen_at": "2026-11-23T17:00:14.000Z",
                      "last_seen_at": "2026-11-23T17:05:38.000Z"
                    }
                  ]
                ]
              },
              "timeline": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the entry happened."
                    },
                    "type": {
                      "type": "string",
                      "description": "One of `page_view`, `click`, `event`, `error` or `trace`. An `event` is any other web event, such as `session-start` or a custom event."
                    },
                    "name": {
                      "type": "string",
                      "description": "The web event's name, the error's type, or the name of the trace's first span."
                    },
                    "url": {
                      "type": "string",
                      "description": "The page the entry happened on."
                    },
                    "target": {
                      "type": "string",
                      "description": "For a click, the element clicked, such as `button#buy`."
                    },
                    "error_id": {
                      "type": "string",
                      "description": "For an error, the error's ID. Get the error's details with [Get an error](/docs/errors/api/errors/get/)."
                    },
                    "message": {
                      "type": "string",
                      "description": "For an error, its message."
                    },
                    "trace_id": {
                      "type": "string",
                      "description": "For a trace, its ID."
                    },
                    "span_count": {
                      "type": "integer",
                      "format": "int64",
                      "description": "For a trace, the number of its spans from this session."
                    },
                    "duration_ms": {
                      "type": "number",
                      "description": "For a trace, milliseconds from its first span's start to its last span's end."
                    }
                  }
                },
                "description": "What happened in the session, oldest first. Holds page views, clicks, other web events, errors and traces, at most 500 entries. Returned by get only.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "at": "2026-11-23T17:00:12.000Z",
                      "type": "page_view",
                      "name": "page-load",
                      "url": "https://shop.example.com/"
                    },
                    {
                      "at": "2026-11-23T17:00:20.000Z",
                      "type": "click",
                      "name": "click",
                      "url": "https://shop.example.com/",
                      "target": "button#buy"
                    },
                    {
                      "at": "2026-11-23T17:00:21.000Z",
                      "type": "error",
                      "name": "TypeError",
                      "message": "Cannot read properties of undefined",
                      "error_id": "6f1c2b9a8e4d7f3012ab45cd"
                    }
                  ]
                ]
              },
              "timeline_truncated": {
                "type": "boolean",
                "description": "Whether the session holds more than the 500 timeline entries returned. Returned by get only.",
                "readOnly": true,
                "examples": [
                  false
                ]
              }
            }
          }
        }
      },
      "RumSessionDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/RumSession"
          }
        }
      },
      "RumSessionList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RumSession"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "RumSessionSegment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The rum_session_segment's id."
          },
          "type": {
            "type": "string",
            "const": "rum_session_segment"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "replay_id": {
                "type": "string",
                "description": "The replay the segment belongs to.",
                "readOnly": true,
                "examples": [
                  "9bfc56e1c78844d1891123bf9051be7b"
                ]
              },
              "segment_id": {
                "type": "integer",
                "format": "int64",
                "description": "The segment's number in its replay, from 0.",
                "readOnly": true,
                "examples": [
                  0
                ]
              },
              "at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the segment was recorded.",
                "readOnly": true,
                "examples": [
                  "2026-11-23T17:00:14.957Z"
                ]
              },
              "events": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "description": "The segment's rrweb events, in the format the rrweb player reads.",
                "readOnly": true,
                "examples": [
                  [
                    {
                      "type": 4,
                      "timestamp": 1795483214957,
                      "data": {
                        "href": "https://shop.example.com/",
                        "width": 1280,
                        "height": 800
                      }
                    }
                  ]
                ]
              }
            }
          }
        }
      },
      "RumSessionSegmentList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RumSessionSegment"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationInline:rumSessionSegment#list"
          }
        }
      },
      "RumUser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The rum_user's id."
          },
          "type": {
            "type": "string",
            "const": "rum_user"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "application_id": {
                "type": "string",
                "description": "The application the user was seen in.",
                "readOnly": true,
                "examples": [
                  "123456"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The user's latest `email`, or their `username` or IP address when there's no e-mail, as the Users page shows it. `null` when the application sent none of them.",
                "readOnly": true,
                "examples": [
                  "jane@example.com"
                ]
              },
              "group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The ID of the user's latest group, such as their company. `null` when the application sent none.",
                "readOnly": true,
                "examples": [
                  "456"
                ]
              },
              "group_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The name of the user's latest group. `null` when the application sent none.",
                "readOnly": true,
                "examples": [
                  "Acme Inc."
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The country the user was last seen in. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "Czechia"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The city the user was last seen in. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "Prague"
                ]
              },
              "referrer": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where the user's latest visit came from. `null` when it isn't known.",
                "readOnly": true,
                "examples": [
                  "google"
                ]
              },
              "utm": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                },
                "description": "The `utm_` campaign parameters of the user's latest visit, keyed without the prefix as `source`, `medium`, `campaign`, `term` and `content`. Holds only the ones sent.",
                "readOnly": true,
                "examples": [
                  {
                    "source": "newsletter",
                    "campaign": "launch"
                  }
                ]
              },
              "first_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the user was first seen in the time range.",
                "readOnly": true,
                "examples": [
                  "2026-11-10T08:12:44.000Z"
                ]
              },
              "last_seen_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the user was last seen in the time range.",
                "readOnly": true,
                "examples": [
                  "2026-11-23T17:03:56.000Z"
                ]
              },
              "error_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of errors the user ran into in the time range.",
                "readOnly": true,
                "examples": [
                  3
                ]
              },
              "session_count": {
                "type": "integer",
                "format": "int64",
                "description": "Number of the user's sessions with a session replay in the time range.",
                "readOnly": true,
                "examples": [
                  5
                ]
              },
              "sessions_url": {
                "type": "string",
                "description": "Link to the Sessions page in the Better Stack web app, filtered to this user.",
                "readOnly": true,
                "examples": [
                  "https://rum.betterstack.com/team/t12345/sessions#/?q=user.identifier%3D%22user_123%22&s=123456"
                ]
              }
            }
          }
        }
      },
      "RumUserDocument": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/RumUser"
          }
        }
      },
      "RumUserList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RumUser"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationPageNumber"
          }
        }
      },
      "TelemetryError": {
        "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."
          },
          "invalid_values": {
            "type": [
              "string",
              "object",
              "array"
            ],
            "description": "Invalid values."
          }
        }
      }
    }
  }
}
