{"uid":"cap_hHq4RAgTsNtYcuzmP0hiz","slug":"agent-buyer-identity-preflight-x402-purchase-governance-2ca16a0e","name":"Agent Buyer Identity Preflight | x402 Purchase Governance","description":"Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.","url":"https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent-risk/safe-transaction-review","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain","from","to","action"],"properties":{"to":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"from":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"chain":{"type":"string","pattern":"^[A-Za-z0-9:_ -]{2,80}$"},"action":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{2,80}$"},"amount_usdc":{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]{1,6})?$"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"network":{"type":"string"},"product":{"type":"string"},"activity":{"type":"object"},"identity":{"type":"object"},"assessment":{"type":"object"},"provenance":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","product":"safe-transaction-review","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tR_iEvSKItT_lS28wFN7E","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-purchase risk assessment that verifies whether an AI agent's buyer identity, role, and context are appropriate for a given x402 API, dataset, or tool purchase before the transaction is executed.","exampleAgentPrompt":"Before you spend any USDC, run a preflight check on Base (eip155:8453) to make sure my agent wallet 0xABCDEF1234567890ABCDEF1234567890ABCDEF12 is cleared to buy the API at 0x9876543210ABCDEF9876543210ABCDEF98765432 for the action 'data.fetch' at 0.50 USDC.","exampleUseCases":[{"title":"Screening agent before API purchase","prompt":"Before my agent pays 0.25 USDC to buy that analytics API on Base, check whether the wallet 0xABCDEF1234567890ABCDEF1234567890ABCDEF12 is authorized to purchase from 0x9876543210ABCDEF9876543210ABCDEF98765432 for action 'api.analytics'."},{"title":"Compliance gate for sensitive dataset purchase","prompt":"My agent wants to buy a sensitive financial dataset on Base chain — run a risk preflight to see if buyer wallet 0xAABBCCDDEEFF00112233445566778899AABBCCDD is cleared to transact with seller 0x1122334455667788990011223344556677889900 for 'dataset.financial' at 5.00 USDC before we proceed."},{"title":"Low-risk tool purchase approval","prompt":"Check if it's safe for my agent at 0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF to buy a code generation tool from 0xCAFEBABECAFEBABECAFEBABECAFEBABECAFEBABE on Base for action 'tool.codegen' at 0.10 USDC — I need the risk score before we approve the payment."}],"resultDescription":"Returns a JSON object containing a risk assessment with a risk_level (e.g. 'low', 'medium', 'high'), a numeric risk_score, any risk flags triggered, plus contextual data about the network, product, buyer identity, and provenance — helping the agent decide whether to proceed with the purchase.","failureModes":["Invalid wallet address format (non-0x hex) — 400 Bad Request","Missing required query parameters (chain, from, to, action) — 400 or validation error","Unrecognized chain identifier — error or unknown risk level","Service unavailable or Cloudflare Worker timeout — 500 or 503","High risk score returned — agent should block purchase but call itself succeeds","Payment for preflight itself fails (USDC balance insufficient for the $0.25 fee)"],"whenToPreferThis":"Use this endpoint when an AI agent is about to execute an x402 micropayment purchase and you need a pre-transaction governance check — specifically to validate buyer identity fitness, product category compatibility, and spending policy compliance before committing USDC. Prefer this over post-hoc auditing when the cost of an unauthorized or policy-violating purchase is high, or when operating in a multi-agent environment where individual agents have restricted purchase scopes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:03.865Z","isFirstParty":false}