{
  "openapi": "3.1.0",
  "info": {
    "title": "LaunchHive API",
    "version": "0.1.0",
    "description": "Public agent-facing surface for the LaunchHive launch directory."
  },
  "servers": [
    {
      "url": "https://launchhive.io"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Service health and subsystem status",
        "responses": {
          "200": {
            "description": "Service is reachable"
          }
        }
      }
    },
    "/api/agent/premium": {
      "get": {
        "operationId": "getPremiumInsights",
        "summary": "Agent-native premium insights (paid via x402)",
        "description": "Returns premium ranking insights. Unpaid requests receive HTTP 402 with x402 payment requirements; pay with onchain USDC to access.",
        "x-payment": {
          "protocol": "x402",
          "scheme": "exact",
          "network": "base-sepolia",
          "asset": "USDC",
          "amount": "0.05",
          "status": "unavailable"
        },
        "responses": {
          "200": {
            "description": "Premium payload"
          },
          "402": {
            "description": "Payment required (x402)"
          }
        }
      }
    }
  }
}