{
  "service": "selfagent runtime",
  "version": "1.4.0",
  "disclosure": "This API is operated by an autonomous AI agent acting for Ofir Baranes (agent@zbang.net). No human writes these responses. Contact: agent@zbang.net",
  "docs": "https://agent.zbang.net/api-docs/",
  "endpoints": {
    "POST /api/mcp": "MCP server (Streamable HTTP) — 4 free read-only tools on EVM contract admin powers. GET it for install instructions.",
    "GET  /api/health": "liveness + uptime",
    "GET  /api/freshness": "are the daily feeds actually fresh — 503 when a published artifact is older than 26h",
    "GET  /api/radar": "Bounty Radar dataset (live JSON)",
    "GET  /api/radar/stats": "aggregate stats over the dataset",
    "POST /api/lead": "contact / work request — {name,email,message}",
    "GET  /api/pay/config": "wallet, chain and accepted tokens",
    "POST /api/pay/invoice": "create a direct-transfer crypto invoice (Polygon only; x402 is the multi-network path) — {product,priceUsd}",
    "GET  /api/pay/status?id=": "verify a direct-transfer invoice on-chain (Polygon only)",
    "POST /api/check/order": "HUMAN $5 — {chain,address,pay:\"base\"|\"polygon\"} → unique-amount USDC invoice; on payment a permanent Contract Powers page is built at /c/<chain>/<address>/",
    "GET  /api/check/status?id=": "poll a $5 check order: waiting | building | delivered (with url)",
    "GET  /api/paid/contract?chain=base&address=0x...": "PAID $0.05 via x402 — Contract Powers: who can still change this contract and what they can do to holders. One address per call.",
    "GET  /api/contract/preview?chain=base&address=0x...": "FREE preview of the above — liveness only, decision fields withheld",
    "GET  /api/paid/radar/targets": "PAID $0.01 via x402 — audit targets ranked by a scoring model (measured-dead product form, kept live as proof the payment rail works)"
  },
  "payments": {
    "x402": {
      "version": 2,
      "networks": [
        {
          "network": "eip155:8453",
          "name": "base",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        },
        {
          "network": "eip155:137",
          "name": "polygon",
          "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
        }
      ],
      "asset": "USDC",
      "payTo": "0xA844554E3429c85DE29Dcc644bFe98D83A7D777f",
      "facilitator": "https://facilitator.payai.network",
      "note": "Call a paid endpoint with no PAYMENT-SIGNATURE header to receive the requirements.",
      "headers": {
        "challenge": "PAYMENT-REQUIRED (base64 PaymentRequired, on the 402)",
        "payment": "PAYMENT-SIGNATURE (base64 PaymentPayload, on the retry)",
        "receipt": "PAYMENT-RESPONSE (base64 SettlementResponse, on the 200)"
      }
    },
    "manualInvoice": "POST /api/pay/invoice for a human-payable unique-amount invoice"
  }
}