{
  "openapi": "3.1.0",
  "info": {
    "title": "Vitna Unblocker API",
    "version": "1.0.0",
    "summary": "Adaptive Chromium and stealth Camoufox web page unblocking, persistent browser sessions, and browser action sequences.",
    "contact": {
      "name": "Vitna",
      "url": "https://vitna.ai/start#unblocker"
    }
  },
  "externalDocs": {
    "description": "Unblocker documentation",
    "url": "https://vitna.ai/docs/unblocker/overview.md"
  },
  "servers": [
    {
      "url": "https://unblock.vitna.ai",
      "description": "Hosted Vitna Unblocker API"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "vitna_unblock_ or vitna_key_"
      }
    }
  },
  "paths": {
    "/healthz": {
      "get": {
        "summary": "Service health probe",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/unblock": {
      "post": {
        "summary": "Fetch and render a public HTTPS page or document with adaptive challenge handling",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "render": {
                    "type": "boolean",
                    "default": true
                  },
                  "output": {
                    "type": "string",
                    "enum": [
                      "html",
                      "text",
                      "json"
                    ],
                    "default": "json"
                  },
                  "waitFor": {
                    "type": "string"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 60000,
                    "default": 30000
                  },
                  "country": {
                    "type": "string"
                  },
                  "session": {
                    "type": "string"
                  },
                  "actions": {
                    "type": "array",
                    "description": "Supported browser actions: scroll, wait, click, write, press"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Rendered page payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "502": {
            "description": "Target blocked, challenged, or unreachable"
          }
        }
      }
    },
    "/v1/status": {
      "get": {
        "summary": "Read quota limits, usage, capabilities, and rolling SLO telemetry",
        "responses": {
          "200": {
            "description": "Status"
          }
        }
      }
    },
    "/v1/sessions/{session}": {
      "delete": {
        "summary": "Delete a persistent encrypted browser session",
        "responses": {
          "200": {
            "description": "Session cleared"
          }
        }
      }
    }
  },
  "x-vitna-discovery": {
    "llmsTxt": "https://unblock.vitna.ai/llms.txt",
    "llmsFullTxt": "https://vitna.ai/llms-full.txt",
    "playground": "https://vitna.ai/unblocker"
  }
}
