{
  "openapi": "3.1.0",
  "info": {
    "title": "Real Airline Simulator Read API",
    "version": "1.0-docs-v014",
    "description": "Документация контракта V009.1 / портал V013.2. Только чтение. Тарифы базовые, доступность динамическая. Схемы объектов частичные и допускают дополнительные поля; примеры синтетические."
  },
  "servers": [
    {
      "url": "https://api.realairlinesimulator.com"
    }
  ],
  "paths": {
    "/healthz": {
      "get": {
        "operationId": "health",
        "summary": "Состояние API",
        "description": "Проверяет HTTP-сервис, не доступность всех игровых данных и не работоспособность YooKassa.\n\nScope: не требуется отдельный scope. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Служебные"
        ],
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {},
                    "service": {},
                    "version": {},
                    "mode": {},
                    "timestamp": {}
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "status": "ok",
                      "service": "ras-api-read",
                      "version": "0.1.9.1",
                      "mode": "read",
                      "timestamp": "2026-11-26T10:00:00Z"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": null,
        "x-ras-base-tokens": 0
      }
    },
    "/ras/v1": {
      "get": {
        "operationId": "root",
        "summary": "Информация об API",
        "description": "Название, версия протокола, режим и статус development.\n\nScope: не требуется отдельный scope. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Служебные"
        ],
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {},
                    "service": {},
                    "version": {},
                    "mode": {},
                    "status": {}
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "name": "Real Airline Simulator API",
                      "service": "ras-api-read",
                      "version": "v1",
                      "mode": "read",
                      "status": "development"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": null,
        "x-ras-base-tokens": 0
      }
    },
    "/ras/v1/auth/check": {
      "get": {
        "operationId": "auth",
        "summary": "Проверка ключа",
        "description": "Проверяет ключ и возвращает ID ключа, приложения, аккаунта и scopes. Без отдельного scope.\n\nScope: не требуется отдельный scope. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Служебные"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "authenticated": {
                      "type": "boolean"
                    },
                    "key_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "application_id": {
                      "type": "string"
                    },
                    "account_id": {
                      "type": "string"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "authenticated": true,
                      "key_id": "00000000-0000-4000-8000-000000000001",
                      "application_id": "1",
                      "account_id": "1",
                      "scopes": [
                        "ras:airlines:read"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": null,
        "x-ras-base-tokens": 0
      }
    },
    "/ras/v1/wallet/balance": {
      "get": {
        "operationId": "wallet",
        "summary": "Баланс токенов",
        "description": "balance — весь баланс, available — с учётом активных резервов. Без отдельного scope.\n\nScope: не требуется отдельный scope. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Служебные"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "balance": {
                      "type": "string"
                    },
                    "available": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "balance": "1900",
                      "available": "1850"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": null,
        "x-ras-base-tokens": 0
      }
    },
    "/ras/v1/usage/application": {
      "get": {
        "operationId": "usage_app",
        "summary": "Аналитика приложения",
        "description": "Только успешные оплаченные запросы приложения, бюджеты и прогноз. applications, wallet и прогноз wallet_days_remaining равны null для application. Scope ras:usage:read или ras:usage:account:read.\n\nScope: ras:usage:read ИЛИ ras:usage:account:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Служебные"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Календарные дни UTC, текущие сутки неполные.",
            "schema": {
              "type": "integer",
              "enum": [
                7,
                30
              ],
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "view": {},
                        "account_id": {},
                        "application_id": {},
                        "timezone": {},
                        "days": {},
                        "from_day": {},
                        "through_day": {},
                        "today_partial": {},
                        "as_of": {},
                        "basis": {},
                        "price_kopecks_per_token": {},
                        "currency": {},
                        "totals": {},
                        "daily": {},
                        "endpoints": {},
                        "applications": {},
                        "applications_truncated": {},
                        "wallet": {},
                        "budgets": {},
                        "forecast": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "view": "application",
                        "account_id": "1",
                        "application_id": "2",
                        "timezone": "UTC",
                        "days": 7,
                        "basis": "charged_receipts_only",
                        "totals": {
                          "requests": "0",
                          "tokens": "0",
                          "replacement_cost_kopecks": "0"
                        },
                        "applications": null,
                        "wallet": null,
                        "forecast": {
                          "status": "no_activity",
                          "sample_days": 7,
                          "tokens_per_day": null,
                          "wallet_days_remaining": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "0"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": null,
        "x-ras-base-tokens": 0
      }
    },
    "/ras/v1/usage/account": {
      "get": {
        "operationId": "usage_account",
        "summary": "Аналитика аккаунта",
        "description": "Статистика всех приложений аккаунта. totals, daily, endpoints содержат requests, tokens, replacement_cost_kopecks как строки; разбивка applications ограничена 100 элементами. wallet.balance/available — строки. forecast рассчитывается по 7 завершённым суткам, при отсутствии активности прогнозные значения null.\n\nScope: ras:usage:account:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Служебные"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Календарные дни UTC, текущие сутки неполные.",
            "schema": {
              "type": "integer",
              "enum": [
                7,
                30
              ],
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "view": {},
                        "account_id": {},
                        "application_id": {},
                        "timezone": {},
                        "days": {},
                        "from_day": {},
                        "through_day": {},
                        "today_partial": {},
                        "as_of": {},
                        "basis": {},
                        "price_kopecks_per_token": {},
                        "currency": {},
                        "totals": {},
                        "daily": {},
                        "endpoints": {},
                        "applications": {},
                        "applications_truncated": {},
                        "wallet": {},
                        "budgets": {},
                        "forecast": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "view": "account",
                        "account_id": "1",
                        "application_id": null,
                        "timezone": "UTC",
                        "days": 7,
                        "basis": "charged_receipts_only",
                        "totals": {
                          "requests": "0",
                          "tokens": "0",
                          "replacement_cost_kopecks": "0"
                        },
                        "applications": [],
                        "wallet": {
                          "balance": "1900",
                          "available": "1850"
                        },
                        "forecast": {
                          "status": "no_activity",
                          "sample_days": 7,
                          "tokens_per_day": null,
                          "wallet_days_remaining": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "0"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": null,
        "x-ras-base-tokens": 0
      }
    },
    "/ras/v1/account/airlines": {
      "get": {
        "operationId": "account_airlines",
        "summary": "Авиакомпании аккаунта",
        "description": "Свои действующие (не объединённые) авиакомпании. Начните здесь, чтобы получить ID для следующих запросов.\n\nScope: ras:airlines:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "name": {},
                              "country": {},
                              "country_code": {},
                              "icao_code": {},
                              "hub_icao": {},
                              "status": {},
                              "parent_airline_id": {},
                              "cert_status": {},
                              "cert_deadline_at": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.airlines.list",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/overview": {
      "get": {
        "operationId": "overview",
        "summary": "Обзор авиакомпании",
        "description": "Собственная авиакомпания: основные сведения, сертификат, счётчики флота, маршрутов и рейсов, рейтинг.\n\nScope: ras:airlines:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {},
                        "name": {},
                        "country": {},
                        "country_code": {},
                        "icao_code": {},
                        "hub_icao": {},
                        "status": {},
                        "parent_airline_id": {},
                        "cert_status": {},
                        "cert_deadline_at": {},
                        "fleet_size": {},
                        "routes_count": {},
                        "active_routes_count": {},
                        "flights_count": {},
                        "active_flights_count": {},
                        "rating": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "id": 123,
                        "name": "Example Air",
                        "fleet_size": 2,
                        "routes_count": 1,
                        "active_routes_count": 1,
                        "flights_count": 1,
                        "active_flights_count": 1,
                        "rating": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.airlines.overview",
        "x-ras-base-tokens": 3
      }
    },
    "/ras/v1/airlines/{id}/ratings": {
      "get": {
        "operationId": "rating",
        "summary": "Рейтинг авиакомпании",
        "description": "Собственные показатели. rating может быть null; иначе overall_rating, service_rating, comfort_rating, punctuality_rating, reviews_count, updated_at.\n\nScope: ras:airlines:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "airline_id": {},
                        "rating": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "airline_id": 123,
                        "rating": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.airlines.ratings",
        "x-ras-base-tokens": 1
      }
    },
    "/ras/v1/public/airlines/{id}": {
      "get": {
        "operationId": "public_airline",
        "summary": "Публичный профиль авиакомпании",
        "description": "Публичная карточка существующей авиакомпании, включая счётчики и рейтинг. Не раскрывает финансы, флот по бортам или спрос.\n\nScope: ras:public:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {},
                        "name": {},
                        "country": {},
                        "country_code": {},
                        "icao_code": {},
                        "hub_icao": {},
                        "status": {},
                        "fleet_size": {},
                        "routes_count": {},
                        "active_routes_count": {},
                        "flights_count": {},
                        "active_flights_count": {},
                        "rating": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "id": 123,
                        "name": "Example Air",
                        "fleet_size": 2,
                        "routes_count": 1,
                        "rating": {
                          "overall_rating": null,
                          "reviews_count": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.public.airline",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/holdings/{id}/overview": {
      "get": {
        "operationId": "holding",
        "summary": "Обзор холдинга",
        "description": "ID головной авиакомпании. Возвращает её и прямые дочерние компании того же владельца, не рекурсивное дерево. До 501 записей; проверяйте truncated.\n\nScope: ras:airlines:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID головной авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "root_airline_id": {},
                        "truncated": {},
                        "airlines": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "root_airline_id": 123,
                        "truncated": false,
                        "airlines": [
                          {
                            "id": 123,
                            "name": "Example Air"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.holding.overview",
        "x-ras-base-tokens": 5
      }
    },
    "/ras/v1/account/snapshot": {
      "get": {
        "operationId": "snapshot",
        "summary": "Сводка аккаунта",
        "description": "Ресурсы аккаунта и до 501 собственных авиакомпаний с рейтингами и показателями выручки. Не суммируйте общий баланс по авиакомпаниям.\n\nScope: ras:snapshot:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "as_of": {},
                        "airline_limit": {},
                        "resources": {},
                        "airlines": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "as_of": "2026-11-26T10:00:00Z",
                        "airline_limit": 501,
                        "airlines": []
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.account.snapshot",
        "x-ras-base-tokens": 10
      }
    },
    "/ras/v1/airlines/{id}/finance": {
      "get": {
        "operationId": "airline_finance",
        "summary": "Финансы авиакомпании",
        "description": "Дневная выручка, сумма weekly_revenue активных рейсов, выручка/расходы/прибыль сегодня и распределение кодшеринга. Это не взаимозаменяемые показатели.\n\nScope: ras:finance:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "daily": {},
                        "weekly": {},
                        "today_revenue": {},
                        "today_expenses": {},
                        "today_profit": {},
                        "updated_at": {},
                        "codeshare": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "daily": "100000.00",
                        "weekly": "700000.00",
                        "today_revenue": "25000.00",
                        "today_expenses": "12000.00",
                        "today_profit": "13000.00",
                        "updated_at": "2026-11-26T10:00:00Z",
                        "codeshare": {
                          "operator_daily": "0",
                          "partner_daily": "0"
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.airline.finance",
        "x-ras-base-tokens": 3
      }
    },
    "/ras/v1/airlines/{id}/fleet/detail": {
      "get": {
        "operationId": "fleet_detail",
        "summary": "Флот по бортам",
        "description": "Собственные самолёты. home_icao — база приписки; hub_icao — текущее местоположение по игровой записи, не координаты в воздухе.\n\nScope: ras:aircraft:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "airline_id": {},
                              "model": {},
                              "registration": {},
                              "status": {},
                              "total_seats": {},
                              "total_hours": {},
                              "hub_icao": {},
                              "home_icao": {},
                              "is_cargo": {},
                              "is_parked": {},
                              "custom_name": {},
                              "engine": {},
                              "engine_id": {},
                              "wingtip": {},
                              "winglet_type": {},
                              "fuel_modifier": {},
                              "purchase_price": {},
                              "aircraft_role": {},
                              "active_lease_contract_id": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.fleet.detail",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/fleet/summary": {
      "get": {
        "operationId": "fleet_summary",
        "summary": "Сводка флота",
        "description": "Группировка собственных бортов по модели, до 1001 групп. models[]: model, count, configured_seats, purchase_value (строка), parked_count, cargo_count. Не оценка реально доступных пассажирских мест на конкретном рейсе.\n\nScope: ras:aircraft:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "models": {
                          "type": "array",
                          "maxItems": 1001,
                          "items": {
                            "type": "object",
                            "properties": {
                              "model": {},
                              "count": {
                                "type": "integer"
                              },
                              "configured_seats": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "purchase_value": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "parked_count": {
                                "type": "integer"
                              },
                              "cargo_count": {
                                "type": "integer"
                              }
                            }
                          }
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "models": [
                          {
                            "model": "b737-800",
                            "count": 2,
                            "configured_seats": 360,
                            "purchase_value": "90000000",
                            "parked_count": 1,
                            "cargo_count": 0
                          }
                        ]
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.fleet.summary",
        "x-ras-base-tokens": 3
      }
    },
    "/ras/v1/airlines/{id}/hubs": {
      "get": {
        "operationId": "hubs",
        "summary": "Хабы авиакомпании",
        "description": "Хабы собственной авиакомпании. stored_monthly_flights — сохранённый игровой показатель, schedule_templates — число связанных шаблонов; не фактические вылеты за календарный месяц.\n\nScope: ras:airlines:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "icao": {},
                              "city": {},
                              "country": {},
                              "is_primary": {},
                              "stored_monthly_flights": {},
                              "schedule_templates": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.hubs.list",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/routes": {
      "get": {
        "operationId": "routes_list",
        "summary": "Маршруты авиакомпании",
        "description": "Существующие собственные маршруты. stops[]: seq, icao, stop_type. schedule_templates — число шаблонов рейсов, не число фактических вылетов. Не поиск потенциального спроса.\n\nScope: ras:flights:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "status": {},
                              "distance_km": {},
                              "distance_nm": {},
                              "route_type": {},
                              "is_loop": {},
                              "stops": {},
                              "schedule_templates": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.routes.list",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/flights/{id}/segments": {
      "get": {
        "operationId": "segments",
        "summary": "Сегменты рейса",
        "description": "Шаблоны сегментов собственного рейса по flight_id, не leg_id. id — ID записи flight_segments, seq — порядок сегмента, tech_stops — технические остановки; ticket_price_* — заданные цены билетов, не спрос. Курсор по id, не seq.\n\nScope: ras:flights:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID рейса flight_id; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "flight_id": {},
                              "seq": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "distance_km": {},
                              "flown_km": {},
                              "tech_stops": {},
                              "duration_h": {},
                              "departure_day": {},
                              "departure_time": {},
                              "ticket_price_economy": {},
                              "ticket_price_premium_economy": {},
                              "ticket_price_business": {},
                              "ticket_price_premium_business": {},
                              "ticket_price_first": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.flights.segments",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/flights/airborne": {
      "get": {
        "operationId": "airborne",
        "summary": "Собственные рейсы в воздухе",
        "description": "Перелёты своей авиакомпании со статусом airborne. Для публичных координат используйте радар.\n\nScope: ras:flights:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "flight_id": {},
                              "leg_type": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "scheduled_departure": {},
                              "scheduled_arrival": {},
                              "actual_departure": {},
                              "actual_arrival": {},
                              "status": {},
                              "flight_type": {},
                              "seq": {},
                              "segment_id": {},
                              "cancelled_at": {},
                              "aircraft_id": {},
                              "flight_number": {},
                              "is_ferry": {},
                              "ferry_purpose": {},
                              "progress": {},
                              "actual_delay_seconds": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.legs.airborne",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/flights/history": {
      "get": {
        "operationId": "history",
        "summary": "История перелётов",
        "description": "Завершённые и отменённые перелёты; период по плановому времени вылета, не времени записи.\n\nScope: ras:flights:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "flight_id": {},
                              "leg_type": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "scheduled_departure": {},
                              "scheduled_arrival": {},
                              "actual_departure": {},
                              "actual_arrival": {},
                              "status": {},
                              "flight_type": {},
                              "seq": {},
                              "segment_id": {},
                              "cancelled_at": {},
                              "aircraft_id": {},
                              "flight_number": {},
                              "is_ferry": {},
                              "ferry_purpose": {},
                              "progress": {},
                              "actual_delay_seconds": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.legs.history",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/flights/ferry": {
      "get": {
        "operationId": "ferry",
        "summary": "Перегоны",
        "description": "Собственные перегоны в статусах scheduled, airborne, mro_hold, crew_hold, slot_hold.\n\nScope: ras:flights:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "flight_id": {},
                              "leg_type": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "scheduled_departure": {},
                              "scheduled_arrival": {},
                              "actual_departure": {},
                              "actual_arrival": {},
                              "status": {},
                              "flight_type": {},
                              "seq": {},
                              "segment_id": {},
                              "cancelled_at": {},
                              "aircraft_id": {},
                              "flight_number": {},
                              "is_ferry": {},
                              "ferry_purpose": {},
                              "progress": {},
                              "actual_delay_seconds": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.legs.ferry",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/flights/delays": {
      "get": {
        "operationId": "delays",
        "summary": "Задержки и отмены",
        "description": "Прошедшие по плановому вылету сегменты: отмены, фактические опоздания либо ещё не вылетевшие scheduled/hold. actual_delay_seconds относится к фактическому вылету и может быть null.\n\nScope: ras:flights:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "flight_id": {},
                              "leg_type": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "scheduled_departure": {},
                              "scheduled_arrival": {},
                              "actual_departure": {},
                              "actual_arrival": {},
                              "status": {},
                              "flight_type": {},
                              "seq": {},
                              "segment_id": {},
                              "cancelled_at": {},
                              "aircraft_id": {},
                              "flight_number": {},
                              "is_ferry": {},
                              "ferry_purpose": {},
                              "progress": {},
                              "actual_delay_seconds": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.legs.delays",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/flights/operations": {
      "get": {
        "operationId": "operations",
        "summary": "Полётные операции",
        "description": "Только собственные airborne/completed с фактическим вылетом в пределах days. Фактические pax_y/w/c/j/f, pax_count, cargo_kg относятся к уже вылетевшим сегментам. Не спрос, не будущие бронирования.\n\nScope: ras:flights:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Флот и полёты"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "flight_id": {},
                              "leg_type": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "scheduled_departure": {},
                              "scheduled_arrival": {},
                              "actual_departure": {},
                              "actual_arrival": {},
                              "status": {},
                              "flight_type": {},
                              "seq": {},
                              "segment_id": {},
                              "cancelled_at": {},
                              "aircraft_id": {},
                              "flight_number": {},
                              "is_ferry": {},
                              "ferry_purpose": {},
                              "progress": {},
                              "actual_delay_seconds": {},
                              "pax_y": {},
                              "pax_w": {},
                              "pax_c": {},
                              "pax_j": {},
                              "pax_f": {},
                              "pax_count": {},
                              "cargo_kg": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.legs.operations",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/flights/finance": {
      "get": {
        "operationId": "leg_finance",
        "summary": "Финансы перелётов",
        "description": "Собственные airborne/completed с фактическим вылетом в пределах периода. Выручка, расходы, топливо и CO₂. Не прогноз будущих доходов.\n\nScope: ras:finance:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "flight_id": {},
                              "revenue": {},
                              "fuel_cost": {},
                              "airport_fees": {},
                              "co2_used": {},
                              "ancillary_revenue": {},
                              "en_route_fee": {},
                              "co2_penalty": {},
                              "fuel_used_kg": {},
                              "actual_departure": {},
                              "actual_arrival": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.legs.finance",
        "x-ras-base-tokens": 3
      }
    },
    "/ras/v1/account/ledger": {
      "get": {
        "operationId": "ledger",
        "summary": "Финансовый журнал игры",
        "description": "Движения игровых средств аккаунта за период. id и ref_id — строки (bigint); amount и balance_after — десятичные строки. Не журнал покупки API-токенов.\n\nScope: ras:finance:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,18})$",
              "default": "0",
              "description": "Не более 9223372036854775807"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "pattern": "^[0-9]+$"
                              },
                              "airline_id": {},
                              "amount": {
                                "type": "string"
                              },
                              "balance_after": {
                                "type": "string"
                              },
                              "category": {},
                              "ref_type": {},
                              "ref_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "created_at": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.ledger.entries",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/account/ledger/summary": {
      "get": {
        "operationId": "ledger_summary",
        "summary": "Сводка финансового журнала",
        "description": "Группировка доходов, расходов и net по category; opening_balance исключён. categories[] содержит category, income, expense, net (десятичные строки), entries. Расход expense — положительная величина; net знаковый.\n\nScope: ras:finance:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "days": {},
                        "from": {},
                        "to": {},
                        "categories": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "days": 7,
                        "from": "2026-11-19T10:00:00Z",
                        "to": "2026-11-26T10:00:00Z",
                        "categories": []
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.ledger.summary",
        "x-ras-base-tokens": 5
      }
    },
    "/ras/v1/account/notifications": {
      "get": {
        "operationId": "notifications",
        "summary": "Уведомления",
        "description": "Метаданные собственных уведомлений за последние 7 суток, включая is_read. Получение не отмечает уведомления прочитанными.\n\nScope: ras:notifications:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Аккаунт и авиакомпании"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "type": {},
                              "flight_id": {},
                              "is_read": {},
                              "created_at": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.notifications.list",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/antitrust/warnings": {
      "get": {
        "operationId": "warnings",
        "summary": "Антимонопольные предупреждения",
        "description": "Собственные предупреждения за период по warned_at. Не выдаёт рыночный медианный спрос.\n\nScope: ras:compliance:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "airline_id": {},
                              "flight_id": {},
                              "rule_id": {},
                              "price_class": {},
                              "origin_icao": {},
                              "destination_icao": {},
                              "violation_price": {},
                              "warned_at": {},
                              "deadline": {},
                              "status": {},
                              "fine_applied": {},
                              "fined_at": {},
                              "resolved_at": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.antitrust.warnings",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/antitrust/fines": {
      "get": {
        "operationId": "fines",
        "summary": "Антимонопольные штрафы",
        "description": "Собственные штрафы по fined_at; id и курсор могут быть строками bigint.\n\nScope: ras:compliance:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,18})$",
              "default": "0",
              "description": "Не более 9223372036854775807"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Период в сутках.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "pattern": "^[0-9]+$"
                              },
                              "airline_id": {},
                              "flight_id": {},
                              "rule_id": {},
                              "amount": {},
                              "fined_at": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.antitrust.fines",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/airlines/{id}/taxes": {
      "get": {
        "operationId": "taxes",
        "summary": "Налоговые декларации",
        "description": "Собственные декларации, суммы, дедлайны и статусы. Нет операции оплаты.\n\nScope: ras:finance:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID авиакомпании; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "airline_id": {},
                              "period": {},
                              "deadline": {},
                              "status": {},
                              "total_tax": {},
                              "penalty_accrued": {},
                              "paid_amount": {},
                              "paid_at": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.taxes.list",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/market/history": {
      "get": {
        "operationId": "market_history",
        "summary": "История рынка",
        "description": "Цены топлива и квот CO₂. days=1 — усреднение по минутам, days=14 — по дням. Не более 1500 точек; не возвращает объём спроса.\n\nScope: ras:market:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "1 — по минутам, 14 — по дням.",
            "schema": {
              "type": "integer",
              "enum": [
                1,
                14
              ],
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "days": {},
                        "points": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "recorded_at": {
                                "type": "string"
                              },
                              "fuel_price": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "quota_price": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            }
                          }
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "days": 1,
                        "points": [
                          {
                            "recorded_at": "2026-11-26T09:59:00Z",
                            "fuel_price": "1.2500",
                            "quota_price": "0.3000"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.market.history",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/market/current": {
      "get": {
        "operationId": "market_latest",
        "summary": "Текущие цены рынка",
        "description": "Расчётная цена топлива и квот CO₂, as_of. Кеш до 30 секунд; не является гарантированной ценой будущей закупки.\n\nScope: ras:market:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Финансы и рынок"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "as_of": {},
                        "fuel_price": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "quota_price": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "as_of": "2026-11-26T10:00:00Z",
                        "fuel_price": "1.2500",
                        "quota_price": "0.3000"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.market.current",
        "x-ras-base-tokens": 1
      }
    },
    "/ras/v1/catalog/airports/{code}": {
      "get": {
        "operationId": "airport",
        "summary": "Карточка аэропорта",
        "description": "Поиск по коду каталога/ICAO или однозначному IATA, регистр не важен. Дополнительно infrastructure: ВПП, одновременность и слот-пропускная способность; отсутствующие сведения могут быть null.\n\nScope: ras:airports:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Справочники"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "Код каталога, 1–64 ASCII-символа.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
            },
            "example": "UUEE"
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {},
                        "name": {},
                        "icao": {},
                        "iata": {},
                        "icao_class": {},
                        "country": {},
                        "city": {},
                        "lat": {},
                        "lon": {},
                        "lng": {},
                        "catering": {},
                        "fueling": {},
                        "parking_stand": {},
                        "parking_gate": {},
                        "cleanup": {},
                        "gpu": {},
                        "acu": {},
                        "infrastructure": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "icao": "UUEE",
                        "name": "Example airport",
                        "infrastructure": {
                          "runways": null,
                          "simultaneous": null,
                          "slot_level": null,
                          "max_moves_per_hour": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.airports.get",
        "x-ras-base-tokens": 1
      }
    },
    "/ras/v1/catalog/airports": {
      "get": {
        "operationId": "airports",
        "summary": "Каталог аэропортов",
        "description": "Проекция справочника: базовые сведения и разрешённые характеристики. Нет коэффициентов пассажирского спроса.\n\nScope: ras:airports:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Справочники"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Позиция в каталоге (не ID).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "name": {},
                              "icao": {},
                              "iata": {},
                              "icao_class": {},
                              "country": {},
                              "city": {},
                              "lat": {},
                              "lon": {},
                              "lng": {},
                              "catering": {},
                              "fueling": {},
                              "parking_stand": {},
                              "parking_gate": {},
                              "cleanup": {},
                              "gpu": {},
                              "acu": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalog_version": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null,
                        "catalog_version": "1764000000000"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.catalog.airports",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/catalog/aircraft": {
      "get": {
        "operationId": "models",
        "summary": "Каталог моделей ВС",
        "description": "Разрешённые характеристики моделей: вместимость, размеры, двигатели, дальность, обслуживание и другие справочные поля. Не остаток доступных бортов в магазине.\n\nScope: ras:aircraft:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Справочники"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Позиция в каталоге (не ID).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "icao": {},
                              "name": {},
                              "class": {},
                              "maxpax": {},
                              "layout": {},
                              "layout_business": {},
                              "layout_first": {},
                              "body_type": {},
                              "maxcargo": {},
                              "long": {},
                              "mtow": {},
                              "engines_general": {},
                              "additional_engines": {},
                              "wingtip_type": {},
                              "range": {},
                              "speed": {},
                              "fuel_burn_hourly": {},
                              "co2_burn_hourly": {},
                              "maintenance_ground": {},
                              "a_check_hours": {},
                              "a_check_duration": {},
                              "b_check_hours": {},
                              "b_check_duration": {},
                              "c_check_hours": {},
                              "c_check_duration": {},
                              "d_check_hours": {},
                              "d_check_duration": {},
                              "wingspan": {},
                              "length": {},
                              "height": {},
                              "cost": {},
                              "type": {},
                              "captain": {},
                              "second": {},
                              "navigator": {},
                              "engineer": {},
                              "attendants": {},
                              "manufacturer_id": {},
                              "donate": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalog_version": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null,
                        "catalog_version": "1764000000000"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.catalog.aircraft",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/catalog/aircraft/{code}": {
      "get": {
        "operationId": "model",
        "summary": "Карточка модели ВС",
        "description": "Код/ID модели из каталога. Не ID конкретного самолёта; поля справочника могут отсутствовать.\n\nScope: ras:aircraft:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Справочники"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "Код каталога, 1–64 ASCII-символа.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
            },
            "example": "concorde"
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {},
                        "icao": {},
                        "name": {},
                        "class": {},
                        "maxpax": {},
                        "layout": {},
                        "layout_business": {},
                        "layout_first": {},
                        "body_type": {},
                        "maxcargo": {},
                        "long": {},
                        "mtow": {},
                        "engines_general": {},
                        "additional_engines": {},
                        "wingtip_type": {},
                        "range": {},
                        "speed": {},
                        "fuel_burn_hourly": {},
                        "co2_burn_hourly": {},
                        "maintenance_ground": {},
                        "a_check_hours": {},
                        "a_check_duration": {},
                        "b_check_hours": {},
                        "b_check_duration": {},
                        "c_check_hours": {},
                        "c_check_duration": {},
                        "d_check_hours": {},
                        "d_check_duration": {},
                        "wingspan": {},
                        "length": {},
                        "height": {},
                        "cost": {},
                        "type": {},
                        "captain": {},
                        "second": {},
                        "navigator": {},
                        "engineer": {},
                        "attendants": {},
                        "manufacturer_id": {},
                        "donate": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "id": "concorde",
                        "name": "Concorde"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.catalog.model",
        "x-ras-base-tokens": 1
      }
    },
    "/ras/v1/catalog/engines": {
      "get": {
        "operationId": "engines",
        "summary": "Каталог двигателей",
        "description": "ID, название и коэффициенты эффективности из справочника. Сохраняется оригинальное написание полей fuel_efficenty и co2_efficenty.\n\nScope: ras:aircraft:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Справочники"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Позиция в каталоге (не ID).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "engine_id": {},
                              "engine_name": {},
                              "fuel_efficenty": {},
                              "co2_efficenty": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalog_version": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null,
                        "catalog_version": "1764000000000"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.catalog.engines",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/catalog/manufacturers": {
      "get": {
        "operationId": "manufacturers",
        "summary": "Производители",
        "description": "Справочные ID, название, страна, active и group_id.\n\nScope: ras:aircraft:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Справочники"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Позиция в каталоге (не ID).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {},
                              "name": {},
                              "country": {},
                              "active": {},
                              "group_id": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalog_version": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "items": [],
                        "next_cursor": null,
                        "catalog_version": "1764000000000"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.catalog.manufacturers",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/radar/airborne": {
      "get": {
        "operationId": "radar",
        "summary": "Радар: самолёты в воздухе",
        "description": "Публичные игровые позиции, направление и доступные метаданные. Кеш снимка до 30 секунд; as_of — время получения снимка API. Курсор по leg_id, не flight_id.\n\nScope: ras:public:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Радар и табло"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Курсор предыдущей страницы, для первой 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на странице.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "next_cursor"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "leg_id": {},
                              "flight_id": {},
                              "airline_id": {},
                              "flight_number": {},
                              "is_ferry": {},
                              "flight_type": {},
                              "registration": {},
                              "model": {},
                              "lat": {},
                              "lon": {},
                              "alt_ft": {},
                              "heading": {},
                              "progress": {},
                              "dep_runway": {},
                              "arr_runway": {},
                              "origin": {},
                              "destination": {},
                              "scheduled_departure": {},
                              "scheduled_arrival": {},
                              "airline_name": {},
                              "brand_name": {}
                            },
                            "additionalProperties": true
                          }
                        },
                        "next_cursor": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "as_of": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "as_of": "2026-11-26T10:00:00Z",
                        "items": [],
                        "next_cursor": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.radar.airborne",
        "x-ras-base-tokens": 1
      }
    },
    "/ras/v1/radar/airborne/{id}": {
      "get": {
        "operationId": "radar_one",
        "summary": "Радар: один перелёт",
        "description": "ID активного перелёта leg_id из общего радара. Если исчез из снимка, возможен 404. Не гарантирует доступность после посадки.\n\nScope: ras:public:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Радар и табло"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID перелёта leg_id; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "as_of": {},
                        "leg_id": {},
                        "flight_id": {},
                        "airline_id": {},
                        "flight_number": {},
                        "is_ferry": {},
                        "flight_type": {},
                        "registration": {},
                        "model": {},
                        "lat": {},
                        "lon": {},
                        "alt_ft": {},
                        "heading": {},
                        "progress": {},
                        "dep_runway": {},
                        "arr_runway": {},
                        "origin": {},
                        "destination": {},
                        "scheduled_departure": {},
                        "scheduled_arrival": {},
                        "airline_name": {},
                        "brand_name": {}
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "as_of": "2026-11-26T10:00:00Z",
                        "leg_id": 123,
                        "lat": 55.0,
                        "lon": 37.0,
                        "heading": 90,
                        "alt_ft": 33000
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.radar.airborne.get",
        "x-ras-base-tokens": 1
      }
    },
    "/ras/v1/radar/route/{id}": {
      "get": {
        "operationId": "radar_route",
        "summary": "Радар: геометрия перелёта",
        "description": "Только перелёт из текущего снимка. geometry — GeoJSON LineString, координаты [долгота, широта], от 2 до 5000 точек. Не гарантируется наличие SID/STAR. Зависит от игрового сервера.\n\nScope: ras:public:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Радар и табло"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID перелёта leg_id; замените пример на доступный вам ID.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "leg_id": {
                          "type": "integer"
                        },
                        "as_of": {
                          "type": "string"
                        },
                        "geometry": {
                          "type": "object",
                          "required": [
                            "type",
                            "coordinates"
                          ],
                          "properties": {
                            "type": {
                              "const": "LineString"
                            },
                            "coordinates": {
                              "type": "array",
                              "minItems": 2,
                              "maxItems": 5000,
                              "items": {
                                "type": "array",
                                "minItems": 2,
                                "maxItems": 2,
                                "prefixItems": [
                                  {
                                    "type": "number",
                                    "minimum": -180,
                                    "maximum": 180
                                  },
                                  {
                                    "type": "number",
                                    "minimum": -90,
                                    "maximum": 90
                                  }
                                ]
                              }
                            }
                          }
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "leg_id": 123,
                        "as_of": "2026-11-26T10:00:00Z",
                        "geometry": {
                          "type": "LineString",
                          "coordinates": [
                            [
                              37.4,
                              55.97
                            ],
                            [
                              30.26,
                              59.8
                            ]
                          ]
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.radar.route",
        "x-ras-base-tokens": 1
      }
    },
    "/ras/v1/radar/arrivals/{code}": {
      "get": {
        "operationId": "board_arrivals",
        "summary": "Табло прибытий",
        "description": "Публичные записи перелётов: окно от −2 до +24 часов по scheduled_arrival. Сортировка по плановому времени, затем ID. estimated_time всегда null. Код аэропорта разрешается через справочник, как в карточке аэропорта.\n\nScope: ras:public:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Радар и табло"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "Код каталога, 1–64 ASCII-символа.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
            },
            "example": "UUEE"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Смещение списка табло.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на каждой стороне табло.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "airport": {
                          "type": "string"
                        },
                        "as_of": {
                          "type": "string"
                        },
                        "window_start": {
                          "type": "string"
                        },
                        "window_end": {
                          "type": "string"
                        },
                        "arrivals": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "leg_id": {},
                                  "flight_id": {},
                                  "airline_id": {},
                                  "airline_name": {},
                                  "airline_code": {},
                                  "flight_number": {},
                                  "aircraft_id": {},
                                  "registration": {},
                                  "model": {},
                                  "origin": {},
                                  "destination": {},
                                  "scheduled_departure": {},
                                  "scheduled_arrival": {},
                                  "actual_departure": {},
                                  "actual_arrival": {},
                                  "estimated_time": {},
                                  "status": {},
                                  "flight_type": {},
                                  "is_ferry": {}
                                },
                                "additionalProperties": true
                              }
                            },
                            "next_offset": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "truncated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "items",
                            "next_offset",
                            "truncated"
                          ]
                        },
                        "departures": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "leg_id": {},
                                  "flight_id": {},
                                  "airline_id": {},
                                  "airline_name": {},
                                  "airline_code": {},
                                  "flight_number": {},
                                  "aircraft_id": {},
                                  "registration": {},
                                  "model": {},
                                  "origin": {},
                                  "destination": {},
                                  "scheduled_departure": {},
                                  "scheduled_arrival": {},
                                  "actual_departure": {},
                                  "actual_arrival": {},
                                  "estimated_time": {},
                                  "status": {},
                                  "flight_type": {},
                                  "is_ferry": {}
                                },
                                "additionalProperties": true
                              }
                            },
                            "next_offset": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "truncated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "items",
                            "next_offset",
                            "truncated"
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "airport": "UUEE",
                        "as_of": "2026-11-26T10:00:00Z",
                        "window_start": "2026-11-26T08:00:00Z",
                        "window_end": "2026-11-27T10:00:00Z",
                        "arrivals": {
                          "items": [],
                          "next_offset": null,
                          "truncated": false
                        },
                        "departures": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.radar.arrivals",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/radar/departures/{code}": {
      "get": {
        "operationId": "board_departures",
        "summary": "Табло отправлений",
        "description": "Окно от −2 до +24 часов по scheduled_departure. Сортировка по плановому времени, затем ID. estimated_time всегда null. Код аэропорта разрешается через справочник.\n\nScope: ras:public:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Радар и табло"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "Код каталога, 1–64 ASCII-символа.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
            },
            "example": "UUEE"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Смещение списка табло.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на каждой стороне табло.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "airport": {
                          "type": "string"
                        },
                        "as_of": {
                          "type": "string"
                        },
                        "window_start": {
                          "type": "string"
                        },
                        "window_end": {
                          "type": "string"
                        },
                        "arrivals": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "leg_id": {},
                                  "flight_id": {},
                                  "airline_id": {},
                                  "airline_name": {},
                                  "airline_code": {},
                                  "flight_number": {},
                                  "aircraft_id": {},
                                  "registration": {},
                                  "model": {},
                                  "origin": {},
                                  "destination": {},
                                  "scheduled_departure": {},
                                  "scheduled_arrival": {},
                                  "actual_departure": {},
                                  "actual_arrival": {},
                                  "estimated_time": {},
                                  "status": {},
                                  "flight_type": {},
                                  "is_ferry": {}
                                },
                                "additionalProperties": true
                              }
                            },
                            "next_offset": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "truncated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "items",
                            "next_offset",
                            "truncated"
                          ]
                        },
                        "departures": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "leg_id": {},
                                  "flight_id": {},
                                  "airline_id": {},
                                  "airline_name": {},
                                  "airline_code": {},
                                  "flight_number": {},
                                  "aircraft_id": {},
                                  "registration": {},
                                  "model": {},
                                  "origin": {},
                                  "destination": {},
                                  "scheduled_departure": {},
                                  "scheduled_arrival": {},
                                  "actual_departure": {},
                                  "actual_arrival": {},
                                  "estimated_time": {},
                                  "status": {},
                                  "flight_type": {},
                                  "is_ferry": {}
                                },
                                "additionalProperties": true
                              }
                            },
                            "next_offset": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "truncated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "items",
                            "next_offset",
                            "truncated"
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "airport": "UUEE",
                        "as_of": "2026-11-26T10:00:00Z",
                        "window_start": "2026-11-26T08:00:00Z",
                        "window_end": "2026-11-27T10:00:00Z",
                        "arrivals": null,
                        "departures": {
                          "items": [],
                          "next_offset": null,
                          "truncated": false
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.radar.departures",
        "x-ras-base-tokens": 2
      }
    },
    "/ras/v1/radar/board/{code}": {
      "get": {
        "operationId": "board_both",
        "summary": "Объединённое табло",
        "description": "Обе стороны табло. offset и limit применяются отдельно к каждому списку; при разных next_offset продолжайте раздельными endpoints. estimated_time всегда null. Код аэропорта разрешается через справочник.\n\nScope: ras:public:read. Тариф в справочнике — базовый, не текущая цена.",
        "tags": [
          "Радар и табло"
        ],
        "security": [
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "Код каталога, 1–64 ASCII-символа.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
            },
            "example": "UUEE"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Смещение списка табло.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Записей на каждой стороне табло.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешный ответ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "airport": {
                          "type": "string"
                        },
                        "as_of": {
                          "type": "string"
                        },
                        "window_start": {
                          "type": "string"
                        },
                        "window_end": {
                          "type": "string"
                        },
                        "arrivals": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "leg_id": {},
                                  "flight_id": {},
                                  "airline_id": {},
                                  "airline_name": {},
                                  "airline_code": {},
                                  "flight_number": {},
                                  "aircraft_id": {},
                                  "registration": {},
                                  "model": {},
                                  "origin": {},
                                  "destination": {},
                                  "scheduled_departure": {},
                                  "scheduled_arrival": {},
                                  "actual_departure": {},
                                  "actual_arrival": {},
                                  "estimated_time": {},
                                  "status": {},
                                  "flight_type": {},
                                  "is_ferry": {}
                                },
                                "additionalProperties": true
                              }
                            },
                            "next_offset": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "truncated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "items",
                            "next_offset",
                            "truncated"
                          ]
                        },
                        "departures": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "leg_id": {},
                                  "flight_id": {},
                                  "airline_id": {},
                                  "airline_name": {},
                                  "airline_code": {},
                                  "flight_number": {},
                                  "aircraft_id": {},
                                  "registration": {},
                                  "model": {},
                                  "origin": {},
                                  "destination": {},
                                  "scheduled_departure": {},
                                  "scheduled_arrival": {},
                                  "actual_departure": {},
                                  "actual_arrival": {},
                                  "estimated_time": {},
                                  "status": {},
                                  "flight_type": {},
                                  "is_ferry": {}
                                },
                                "additionalProperties": true
                              }
                            },
                            "next_offset": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "truncated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "items",
                            "next_offset",
                            "truncated"
                          ]
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "illustrative": {
                    "summary": "Условный, при необходимости сокращённый ответ",
                    "value": {
                      "data": {
                        "airport": "UUEE",
                        "as_of": "2026-11-26T10:00:00Z",
                        "window_start": "2026-11-26T08:00:00Z",
                        "window_end": "2026-11-27T10:00:00Z",
                        "arrivals": {
                          "items": [],
                          "next_offset": null,
                          "truncated": false
                        },
                        "departures": {
                          "items": [],
                          "next_offset": null,
                          "truncated": false
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Идентификатор запроса для диагностики"
              },
              "X-API-Tokens-Charged": {
                "schema": {
                  "type": "string"
                },
                "description": "Фактическая стоимость в токенах"
              },
              "X-API-Tokens-Balance": {
                "schema": {
                  "type": "string"
                },
                "description": "Баланс после списания"
              }
            }
          },
          "400": {
            "description": "Некорректный запрос",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Недействительный ключ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Недостаточно токенов или бюджет",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Нет полномочий",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Не найдено или нет доступа к объекту",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Метод не поддерживается",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Слишком большой ответ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Лимит запросов/параллельности",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Сервис или endpoint недоступен",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-ras-endpoint-code": "ras.radar.board",
        "x-ras-base-tokens": 3
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "hlm_live_…"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "requestId": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": true
      }
    }
  }
}
