{
  "schema_version": "1.0",
  "name": "Agent Payment Guard API",
  "description": "Agent Payment Guard with policy, budget, replay, audit, merchant, domain, and transaction checks, plus twenty-five underlying tools.",
  "base_url": "https://base-agent-preflight.bytoken2023.workers.dev",
  "openapi_url": "https://base-agent-preflight.bytoken2023.workers.dev/openapi.json",
  "agent_card_url": "https://base-agent-preflight.bytoken2023.workers.dev/.well-known/agent-card.json",
  "mcp_url": "https://base-agent-preflight.bytoken2023.workers.dev/mcp",
  "authentication": {
    "type": "x402",
    "network": "eip155:8453"
  },
  "facilitator": "https://facilitator.payai.network",
  "payment_recipient": "0x94F751f04b98507D31b500b7Ed50bE68A1514873",
  "main_product": {
    "id": "agent-payment-guard",
    "path": "/v1/x402/payment-guard/evaluate",
    "price_usdc": "$0.01",
    "capabilities": [
      "owner-controlled policy profiles",
      "POST JSON evaluation",
      "signed decision tokens",
      "reservation commit and release",
      "TTL and replay protection",
      "authenticated audit status",
      "fail-closed evidence policy",
      "profile-wide daily budgets",
      "velocity and price-spike detection",
      "policy update, credential rotation, and revocation",
      "query-redacted audit storage and retention controls",
      "human approval queue",
      "post-payment delivery evidence",
      "merchant delivery and payment history",
      "Base transaction simulation",
      "signed webhook outbox with retries",
      "tool, purpose, domain, and time-window mandates",
      "JavaScript and Python SDKs",
      "MCP discovery and status tools"
    ]
  },
  "products": [
    {
      "id": "agent-payment-guard",
      "method": "GET",
      "path": "/v1/x402/payment-guard/evaluate",
      "price_usdc": "$0.01",
      "description": "AI agent x402 payment firewall: enforce budgets and mandates, simulate transactions, score merchant and domain risk, prevent replay, require human approval, and audit delivery before autonomous spending."
    },
    {
      "id": "base-address-preflight",
      "method": "GET",
      "path": "/v1/x402/base/address-preflight",
      "price_usdc": "$0.02",
      "description": "Inspect a Base address before an autonomous payment or contract interaction."
    },
    {
      "id": "base-token-preflight",
      "method": "GET",
      "path": "/v1/x402/base/token-preflight",
      "price_usdc": "$0.02",
      "description": "Inspect a Base token contract, public reputation, holder count, and DEX liquidity before trading."
    },
    {
      "id": "x402-merchant-trust",
      "method": "GET",
      "path": "/v1/x402/base/merchant-trust",
      "price_usdc": "$0.03",
      "description": "Summarize a Base merchant's public USDC receipt history and payer concentration."
    },
    {
      "id": "base-payment-proof",
      "method": "GET",
      "path": "/v1/x402/base/payment-proof",
      "price_usdc": "$0.01",
      "description": "Verify a Base transaction contains the expected canonical USDC payment."
    },
    {
      "id": "base-wallet-activity-delta",
      "method": "GET",
      "path": "/v1/x402/base/wallet-activity-delta",
      "price_usdc": "$0.01",
      "description": "Return recent Base ERC-20 activity for a wallet after a caller-supplied timestamp."
    },
    {
      "id": "base-approval-risk",
      "method": "GET",
      "path": "/v1/x402/base/approval-risk",
      "price_usdc": "$0.005",
      "description": "Read a live ERC-20 allowance on Base and flag unlimited or unusually large approvals."
    },
    {
      "id": "base-contract-verification",
      "method": "GET",
      "path": "/v1/x402/base/contract-verification",
      "price_usdc": "$0.005",
      "description": "Inspect Base source verification, compiler metadata, proxy type, and resolved implementations."
    },
    {
      "id": "base-usdc-receipt",
      "method": "GET",
      "path": "/v1/x402/base/usdc-receipt",
      "price_usdc": "$0.003",
      "description": "Extract canonical Base USDC transfers and transaction finality from a transaction hash."
    },
    {
      "id": "base-wallet-counterparty",
      "method": "GET",
      "path": "/v1/x402/base/wallet-counterparty",
      "price_usdc": "$0.005",
      "description": "Rank counterparties in a Base wallet's recent transactions and ERC-20 transfers."
    },
    {
      "id": "base-event-log-monitor",
      "method": "GET",
      "path": "/v1/x402/base/event-log-monitor",
      "price_usdc": "$0.003",
      "description": "Return recent decoded Base event logs at or after a caller-supplied block."
    },
    {
      "id": "base-gas-fee-quote",
      "method": "GET",
      "path": "/v1/x402/base/gas-fee-quote",
      "price_usdc": "$0.003",
      "description": "Return live Base gas fees and an estimated transaction cost for a caller-supplied gas limit."
    },
    {
      "id": "base-nonce-readiness",
      "method": "GET",
      "path": "/v1/x402/base/nonce-readiness",
      "price_usdc": "$0.003",
      "description": "Compare confirmed and pending Base nonces before an autonomous transaction is signed."
    },
    {
      "id": "base-stablecoin-balance",
      "method": "GET",
      "path": "/v1/x402/base/stablecoin-balance",
      "price_usdc": "$0.003",
      "description": "Return live Base USDC, USDT, and DAI balances with public USD reference rates."
    },
    {
      "id": "base-dex-market-monitor",
      "method": "GET",
      "path": "/v1/x402/base/dex-market-monitor",
      "price_usdc": "$0.005",
      "description": "Monitor Base DEX price, liquidity, volume, and trade activity for a token."
    },
    {
      "id": "prediction-market-snapshot",
      "method": "GET",
      "path": "/v1/x402/prediction/market-snapshot",
      "price_usdc": "$0.005",
      "description": "Return a public Kalshi prediction-market quote, volume, open interest, and orderbook snapshot."
    },
    {
      "id": "x402-endpoint-preflight",
      "method": "GET",
      "path": "/v1/x402/web/endpoint-preflight",
      "price_usdc": "$0.005",
      "description": "Inspect an unpaid x402 endpoint, decode its payment requirements, and flag unsafe or malformed commerce metadata."
    },
    {
      "id": "npm-package-preflight",
      "method": "GET",
      "path": "/v1/x402/software/npm-package-preflight",
      "price_usdc": "$0.005",
      "description": "Check npm package metadata, maintenance signals, deprecation, license, dependencies, and OSV vulnerabilities."
    },
    {
      "id": "github-repository-health",
      "method": "GET",
      "path": "/v1/x402/software/github-repository-health",
      "price_usdc": "$0.005",
      "description": "Score a public GitHub repository using maintenance, release, license, archive, issue, and popularity signals."
    },
    {
      "id": "url-change-fingerprint",
      "method": "GET",
      "path": "/v1/x402/web/url-change-fingerprint",
      "price_usdc": "$0.003",
      "description": "Fetch a public URL and return redirect, metadata, cache validators, and a SHA-256 content fingerprint."
    },
    {
      "id": "feed-snapshot",
      "method": "GET",
      "path": "/v1/x402/web/feed-snapshot",
      "price_usdc": "$0.003",
      "description": "Normalize the latest entries from a public RSS or Atom feed with stable item fingerprints."
    },
    {
      "id": "evm-transaction-intent",
      "method": "GET",
      "path": "/v1/x402/base/transaction-intent",
      "price_usdc": "$0.005",
      "description": "Decode Base transaction calldata before signing and flag token transfers, approvals, unlimited spending, and unknown selectors."
    },
    {
      "id": "a2a-agent-card-preflight",
      "method": "GET",
      "path": "/v1/x402/agent/a2a-card-preflight",
      "price_usdc": "$0.005",
      "description": "Discover and validate a public A2A Agent Card, its skills, provider, authentication, endpoint consistency, and unsafe URLs."
    },
    {
      "id": "openapi-spec-preflight",
      "method": "GET",
      "path": "/v1/x402/web/openapi-preflight",
      "price_usdc": "$0.005",
      "description": "Validate a public OpenAPI JSON or YAML document, server URLs, authentication declarations, operation coverage, and content fingerprint."
    },
    {
      "id": "domain-trust-preflight",
      "method": "GET",
      "path": "/v1/x402/web/domain-trust-preflight",
      "price_usdc": "$0.005",
      "description": "Inspect public DNS, DNSSEC, mail, CNAME resolution, RDAP registration age, expiration, and domain trust signals."
    },
    {
      "id": "pypi-package-preflight",
      "method": "GET",
      "path": "/v1/x402/software/pypi-package-preflight",
      "price_usdc": "$0.005",
      "description": "Check PyPI package metadata, release age, yanked status, Python requirements, dependencies, license, and OSV vulnerabilities."
    }
  ]
}