{
  "openapi": "3.1.0",
  "info": {
    "title": "LION (Trend Intent MCP + Marketplace Visibility Audit)",
    "version": "2.0.0",
    "description": "Two x402-paid endpoints on Base. Endpoint #1 (Trend Intent MCP, $0.01 USDC) is the production paid route serving hardware-wallet buyer-intent JSON/CSV. Endpoint #2 (Marketplace Visibility Audit, $0.05 USDC) is the public beta paid route serving x402/MCP discoverability audits, newly launched 2026-05-27 and awaiting first external buyer.",
    "contact": {
      "url": "https://gleaming-cassata-d41682.netlify.app/lion-mcp/",
      "email": "lionmaster.operations@gmail.com"
    }
  },
  "servers": [
    {
      "url": "https://gleaming-cassata-d41682.netlify.app",
      "description": "LION production (Base mainnet, x402 v2)"
    }
  ],
  "paths": {
    "/api/x402/trend-intent-raw-signal-json": {
      "get": {
        "summary": "Endpoint #1 JSON: hardware-wallet buyer-intent and self-custody onboarding-friction signals",
        "operationId": "trendIntentRawSignalJson",
        "x-endpoint-id": "endpoint_1",
        "x-status": "production_paid_route",
        "x-payment": {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
          "payTo": "0x84c2e2ec19a4b467D89fE3F008591DEEA884d9Ac",
          "x402Version": 2
        },
        "responses": {
          "200": {
            "description": "Paid response containing 55 records with a 14-column schema.",
            "content": {
              "application/json": {}
            }
          },
          "402": {
            "description": "Payment Required. x402 v2 paymentRequirements in body + Payment-Required header."
          }
        }
      }
    },
    "/api/x402/trend-intent-raw-signal-csv": {
      "get": {
        "summary": "Endpoint #1 CSV: same dataset as JSON variant, served as text/csv",
        "operationId": "trendIntentRawSignalCsv",
        "x-endpoint-id": "endpoint_1_csv",
        "x-status": "production_paid_route",
        "x-payment": {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
          "payTo": "0x84c2e2ec19a4b467D89fE3F008591DEEA884d9Ac",
          "x402Version": 2
        },
        "responses": {
          "200": {
            "description": "Paid response: 55 records as text/csv.",
            "content": {
              "text/csv": {}
            }
          },
          "402": {
            "description": "Payment Required. x402 v2 paymentRequirements in body + Payment-Required header."
          }
        }
      }
    },
    "/api/x402/marketplace-visibility-audit-json": {
      "get": {
        "summary": "Endpoint #2 (public beta): structured x402/MCP visibility audit. Returns a JSON report listing leaks in the audited service's discovery and payment surface.",
        "operationId": "marketplaceVisibilityAuditJson",
        "x-endpoint-id": "endpoint_2",
        "x-status": "public_beta_paid_route",
        "x-launched": "2026-05-27",
        "x-external-paid-proof": false,
        "x-honest-status-statement": "Public beta paid x402 route. LION payment rail proven by prior controlled Endpoint #1 settlements. Endpoint #2 newly launched and awaiting first external buyer.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "https URL of the x402/MCP seller endpoint to audit",
            "schema": {
              "type": "string",
              "format": "uri",
              "pattern": "^https://"
            }
          }
        ],
        "x-payment": {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "50000",
          "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
          "payTo": "0x84c2e2ec19a4b467D89fE3F008591DEEA884d9Ac",
          "x402Version": 2
        },
        "responses": {
          "200": {
            "description": "Paid audit report (JSON) for the requested url.",
            "content": {
              "application/json": {}
            }
          },
          "402": {
            "description": "Payment Required. x402 v2 paymentRequirements in body + Payment-Required header."
          },
          "400": {
            "description": "Validation error. Returned when ?url= is missing (reason=url_missing) or unparseable/non-https (reason=url_unparseable).",
            "content": {
              "application/json": {
                "examples": {
                  "url_missing": {"value": {"error": "invalid_audit_url", "reason": "url_missing"}},
                  "url_unparseable": {"value": {"error": "invalid_audit_url", "reason": "url_unparseable"}}
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "summary": "MCP streamable-http endpoint (Endpoint #1 tools)",
        "operationId": "mcp",
        "responses": {
          "200": {
            "description": "MCP server response."
          }
        }
      }
    }
  },
  "x-x402": {
    "version": 2,
    "network": "eip155:8453",
    "payTo": "0x84c2e2ec19a4b467D89fE3F008591DEEA884d9Ac",
    "facilitator": "cdp",
    "endpoints": [
      {"id": "endpoint_1", "path": "/api/x402/trend-intent-raw-signal-json", "price_usdc": "0.01", "amount": "10000", "status": "production_paid_route"},
      {"id": "endpoint_1_csv", "path": "/api/x402/trend-intent-raw-signal-csv", "price_usdc": "0.01", "amount": "10000", "status": "production_paid_route"},
      {"id": "endpoint_2", "path": "/api/x402/marketplace-visibility-audit-json", "price_usdc": "0.05", "amount": "50000", "status": "public_beta_paid_route", "launched": "2026-05-27", "external_paid_proof": false}
    ]
  }
}
