{
  "openapi": "3.0.3",
  "info": {
    "title": "ExosAI web and gateway contract",
    "version": "1.0.0",
    "description": "Shared core contract for account analytics, model discovery and chat. Other account/admin routes remain documented separately."
  },
  "servers": [
    {
      "url": "https://api.exosai.tech"
    }
  ],
  "components": {
    "schemas": {
      "UsageMetrics": {
        "type": "object",
        "required": [
          "requests",
          "tokens",
          "spend"
        ],
        "properties": {
          "requests": {
            "type": "integer",
            "minimum": 0
          },
          "tokens": {
            "type": "integer",
            "minimum": 0
          },
          "spend": {
            "type": "number",
            "minimum": 0,
            "description": "Settled USD spend"
          }
        }
      },
      "ApiError": {
        "type": "object",
        "required": [
          "code",
          "message",
          "request_id",
          "retryable",
          "retry_after"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "requestId": {
            "type": "string",
            "description": "Legacy account alias"
          },
          "retryable": {
            "type": "boolean",
            "description": "Transient condition. Does not authorize automatic inference retries."
          },
          "retry_after": {
            "type": "number",
            "nullable": true,
            "description": "Seconds until retry, if known"
          },
          "hint": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ApiError"
          }
        }
      },
      "AccountUsage": {
        "type": "object",
        "required": [
          "window",
          "totals",
          "days",
          "models",
          "keys",
          "modelCoverage",
          "updatedAt"
        ],
        "properties": {
          "window": {
            "type": "object",
            "required": [
              "from",
              "to",
              "days",
              "timezone"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              },
              "days": {
                "type": "integer"
              },
              "timezone": {
                "type": "string",
                "enum": [
                  "UTC"
                ]
              }
            }
          },
          "totals": {
            "$ref": "#/components/schemas/UsageMetrics"
          },
          "days": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/UsageMetrics"
                },
                {
                  "type": "object",
                  "required": [
                    "date"
                  ],
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date"
                    }
                  }
                }
              ]
            }
          },
          "models": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/UsageMetrics"
                },
                {
                  "type": "object",
                  "required": [
                    "model"
                  ],
                  "properties": {
                    "model": {
                      "type": "string",
                      "nullable": true,
                      "description": "Null for migrated usage without model information"
                    }
                  }
                }
              ]
            }
          },
          "keys": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/UsageMetrics"
                },
                {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "revoked",
                        "disabled",
                        "expired",
                        "removed",
                        "session"
                      ]
                    }
                  }
                }
              ]
            }
          },
          "modelCoverage": {
            "type": "object",
            "required": [
              "classifiedRequests",
              "unclassifiedRequests"
            ],
            "properties": {
              "classifiedRequests": {
                "type": "integer"
              },
              "unclassifiedRequests": {
                "type": "integer"
              }
            }
          },
          "updatedAt": {
            "type": "integer"
          }
        }
      },
      "ChatRequest": {
        "type": "object",
        "required": [
          "model",
          "messages"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "role",
                "content"
              ],
              "properties": {
                "role": {
                  "type": "string",
                  "enum": [
                    "system",
                    "user",
                    "assistant",
                    "tool"
                  ]
                },
                "content": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  ]
                }
              }
            }
          },
          "stream": {
            "type": "boolean",
            "default": false
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 1
          },
          "temperature": {
            "type": "number"
          }
        },
        "additionalProperties": true
      },
      "ModelList": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "object": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "object": {
                  "type": "string"
                },
                "owned_by": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          }
        }
      },
      "RatePolicy": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "rpm": {
            "type": "integer",
            "minimum": 0
          },
          "rpd": {
            "type": "integer",
            "minimum": 0
          },
          "concurrency": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "RateCounter": {
        "type": "object",
        "required": [
          "used",
          "limit",
          "resetAt"
        ],
        "properties": {
          "used": {
            "type": "integer"
          },
          "limit": {
            "type": "integer",
            "description": "0 means unlimited"
          },
          "resetAt": {
            "type": "integer",
            "description": "Unix milliseconds"
          }
        }
      },
      "AccountRateLimits": {
        "type": "object",
        "properties": {
          "operator": {
            "$ref": "#/components/schemas/RatePolicy"
          },
          "personal": {
            "$ref": "#/components/schemas/RatePolicy"
          },
          "effective": {
            "$ref": "#/components/schemas/RatePolicy"
          },
          "scope": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "updatedAt": {
            "type": "integer"
          },
          "counters": {
            "type": "object",
            "properties": {
              "rpm": {
                "$ref": "#/components/schemas/RateCounter"
              },
              "rpd": {
                "$ref": "#/components/schemas/RateCounter"
              },
              "concurrency": {
                "$ref": "#/components/schemas/RateCounter"
              }
            }
          },
          "keys": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "models": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "VpsPlan": {
        "type": "object",
        "required": [
          "id",
          "name",
          "cpuCores",
          "ramMb",
          "ssdGb",
          "monthlyPrice",
          "enabled"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "cpuCores": {
            "type": "integer",
            "minimum": 1,
            "maximum": 64
          },
          "ramMb": {
            "type": "integer",
            "minimum": 1,
            "maximum": 262144
          },
          "ssdGb": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2000
          },
          "monthlyPrice": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0
          },
          "enabled": {
            "type": "boolean"
          }
        }
      },
      "VpsServer": {
        "type": "object",
        "required": [
          "id",
          "name",
          "owner",
          "status",
          "plan",
          "image",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "owner": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "provisioning",
              "ready",
              "failed",
              "cancelled",
              "rejected",
              "suspended",
              "suspending",
              "resuming"
            ]
          },
          "plan": {
            "$ref": "#/components/schemas/VpsPlan"
          },
          "image": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer"
          },
          "network": {
            "type": "string"
          },
          "runtime": {
            "type": "object",
            "additionalProperties": true
          },
          "protection": {
            "type": "object",
            "additionalProperties": true
          }
        }
      }
    },
    "securitySchemes": {
      "session": {
        "type": "apiKey",
        "in": "cookie",
        "name": "poliai.uid"
      },
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/api/user/usage": {
      "get": {
        "operationId": "getAccountUsage",
        "summary": "Settled usage belonging to the authenticated account",
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive UTC day; maximum 366 days."
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive UTC day; maximum 366 days."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountUsage"
                }
              }
            }
          },
          "400": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/models": {
      "get": {
        "operationId": "listModels",
        "summary": "Models available to the authenticated caller",
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelList"
                }
              }
            }
          },
          "401": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/chat/completions": {
      "post": {
        "operationId": "createChatCompletion",
        "summary": "Create or stream a chat completion",
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OpenAI-compatible completion or SSE stream. Streaming errors use the same error envelope.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "Structured error. Retry-After is expressed in seconds when present.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/rate-limits": {
      "get": {
        "operationId": "getAccountRateLimits",
        "summary": "Read owner-scoped account, key and shared-model limits",
        "responses": {
          "200": {
            "description": "Current account budget and server counters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountRateLimits"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required"
          }
        }
      },
      "put": {
        "operationId": "setPersonalRateLimits",
        "summary": "Lower personal caps within operator policy",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RatePolicy"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current account budget and server counters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountRateLimits"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required"
          },
          "400": {
            "description": "Invalid input or attempt to exceed operator cap"
          }
        }
      }
    },
    "/api/user/vps/plans": {
      "get": {
        "operationId": "listVpsPlans",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        }
      }
    },
    "/api/user/vps/servers": {
      "get": {
        "operationId": "listVpsServers",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        }
      },
      "post": {
        "operationId": "requestVpsServer",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          },
          "201": {
            "description": "Pending request saved; no charge or provisioning"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/user/vps/servers/{id}": {
      "get": {
        "operationId": "getVpsServer",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/user/vps/servers/{id}/cancel": {
      "post": {
        "operationId": "cancelVpsRequest",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/user/vps/servers/{id}/actions": {
      "post": {
        "operationId": "controlVpsServer",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/user/admin/vps/plans": {
      "get": {
        "operationId": "listAdminVpsPlans",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        }
      }
    },
    "/api/user/admin/vps/plans/{id}": {
      "put": {
        "operationId": "saveVpsPlan",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/user/admin/vps/orders": {
      "get": {
        "operationId": "listVpsOrders",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        }
      }
    },
    "/api/user/admin/vps/orders/{id}/{decision}": {
      "post": {
        "operationId": "reviewVpsOrder",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "decision",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "approve",
                "reject",
                "suspend",
                "resume"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/user/admin/vps/host": {
      "get": {
        "operationId": "getVpsHost",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        }
      }
    },
    "/api/user/admin/vps/host/prepare": {
      "post": {
        "operationId": "prepareVpsHost",
        "tags": [
          "VPS"
        ],
        "security": [
          {
            "session": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient account role"
          },
          "404": {
            "description": "Resource not found or not owned"
          },
          "409": {
            "description": "State or host capacity conflict"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    }
  }
}
