{
  "openapi": "3.1.0",
  "info": {
    "title": "The Apprentice — Bundled AI-Readiness Audit",
    "version": "1.0.0",
    "description": "One pay-per-call bundle: a deterministic 28-check AI-readiness audit (the ScriptMasterLabs AI Search Intelligence rule set), a markdown extraction of the target page, and a short research brief. Paid via x402 v2 (exact, USDC on Base) through OMNIGATE. Revenue settles to the Apprentice experiment wallet and is accounted on the public ledger at https://scriptmasterlabs.com/apprentice",
    "x-guidance": "GET /apprentice/audit?url=<public URL>. An unpaid call answers HTTP 402 with a PAYMENT-REQUIRED challenge — sign the EIP-3009 authorization with any standard x402 client and retry with the PAYMENT-SIGNATURE header."
  },
  "servers": [
    {
      "url": "https://scriptmasterlabs.com"
    }
  ],
  "paths": {
    "/apprentice/audit": {
      "get": {
        "operationId": "apprenticeAudit",
        "summary": "Bundled AI-readiness audit + markdown + brief for one URL",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Public http(s) URL to audit"
          }
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.150000"
          },
          "protocols": [
            {
              "x402": {
                "scheme": "exact",
                "network": "eip155:8453",
                "amount": "150000",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0x26Efe00E923c8C9D16f1662eb9e96F3649124B66",
                "maxTimeoutSeconds": 60,
                "facilitator": "https://mcp-x402.onrender.com"
              }
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Audit scores + checks, extracted markdown, and the research brief."
          },
          "402": {
            "description": "Payment Required — x402 v2 challenge in the PAYMENT-REQUIRED header and JSON body."
          }
        }
      }
    }
  }
}