{
  "openapi": "3.1.0",
  "info": {
    "title": "AgentReady & WebSec Domain Auditor API",
    "version": "1.0.0",
    "description": "Zero-dependency deterministic auditor for AI search/crawler readiness (robots.txt 12 AI bots, llms.txt, agent.json, JSON-LD) and web security posture (HTTP headers, TLS, DNS SPF/DMARC/CAA, security.txt)."
  },
  "servers": [
    {
      "url": "https://agentready-websec-x402-api.vercel.app"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Health & x402 configuration status",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/audit-domain": {
      "post": {
        "summary": "Audit a public domain/URL across all 5 AI-readiness & WebSec pillars",
        "description": "Protected by HTTP x402 v2 Base Mainnet USDC micropayment ($0.005 default). Invalid/SSRF/unreachable targets return 400/422 with zero settlement.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "example": "https://example.com"
                  },
                  "includeMarkdown": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Deterministic 5-pillar audit report"
          },
          "400": {
            "description": "Invalid target or SSRF blocked (never settled)"
          },
          "402": {
            "description": "HTTP x402 v2 Payment Required"
          },
          "422": {
            "description": "Target domain unreachable across DNS, TLS, and HTTP (never settled)"
          }
        }
      }
    }
  }
}