{
  "openapi": "3.1.0",
  "info": {
    "title": "Octopulse Public API v1",
    "description": "Octopulse public REST API. Authenticate with an API key, sent as the `Authorization: Bearer <api-key>` header.",
    "contact": {
      "url": "https://octopulse.com"
    },
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.octopulse.com",
      "description": "Production"
    }
  ],
  "paths": {
    "/v1/http-tasks/{taskId}/check-results": {
      "get": {
        "operationId": "listHttpCheckResults",
        "tags": [
          "HTTP Check Results"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpCheckResultPageOutput"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request: invalid JSON body or unsupported query parameter",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "404": {
            "description": "Resource not found or belongs to another account",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "List HTTP check results",
        "description": "Returns a page of check results of the task within the time window from..to, one result per check and location. Default order is by checkedAt, newest first.",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "description": "Task id (UUID).",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starts at 1",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page, 1..1000 (default 20)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "Sort field (default checkedAt). outcome with order=ASC lists problems first",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "checkedAt",
                "outcome"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "order",
            "in": "query",
            "description": "Sort direction (default DESC)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "from",
            "in": "query",
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "to",
            "in": "query",
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "locationId[]",
            "in": "query",
            "description": "Filter by location ids, e.g. locationId[]=RUMOW&locationId[]=GBLON (any of them)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "outcome[]",
            "in": "query",
            "description": "Filter by check outcome, e.g. outcome[]=degraded&outcome[]=down (any of them)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "up",
                  "degraded",
                  "down",
                  "config_error"
                ]
              }
            },
            "style": "form",
            "explode": true
          }
        ]
      }
    },
    "/v1/http-tasks/{taskId}/check-results/{checkId}/{locationId}": {
      "get": {
        "operationId": "getHttpCheckResult",
        "tags": [
          "HTTP Check Results"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpCheckResultOutput"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "404": {
            "description": "Resource not found or belongs to another account",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          }
        },
        "summary": "Get an HTTP check result",
        "description": "Returns one check result with the full request and response details: headers, body, timings and assertion outcomes.",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "description": "Task id (UUID).",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "checkId",
            "in": "path",
            "description": "Check id (UUID), the checkId of an item in the check results list.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "0f9c1e7a-2b3c-4d5e-8f90-1a2b3c4d5e6f"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "locationId",
            "in": "path",
            "description": "Location the check was executed from, the locationId of the same item.",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "example": "RUMOW"
            },
            "style": "simple",
            "explode": false
          }
        ]
      }
    },
    "/v1/http-tasks": {
      "post": {
        "operationId": "createHttpTask",
        "tags": [
          "HTTP Tasks"
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpTaskOutput"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request: invalid JSON body or unsupported query parameter",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Content-Type: use application/json for POST and application/merge-patch+json for PATCH",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/415",
                  "title": "Unsupported Media Type",
                  "status": 415,
                  "detail": "The content-type \"text/plain\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/415",
                  "title": "Unsupported Media Type",
                  "status": 415,
                  "detail": "The content-type \"text/plain\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Create an HTTP task",
        "description": "Creates an HTTP task and returns it. A new task is active and is scheduled for its first check immediately, unless checks are suspended by billing.",
        "parameters": [],
        "requestBody": {
          "description": "Settings of the new task.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateHttpTaskInput"
              }
            }
          },
          "required": true
        }
      },
      "get": {
        "operationId": "listHttpTasks",
        "tags": [
          "HTTP Tasks"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpTaskPageOutput"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request: invalid JSON body or unsupported query parameter",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "List HTTP tasks",
        "description": "Returns a page of your HTTP tasks. Filters are combined with AND, values inside one filter with OR. Default order is by createdAt, newest first.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starts at 1",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page (default 20)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "Sort field (default createdAt). state with order=ASC lists problem tasks first",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "url",
                "createdAt",
                "state"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "order",
            "in": "query",
            "description": "Sort direction (default DESC)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "search",
            "in": "query",
            "description": "Case-insensitive substring match against task name and URL",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "tag[]",
            "in": "query",
            "description": "Filter by tags, e.g. tag[]=prod&tag[]=stage (task matches if it has any of them)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 64
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "locationId[]",
            "in": "query",
            "description": "Filter by location ids, e.g. locationId[]=RUMOW&locationId[]=GBLON (any of them)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "method[]",
            "in": "query",
            "description": "Filter by HTTP methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS (any of them)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "GET",
                  "POST",
                  "PUT",
                  "PATCH",
                  "DELETE",
                  "HEAD",
                  "OPTIONS"
                ]
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "description": "Filter by task state, e.g. status[]=alerting&status[]=no_data (any of them)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "ok",
                  "alerting",
                  "no_data",
                  "paused",
                  "billing",
                  "config_error"
                ]
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "interval[]",
            "in": "query",
            "description": "Filter by check interval in seconds, e.g. interval[]=60&interval[]=300 (any of them)",
            "required": false,
            "deprecated": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "enum": [
                  30,
                  60,
                  300,
                  600,
                  900,
                  1800,
                  3600
                ]
              }
            },
            "style": "form",
            "explode": true
          }
        ]
      }
    },
    "/v1/http-tasks/{id}": {
      "get": {
        "operationId": "getHttpTask",
        "tags": [
          "HTTP Tasks"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpTaskOutput"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "404": {
            "description": "Resource not found or belongs to another account",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          }
        },
        "summary": "Get an HTTP task",
        "description": "Returns one HTTP task with its current state. Tasks of other accounts are reported as not found.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Task id (UUID).",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"
            },
            "style": "simple",
            "explode": false
          }
        ]
      },
      "patch": {
        "operationId": "updateHttpTask",
        "tags": [
          "HTTP Tasks"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpTaskOutput"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request: invalid JSON body or unsupported query parameter",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/400",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Parameter \"foo\" not supported"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "404": {
            "description": "Resource not found or belongs to another account",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Content-Type: use application/json for POST and application/merge-patch+json for PATCH",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/415",
                  "title": "Unsupported Media Type",
                  "status": 415,
                  "detail": "The content-type \"text/plain\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/415",
                  "title": "Unsupported Media Type",
                  "status": 415,
                  "detail": "The content-type \"text/plain\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/422",
                  "title": "Unprocessable Content",
                  "status": 422,
                  "detail": "name: This value should not be blank.",
                  "violations": [
                    {
                      "propertyPath": "name",
                      "message": "This value should not be blank."
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Update an HTTP task",
        "description": "Changes only the fields present in the request (JSON merge patch, Content-Type application/merge-patch+json) and returns the updated task. Lists such as tags, headers, assertions and locationIds are replaced as a whole. After an update the task state is reset to pending.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Task id (UUID).",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "Fields to change; anything not sent keeps its current value.",
          "content": {
            "application/merge-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PatchHttpTaskInput"
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "operationId": "deleteHttpTask",
        "tags": [
          "HTTP Tasks"
        ],
        "responses": {
          "204": {
            "description": "No content"
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "404": {
            "description": "Resource not found or belongs to another account",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/404",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Not Found"
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          }
        },
        "summary": "Delete an HTTP task",
        "description": "Deletes the task and stops its checks. Its check results can no longer be retrieved.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Task id (UUID).",
            "required": true,
            "deprecated": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"
            },
            "style": "simple",
            "explode": false
          }
        ]
      }
    },
    "/v1/locations": {
      "get": {
        "operationId": "listLocations",
        "tags": [
          "Locations"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationListOutput"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          }
        },
        "summary": "List locations",
        "description": "Returns all locations the checks can be executed from. Use the ids in locationIds when creating or updating a task.",
        "parameters": []
      }
    },
    "/v1/me": {
      "get": {
        "operationId": "getMe",
        "tags": [
          "Profile"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeOutput"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          }
        },
        "summary": "Get the profile",
        "description": "Returns the profile of the account that owns the API key.",
        "parameters": []
      }
    },
    "/v1/tags": {
      "get": {
        "operationId": "listTags",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagListOutput"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/401",
                  "title": "Unauthorized",
                  "status": 401,
                  "detail": "Invalid API key."
                }
              }
            }
          },
          "406": {
            "description": "Unsupported Accept header: the API responds with application/json only",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "/errors/406",
                  "title": "Not Acceptable",
                  "status": 406,
                  "detail": "Requested format \"text/html\" is not supported. Supported MIME types are \"application/json\"."
                }
              }
            }
          }
        },
        "summary": "List tags",
        "description": "Returns all tags used on your HTTP tasks. Use them in the tag[] filter when listing tasks.",
        "parameters": []
      }
    }
  },
  "components": {
    "schemas": {
      "AssertionInput": {
        "description": "A check of the response: what to compare (`type`), how (`operator`) and with what (`value`). A task needs at least one.",
        "type": "object",
        "required": [
          "type",
          "operator",
          "value"
        ],
        "properties": {
          "type": {
            "enum": [
              "status_code",
              "body",
              "response_time"
            ],
            "description": "What to check: `status_code` (HTTP status of the response), `body` (response body text), `response_time` (total response time).",
            "example": "status_code",
            "type": "string"
          },
          "operator": {
            "enum": [
              "is",
              "is_not",
              "in",
              "not_in",
              "matches_regex",
              "does_not_match_regex",
              "contains",
              "does_not_contain",
              "is_less_than"
            ],
            "description": "Comparison operator. Allowed operators depend on `type`: `status_code` takes is, is_not, in, not_in, matches_regex, does_not_match_regex; `body` takes contains, does_not_contain, is, is_not, matches_regex, does_not_match_regex; `response_time` takes is_less_than.",
            "example": "is",
            "type": "string"
          },
          "value": {
            "description": "Expected value; its format depends on `type` and `operator`. `status_code` with is/is_not: a single code as a string, e.g. \"200\". `status_code` with in/not_in: comma-separated codes and ranges, e.g. \"200-299,304\". matches_regex/does_not_match_regex (status_code or body): a PCRE pattern without delimiters, e.g. \"^2\\d\\d$\". `body` with contains/does_not_contain: the text to search for, case-insensitive. `body` with is/is_not: the exact body text, case-sensitive. `response_time` with is_less_than: milliseconds as an integer, e.g. 1000.",
            "example": "200",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          }
        }
      },
      "AssertionOutput": {
        "description": "An assertion of the task as configured.",
        "type": "object",
        "properties": {
          "type": {
            "description": "What is checked: `status_code`, `body` or `response_time`.",
            "example": "status_code",
            "type": "string"
          },
          "operator": {
            "description": "Comparison operator, see AssertionInput.",
            "example": "is",
            "type": "string"
          },
          "value": {
            "description": "Expected value: a string for `status_code` and `body`, an integer (milliseconds) for `response_time`.",
            "example": "200",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": [
          "type",
          "operator",
          "value"
        ]
      },
      "CheckedAssertionOutput": {
        "description": "An assertion of the task together with its result in this check.",
        "type": "object",
        "properties": {
          "type": {
            "description": "What was checked: status_code, body or response_time.",
            "example": "status_code",
            "type": "string"
          },
          "operator": {
            "description": "Comparison operator as configured on the task.",
            "example": "is",
            "type": "string"
          },
          "value": {
            "description": "Expected value as configured, always in string form.",
            "example": "200",
            "type": "string"
          },
          "isSuccess": {
            "description": "Whether this assertion passed for the response.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "operator",
          "value",
          "isSuccess"
        ]
      },
      "CreateHttpTaskInput": {
        "type": "object",
        "description": "Fields of a new HTTP task.",
        "required": [
          "name",
          "url",
          "httpMethod",
          "retryCount",
          "retryTimeoutMs",
          "locationIds",
          "checkIntervalSeconds",
          "alertTimeframeWindow",
          "alertLocationsCount"
        ],
        "properties": {
          "name": {
            "minLength": 1,
            "maxLength": 255,
            "description": "Task name.",
            "example": "Production API health",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "maxLength": 2048,
            "description": "URL to request.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "example": "https://example.com/health",
            "type": "string"
          },
          "httpMethod": {
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE",
              "HEAD",
              "OPTIONS"
            ],
            "description": "HTTP method: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.",
            "example": "POST",
            "type": "string"
          },
          "followRedirects": {
            "description": "Follow HTTP redirects.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "ignoreServerCertificateError": {
            "description": "Accept invalid or self-signed TLS certificates instead of failing the check.",
            "default": false,
            "example": false,
            "type": "boolean"
          },
          "retryCount": {
            "minimum": 0,
            "maximum": 2,
            "description": "Retries after a failed request before the result is recorded.",
            "example": 2,
            "type": "integer"
          },
          "retryTimeoutMs": {
            "minimum": 100,
            "maximum": 1500,
            "description": "Pause between retries, in milliseconds.",
            "example": 500,
            "type": "integer"
          },
          "headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HttpHeaderInput"
            }
          },
          "tags": {
            "maxItems": 50,
            "description": "Free-form tags for grouping and filtering tasks. Up to 50 tags, each 1 to 64 characters.",
            "example": [
              "prod",
              "backend"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          "assertions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssertionInput"
            }
          },
          "locationIds": {
            "minItems": 1,
            "uniqueItems": true,
            "description": "Locations to run the check from, see GET /v1/locations.",
            "example": [
              "RUMOW",
              "GBLON"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "checkIntervalSeconds": {
            "enum": [
              30,
              60,
              300,
              600,
              900,
              1800,
              3600
            ],
            "description": "How often the check runs, in seconds.",
            "example": 60,
            "type": "integer"
          },
          "alertTimeframeWindow": {
            "minimum": 0,
            "maximum": 120,
            "description": "Minutes the failure must persist before the task becomes alerting; 0 alerts at once.",
            "example": 5,
            "type": "integer"
          },
          "alertLocationsCount": {
            "minimum": 1,
            "maximum": 32767,
            "description": "How many locations must fail at the same time to count as a failure. Cannot exceed the number of locationIds.",
            "example": 1,
            "type": "integer"
          },
          "body": {
            "description": "Request body text. Requires bodyType.",
            "example": "{\"ping\": 1}",
            "type": [
              "string",
              "null"
            ]
          },
          "bodyType": {
            "enum": [
              "json",
              "form_urlencoded",
              "html",
              "plain",
              "xml",
              null
            ],
            "description": "Request body type: json, form_urlencoded, html, plain, xml. Requires body.",
            "example": "json",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Error response (RFC 7807, application/problem+json). Validation errors add violations.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Problem type, always /errors/<status>.",
            "example": "/errors/404"
          },
          "title": {
            "type": "string",
            "description": "Standard HTTP status phrase.",
            "example": "Not Found"
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code, the same as in the response line.",
            "example": 404
          },
          "detail": {
            "type": "string",
            "description": "Human-readable explanation of this particular error.",
            "example": "Not Found"
          },
          "violations": {
            "type": "array",
            "description": "Rejected values, one entry per value. Present for validation errors (422) only. A nested field is addressed by its path, e.g. assertions[0].value.",
            "items": {
              "type": "object",
              "required": [
                "propertyPath",
                "message"
              ],
              "properties": {
                "propertyPath": {
                  "type": "string",
                  "description": "Path of the rejected field.",
                  "example": "name"
                },
                "message": {
                  "type": "string",
                  "description": "Why the value was rejected.",
                  "example": "This value should not be blank."
                }
              }
            }
          }
        }
      },
      "HttpCheckResultListItemOutput": {
        "description": "A check result in a list: outcome and total time, without the response body and headers.",
        "type": "object",
        "properties": {
          "checkId": {
            "description": "Id of the check dispatch; the same check is executed from every location of the task.",
            "example": "0f9c1e7a-2b3c-4d5e-8f90-1a2b3c4d5e6f",
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "description": "Location the check was executed from, see GET /v1/locations.",
            "example": "RUMOW",
            "type": "string"
          },
          "locationName": {
            "description": "Location name.",
            "example": "Moscow",
            "type": "string"
          },
          "taskId": {
            "description": "Task id (UUID).",
            "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
            "type": "string",
            "format": "uuid"
          },
          "outcome": {
            "description": "Outcome of the check: up (response received, all assertions passed), degraded (response received, an assertion failed), down (no response: timeout, dns, connection, ssl, read, too_many_redirects, unknown), config_error (the task cannot be executed as configured, for example blocked by SSRF protection).",
            "example": "up",
            "type": "string",
            "enum": [
              "up",
              "degraded",
              "down",
              "config_error"
            ]
          },
          "requestSuccessful": {
            "description": "Whether an HTTP response was received at all.",
            "example": true,
            "type": "boolean"
          },
          "requestFailReason": {
            "description": "Why the request failed; null when requestSuccessful is true.",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "timeout",
              "dns",
              "connection",
              "ssl",
              "read",
              "too_many_redirects",
              "ssrf_protection",
              "unknown",
              null
            ]
          },
          "requestFailMessage": {
            "description": "Low-level error text from the worker; null when the request succeeded.",
            "type": [
              "string",
              "null"
            ]
          },
          "totalResponseTimeMs": {
            "description": "Total request time in milliseconds; for a failed request, the time until the failure.",
            "example": 175,
            "type": [
              "integer",
              "null"
            ]
          },
          "checkedAt": {
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "example": "2026-08-14T13:02:07.214+00:00",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "checkId",
          "locationId",
          "locationName",
          "taskId",
          "outcome",
          "requestSuccessful",
          "requestFailReason",
          "requestFailMessage",
          "totalResponseTimeMs",
          "checkedAt"
        ]
      },
      "HttpCheckResultOutput": {
        "title": "HttpCheckResult",
        "x-tags": [
          "HTTP Check Results"
        ],
        "type": "object",
        "description": "A check result with full request and response details.",
        "properties": {
          "checkId": {
            "description": "Id of the check dispatch; the same check is executed from every location of the task.",
            "example": "0f9c1e7a-2b3c-4d5e-8f90-1a2b3c4d5e6f",
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "description": "Location the check was executed from, see GET /v1/locations.",
            "example": "RUMOW",
            "type": "string"
          },
          "locationName": {
            "description": "Location name.",
            "example": "Moscow",
            "type": "string"
          },
          "taskId": {
            "description": "Task id (UUID).",
            "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "description": "Task URL as configured at the time of the check.",
            "example": "https://bücher.example/health",
            "type": "string",
            "format": "iri"
          },
          "urlEncoded": {
            "description": "The same URL as actually requested: punycode host, percent-encoded path.",
            "example": "https://xn--bcher-kva.example/health",
            "type": "string",
            "format": "uri"
          },
          "httpMethod": {
            "description": "HTTP method: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.",
            "example": "GET",
            "type": "string"
          },
          "followRedirects": {
            "description": "Whether redirects were followed, as configured on the task.",
            "example": true,
            "type": "boolean"
          },
          "maxRedirects": {
            "description": "Maximum number of redirects to follow.",
            "example": 10,
            "type": "integer"
          },
          "ignoreServerCertificateError": {
            "description": "Whether TLS certificate errors were ignored, as configured on the task.",
            "example": false,
            "type": "boolean"
          },
          "retryCount": {
            "description": "Retries after a failed request, as configured on the task.",
            "example": 2,
            "type": "integer"
          },
          "retryTimeoutMs": {
            "description": "Pause between retries in milliseconds, as configured on the task.",
            "example": 500,
            "type": "integer"
          },
          "timeoutMs": {
            "description": "Time budget for the whole check in milliseconds: all tries and pauses between them.",
            "example": 230000,
            "type": "integer"
          },
          "oneTryTimeoutMs": {
            "description": "Timeout of a single try in milliseconds, including redirects.",
            "example": 70000,
            "type": "integer"
          },
          "maxBodyBytes": {
            "description": "Response body size limit in bytes: a longer body is cut and marked with bodyTruncated.",
            "example": 512000,
            "type": "integer"
          },
          "maxHeaderBytes": {
            "description": "Size limit in bytes for all response header names and values together: headers over the limit are dropped and listed in headersTruncated.",
            "example": 128000,
            "type": "integer"
          },
          "maxTruncatedHeaderBytes": {
            "description": "Size limit in bytes for all names listed in headersTruncated together: names that do not fit are not listed.",
            "example": 4000,
            "type": "integer"
          },
          "checkIntervalSeconds": {
            "description": "Check interval in seconds, as configured on the task.",
            "example": 60,
            "type": "integer"
          },
          "requestHeaders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HttpHeaderOutput"
            }
          },
          "requestBodyText": {
            "description": "Request body as configured on the task; null when the request had no body.",
            "type": [
              "string",
              "null"
            ]
          },
          "requestBodyType": {
            "description": "Request body type: json, form_urlencoded, html, plain, xml; null when the request had no body.",
            "type": [
              "string",
              "null"
            ]
          },
          "assertions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CheckedAssertionOutput"
            }
          },
          "outcome": {
            "description": "Outcome of the check: up (response received, all assertions passed), degraded (response received, an assertion failed), down (no response: timeout, dns, connection, ssl, read, too_many_redirects, unknown), config_error (the task cannot be executed as configured, for example blocked by SSRF protection).",
            "example": "up",
            "type": "string",
            "enum": [
              "up",
              "degraded",
              "down",
              "config_error"
            ]
          },
          "requestSuccessful": {
            "description": "Whether an HTTP response was received at all.",
            "example": true,
            "type": "boolean"
          },
          "requestFailReason": {
            "description": "Why the request failed; null when requestSuccessful is true.",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "timeout",
              "dns",
              "connection",
              "ssl",
              "read",
              "too_many_redirects",
              "ssrf_protection",
              "unknown",
              null
            ]
          },
          "requestFailMessage": {
            "description": "Low-level error text from the worker; null when the request succeeded.",
            "type": [
              "string",
              "null"
            ]
          },
          "statusCode": {
            "description": "HTTP status code; null when no response was received.",
            "example": 200,
            "type": [
              "integer",
              "null"
            ]
          },
          "resolvedIp": {
            "description": "IP address the host resolved to; null when no response was received.",
            "example": "203.0.113.7",
            "type": [
              "string",
              "null"
            ]
          },
          "dnsServer": {
            "description": "DNS server that resolved the host; null when no response was received.",
            "example": "8.8.8.8",
            "type": [
              "string",
              "null"
            ]
          },
          "dnsServers": {
            "description": "DNS servers configured for the check.",
            "example": [
              "8.8.8.8",
              "1.1.1.1"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bodySizeBytes": {
            "description": "Response body size in bytes; null when no response was received.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "responseBody": {
            "description": "Response body as UTF-8 text, at most 512 000 bytes: longer bodies are cut and marked with bodyTruncated. null when the body was empty, binary or could not be decoded (see bodyStatus).",
            "example": "{\"status\":\"ok\"}",
            "type": [
              "string",
              "null"
            ]
          },
          "bodyStatus": {
            "description": "What happened to the response body: captured (text body stored), empty (no body), skipped_binary (non-text content, not stored), decode_failed (text in an encoding that could not be decoded); null when no response was received.",
            "example": "captured",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "captured",
              "empty",
              "skipped_binary",
              "decode_failed",
              null
            ]
          },
          "responseEncoding": {
            "description": "Original charset of the body, for diagnostics; null when it could not be detected or no response was received.",
            "example": "utf-8",
            "type": [
              "string",
              "null"
            ]
          },
          "bodyTruncated": {
            "description": "Whether the body was cut at the size limit; null when no response was received.",
            "example": false,
            "type": [
              "boolean",
              "null"
            ]
          },
          "responseHeaders": {
            "description": "Response headers sorted by name; null when no response was received.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/HttpHeaderOutput"
            }
          },
          "headersTruncated": {
            "description": "Names of response headers dropped because of the size limit, one entry per dropped header; the list itself is limited by maxTruncatedHeaderBytes, so it may be incomplete.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dnsTimeMs": {
            "description": "DNS lookup time in milliseconds; null when no response was received.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "connectionTimeMs": {
            "description": "TCP connection time in milliseconds; null when no response was received.",
            "example": 30,
            "type": [
              "integer",
              "null"
            ]
          },
          "sslTimeMs": {
            "description": "TLS handshake time in milliseconds; null for plain http or when no response was received.",
            "example": 40,
            "type": [
              "integer",
              "null"
            ]
          },
          "timeToFirstByteMs": {
            "description": "Time to the first byte of the response in milliseconds; null when no response was received.",
            "example": 120,
            "type": [
              "integer",
              "null"
            ]
          },
          "downloadTimeMs": {
            "description": "Body download time in milliseconds; null when no response was received.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "totalResponseTimeMs": {
            "description": "Total request time in milliseconds; for a failed request, the time until the failure.",
            "example": 175,
            "type": [
              "integer",
              "null"
            ]
          },
          "checkedAt": {
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "example": "2026-08-14T13:02:07.214+00:00",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "checkId",
          "locationId",
          "locationName",
          "taskId",
          "url",
          "urlEncoded",
          "httpMethod",
          "followRedirects",
          "maxRedirects",
          "ignoreServerCertificateError",
          "retryCount",
          "retryTimeoutMs",
          "timeoutMs",
          "oneTryTimeoutMs",
          "maxBodyBytes",
          "maxHeaderBytes",
          "maxTruncatedHeaderBytes",
          "checkIntervalSeconds",
          "requestHeaders",
          "requestBodyText",
          "requestBodyType",
          "assertions",
          "outcome",
          "requestSuccessful",
          "requestFailReason",
          "requestFailMessage",
          "statusCode",
          "resolvedIp",
          "dnsServer",
          "dnsServers",
          "bodySizeBytes",
          "responseBody",
          "bodyStatus",
          "responseEncoding",
          "bodyTruncated",
          "responseHeaders",
          "headersTruncated",
          "dnsTimeMs",
          "connectionTimeMs",
          "sslTimeMs",
          "timeToFirstByteMs",
          "downloadTimeMs",
          "totalResponseTimeMs",
          "checkedAt"
        ]
      },
      "HttpCheckResultPageOutput": {
        "type": "object",
        "description": "A page of check results.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HttpCheckResultListItemOutput"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationOutput"
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "HttpHeaderInput": {
        "description": "A request header to send with every check.",
        "type": "object",
        "required": [
          "name",
          "value"
        ],
        "properties": {
          "name": {
            "pattern": "^([!#$%&'*+.^_`|~0-9A-Za-z-]+)$",
            "description": "Header name.",
            "example": "Authorization",
            "type": "string"
          },
          "value": {
            "description": "Header value, sent as is.",
            "example": "Bearer my-token",
            "type": "string"
          }
        }
      },
      "HttpHeaderOutput": {
        "description": "An HTTP header: name and value.",
        "type": "object",
        "properties": {
          "name": {
            "description": "Header name.",
            "example": "Authorization",
            "type": "string"
          },
          "value": {
            "description": "Header value.",
            "example": "Bearer my-token",
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ]
      },
      "HttpTaskOutput": {
        "title": "HttpTask",
        "x-tags": [
          "HTTP Tasks"
        ],
        "type": "object",
        "description": "An HTTP task with its current state.",
        "properties": {
          "id": {
            "description": "Task id (UUID).",
            "example": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "description": "Task name.",
            "example": "Production homepage",
            "type": "string"
          },
          "url": {
            "description": "URL to request.",
            "example": "https://example.com/",
            "type": "string",
            "format": "uri"
          },
          "httpMethod": {
            "description": "HTTP method: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.",
            "example": "GET",
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE",
              "HEAD",
              "OPTIONS"
            ]
          },
          "followRedirects": {
            "description": "Follow HTTP redirects.",
            "example": true,
            "type": "boolean"
          },
          "ignoreServerCertificateError": {
            "description": "Accept invalid or self-signed TLS certificates instead of failing the check.",
            "example": false,
            "type": "boolean"
          },
          "retryCount": {
            "description": "Retries after a failed request before the result is recorded.",
            "example": 2,
            "type": "integer"
          },
          "retryTimeoutMs": {
            "description": "Pause between retries, in milliseconds.",
            "example": 500,
            "type": "integer"
          },
          "headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HttpHeaderOutput"
            }
          },
          "tags": {
            "description": "Tags of the task.",
            "example": [
              "prod",
              "backend"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "assertions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssertionOutput"
            }
          },
          "locationIds": {
            "description": "Locations the check runs from, see GET /v1/locations.",
            "example": [
              "RUMOW",
              "GBLON"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "checkIntervalSeconds": {
            "description": "How often the check runs, in seconds.",
            "example": 60,
            "type": "integer",
            "enum": [
              30,
              60,
              300,
              600,
              900,
              1800,
              3600
            ]
          },
          "alertTimeframeWindow": {
            "description": "Minutes the failure must persist before the task becomes alerting; 0 alerts at once.",
            "example": 5,
            "type": "integer"
          },
          "alertLocationsCount": {
            "description": "How many locations must fail at the same time to count as a failure.",
            "example": 1,
            "type": "integer"
          },
          "isActive": {
            "description": "Whether checks are running; false means paused by the user.",
            "example": true,
            "type": "boolean"
          },
          "state": {
            "description": "Current state: pending (no results yet), ok, alerting, no_data (locations stopped reporting), paused (isActive is false), billing (suspended by billing), config_error (the task cannot be executed as configured).",
            "example": "ok",
            "type": "string",
            "enum": [
              "pending",
              "ok",
              "alerting",
              "no_data",
              "paused",
              "billing",
              "config_error"
            ]
          },
          "stateChangedAt": {
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "example": "2026-08-14T13:02:07.214+00:00",
            "type": "string",
            "format": "date-time"
          },
          "body": {
            "description": "Request body text; null when the task sends no body.",
            "type": [
              "string",
              "null"
            ]
          },
          "bodyType": {
            "description": "Request body type: json, form_urlencoded, html, plain, xml; null when the task sends no body.",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "json",
              "form_urlencoded",
              "html",
              "plain",
              "xml",
              null
            ]
          },
          "suspendedUntil": {
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "example": "2026-08-14T13:02:07.214+00:00",
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "description": "ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00",
            "example": "2026-08-14T13:02:07.214+00:00",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "httpMethod",
          "followRedirects",
          "ignoreServerCertificateError",
          "retryCount",
          "retryTimeoutMs",
          "headers",
          "tags",
          "assertions",
          "locationIds",
          "checkIntervalSeconds",
          "alertTimeframeWindow",
          "alertLocationsCount",
          "isActive",
          "state",
          "stateChangedAt",
          "body",
          "bodyType",
          "suspendedUntil",
          "createdAt",
          "updatedAt"
        ]
      },
      "HttpTaskPageOutput": {
        "type": "object",
        "description": "A page of HTTP tasks.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HttpTaskOutput"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationOutput"
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "LocationListOutput": {
        "type": "object",
        "description": "The list of locations.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocationOutput"
            }
          }
        },
        "required": [
          "items"
        ]
      },
      "LocationOutput": {
        "title": "Location",
        "x-tags": [
          "Locations"
        ],
        "description": "A location the checks are executed from.",
        "type": "object",
        "properties": {
          "id": {
            "description": "Use these ids in locationIds when creating or updating a task.",
            "example": "RUMOW",
            "type": "string"
          },
          "name": {
            "description": "Location name.",
            "example": "Moscow",
            "type": "string"
          },
          "isActive": {
            "description": "Inactive locations cannot be added to locationIds.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "isActive"
        ]
      },
      "MeOutput": {
        "title": "Profile",
        "x-tags": [
          "Profile"
        ],
        "type": "object",
        "description": "The profile of the account.",
        "properties": {
          "userId": {
            "description": "Account id (UUID).",
            "example": "01a07b67-2c3d-7e4f-8a9b-0c1d2e3f4a5b",
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "description": "Account email.",
            "example": "john.doe@example.com",
            "type": "string"
          },
          "firstName": {
            "description": "First name.",
            "example": "John",
            "type": "string"
          },
          "lastName": {
            "description": "Last name.",
            "example": "Doe",
            "type": "string"
          },
          "country": {
            "description": "Country code, ISO 3166-1 alpha-2.",
            "example": "RU",
            "type": "string",
            "enum": [
              "RU"
            ]
          },
          "timezone": {
            "description": "Time zone of the account, IANA name.",
            "example": "Europe/Moscow",
            "type": "string"
          },
          "lang": {
            "description": "Interface language code, ISO 639-1.",
            "example": "ru",
            "type": "string",
            "enum": [
              "ru",
              "en"
            ]
          }
        },
        "required": [
          "userId",
          "email",
          "firstName",
          "lastName",
          "country",
          "timezone",
          "lang"
        ]
      },
      "PaginationOutput": {
        "description": "Position of the page in the whole list.",
        "type": "object",
        "properties": {
          "page": {
            "description": "Current page, starts at 1.",
            "example": 1,
            "type": "integer"
          },
          "itemsPerPage": {
            "description": "Page size.",
            "example": 20,
            "type": "integer"
          },
          "totalItems": {
            "description": "Total items across all pages.",
            "example": 340,
            "type": "integer"
          },
          "totalPages": {
            "description": "Total pages, at least 1.",
            "example": 17,
            "type": "integer"
          }
        },
        "required": [
          "page",
          "itemsPerPage",
          "totalItems",
          "totalPages"
        ]
      },
      "PatchHttpTaskInput": {
        "type": "object",
        "description": "Fields to change in an HTTP task. Omitted fields keep their current values.",
        "properties": {
          "name": {
            "minLength": 1,
            "maxLength": 255,
            "description": "Task name.",
            "example": "Production API health",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "maxLength": 2048,
            "description": "URL to request.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "example": "https://example.com/health",
            "type": "string"
          },
          "httpMethod": {
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE",
              "HEAD",
              "OPTIONS"
            ],
            "description": "HTTP method: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.",
            "example": "POST",
            "type": "string"
          },
          "followRedirects": {
            "description": "Follow HTTP redirects.",
            "example": true,
            "type": "boolean"
          },
          "ignoreServerCertificateError": {
            "description": "Accept invalid or self-signed TLS certificates instead of failing the check.",
            "example": false,
            "type": "boolean"
          },
          "retryCount": {
            "minimum": 0,
            "maximum": 2,
            "description": "Retries after a failed request before the result is recorded.",
            "example": 2,
            "type": "integer"
          },
          "retryTimeoutMs": {
            "minimum": 100,
            "maximum": 1500,
            "description": "Pause between retries, in milliseconds.",
            "example": 500,
            "type": "integer"
          },
          "headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HttpHeaderInput"
            }
          },
          "tags": {
            "maxItems": 50,
            "description": "Replaces the whole list of tags. Up to 50 tags, each 1 to 64 characters.",
            "example": [
              "prod",
              "backend"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          "assertions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssertionInput"
            }
          },
          "locationIds": {
            "minItems": 1,
            "uniqueItems": true,
            "description": "Replaces the whole list of locations, see GET /v1/locations.",
            "example": [
              "RUMOW",
              "GBLON"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "checkIntervalSeconds": {
            "enum": [
              30,
              60,
              300,
              600,
              900,
              1800,
              3600
            ],
            "description": "How often the check runs, in seconds.",
            "example": 60,
            "type": "integer"
          },
          "alertTimeframeWindow": {
            "minimum": 0,
            "maximum": 120,
            "description": "Minutes the failure must persist before the task becomes alerting; 0 alerts at once.",
            "example": 5,
            "type": "integer"
          },
          "alertLocationsCount": {
            "minimum": 1,
            "maximum": 32767,
            "description": "How many locations must fail at the same time to count as a failure. Cannot exceed the number of locationIds.",
            "example": 1,
            "type": "integer"
          },
          "isActive": {
            "description": "Turn checks on or off.",
            "example": true,
            "type": "boolean"
          },
          "body": {
            "description": "Request body text; null when the task sends no body. Either both body and bodyType are set, or both are null.",
            "example": "{\"ping\": 1}",
            "type": [
              "string",
              "null"
            ]
          },
          "bodyType": {
            "enum": [
              "json",
              "form_urlencoded",
              "html",
              "plain",
              "xml",
              null
            ],
            "description": "Request body type: json, form_urlencoded, html, plain, xml; null when the task sends no body. Either both body and bodyType are set, or both are null.",
            "example": "json",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TagListOutput": {
        "type": "object",
        "description": "The list of tags used on your tasks.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagOutput"
            }
          }
        },
        "required": [
          "items"
        ]
      },
      "TagOutput": {
        "title": "Tag",
        "x-tags": [
          "Tags"
        ],
        "description": "A tag used on your tasks.",
        "type": "object",
        "properties": {
          "tag": {
            "description": "Use these values in the tag[] filter of GET /http-tasks.",
            "example": "prod",
            "type": "string"
          }
        },
        "required": [
          "tag"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "API key issued in the dashboard, sent as the `Authorization: Bearer <key>` header.",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "HTTP Tasks",
      "description": "HTTP monitoring tasks. Each task periodically requests its URL from the selected locations and checks the response against the assertions."
    },
    {
      "name": "HTTP Check Results",
      "description": "Results of the checks executed for a task, one result per check and location."
    },
    {
      "name": "Locations",
      "description": "Locations the checks are executed from. Use their ids in locationIds of a task."
    },
    {
      "name": "Tags",
      "description": "Tags used on your tasks. Use them in the tag[] filter when listing tasks."
    },
    {
      "name": "Profile",
      "description": "The account that owns the API key."
    }
  ]
}