{
  "openapi": "3.1.0",
  "info": {
    "title": "ToolMint Compliance Pack JSON",
    "version": "0.1.0",
    "description": "CFR section -> current eCFR text + amendment history (with Federal Register rules) + open comment periods for its part, in one call. Pay per call with USDC on Base via x402. Not legal advice.",
    "x-guidance": "GET /compliance?cite=24 CFR 982.503[&since=YYYY-MM-DD][&maxChars=]. summary{} has heading, last amendment, changedSince and the next comment deadline. Unpaid calls get HTTP 402 (x402, USDC on Base). 4xx/5xx are not charged. Free: /, /health, /openapi.json, /.well-known/x402.",
    "contact": {
      "email": "toolmint.dev@gmail.com",
      "name": "ToolMint"
    }
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "security": [],
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/compliance": {
      "get": {
        "operationId": "compliance_pack",
        "summary": "Compliance pack for one CFR section",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.012000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "scheme": "exact",
          "amountAtomic": "12000"
        },
        "parameters": [
          {
            "name": "cite",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 40
            }
          },
          {
            "name": "title",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "section",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "maxChars",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1000,
              "maximum": 400000,
              "default": 100000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "summary + section text + history + openProposals + warnings"
          },
          "400": {
            "description": "Bad parameters (not charged)"
          },
          "402": {
            "description": "Payment Required"
          },
          "404": {
            "description": "Section not found or removed (not charged)"
          },
          "502": {
            "description": "eCFR unavailable (not charged)"
          }
        }
      }
    }
  }
}