{
  "openapi": "3.1.0",
  "info": {
    "title": "AI Agent Spend Firewall, ERC-7715 Session Guard & Tx Simulator API",
    "version": "2.4.0"
  },
  "servers": [
    {
      "url": "https://agent-spend-guard.b2bintel-edge.workers.dev"
    }
  ],
  "paths": {
    "/v1/build-spend-permission": {
      "get": {
        "operationId": "buildErc7715SpendPermission",
        "summary": "Generate ERC-7715 & Coinbase SpendPermissionManager bounded allowance payloads"
      }
    },
    "/v1/tx-simulate": {
      "get": {
        "operationId": "simulateEvmTransactionFirewall",
        "summary": "Pre-flight eth_call revert + gas + infinite approval + spend cap simulator"
      }
    },
    "/v1/token-firewall": {
      "get": {
        "operationId": "auditTokenContractTechnicalRisks",
        "summary": "Check honeypot, buy/sell tax, and DEX liquidity before agent swap"
      }
    },
    "/v1/package-guard": {
      "get": {
        "operationId": "verifyPackageAntiHallucination",
        "summary": "Block hallucinated or newly slopsquatted npm/PyPI packages"
      }
    },
    "/v1/guarded-rebalance": {
      "get": {
        "operationId": "planAndBuildGuardedRebalance",
        "summary": "Compute portfolio drift and assemble spend-capped 0.25% multi-DEX swap calldata"
      }
    },
    "/v1/x402/wallet-allowance-firewall-audit": {
      "get": {
        "operationId": "auditMultiChainAllowancesX402",
        "summary": "5-chain unlimited ERC-20 allowance scanner & revoke builder ($0.04 USDC via x402)"
      }
    }
  }
}