{
  "openapi": "3.1.0",
  "info": {
    "title": "vibe",
    "version": "1.0.0",
    "description": "AI verdict on a Base token: grade (BASED/MID/COOKED/RADIOACTIVE), one-liner, short roast and onchain metrics (liquidity, 24h volume, buys/sells summed across all pools). $0.01 USDC on Base over x402, no account, no API key. Entertainment, not financial advice.",
    "contact": { "email": "info@node01.org" }
  },
  "servers": [{ "url": "https://vibe.node01.org" }],
  "paths": {
    "/api/verdict": {
      "post": {
        "operationId": "token_verdict",
        "summary": "AI verdict on a Base token",
        "tags": ["Verdict"],
        "x-payment-info": {
          "price": { "mode": "fixed", "currency": "USD", "amount": "0.010000" },
          "protocols": [{ "x402": { "network": "eip155:8453", "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" } }]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["tokenAddress"],
                "properties": {
                  "tokenAddress": { "type": "string", "description": "Base token contract (0x + 40 hex)" },
                  "chain": { "type": "string", "enum": ["base"], "description": "default base" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid verdict (envelope with operation_id and status_url)",
            "content": { "application/json": { "schema": { "type": "object" } } }
          },
          "202": { "description": "Unknown token (no DEX pairs found), not charged for a verdict" },
          "402": { "description": "Payment required (x402)" }
        }
      }
    },
    "/api/verdict/operations/{operationId}": {
      "get": {
        "operationId": "verdict_status",
        "summary": "Free status/receipt for an operation",
        "security": [],
        "parameters": [
          { "name": "operationId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": { "200": { "description": "Stored operation and result" } }
      }
    },
    "/api/health": {
      "get": {
        "operationId": "health_check",
        "summary": "Health check",
        "security": [],
        "responses": { "200": { "description": "Service health" } }
      }
    }
  }
}
