{
  "openapi": "3.1.0",
  "info": {
    "title": "LEGIT AGENTIC Audit API",
    "version": "0.5.0",
    "description": "Run a read-only agent-readiness and AI-discoverability audit of a public URL."
  },
  "servers": [{ "url": "https://legit-agentic.vercel.app" }],
  "paths": {
    "/api/audit": {
      "post": {
        "operationId": "auditSite",
        "summary": "Audit a public website",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["target"],
                "properties": { "target": { "type": "string", "format": "uri-reference", "maxLength": 2048 } },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Completed audit report", "content": { "application/json": { "schema": { "type": "object" } } } },
          "400": { "description": "Invalid or unreachable target" },
          "405": { "description": "Method not allowed" }
        }
      }
    }
  }
}
