{"uid":"cap_GP9vavbXgRnWKSv4zYGRK","slug":"agent-buyer-identity-preflight-x402-purchase-governance-c5379fca","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/rpc-preflight","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":["endpoint_url","chain","method"],"properties":{"chain":{"type":"string","pattern":"^[A-Za-z0-9:_ -]{2,80}$","description":"Requested chain or CAIP-2 network label."},"method":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{2,80}$","description":"RPC method, REST operation, or query action."},"endpoint_url":{"type":"string","pattern":"^https?://","maxLength":2048,"description":"RPC, x402, REST, or indexed chain-data endpoint URL."},"max_price_usdc":{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]{1,6})?$","description":"Maximum acceptable price for this request."},"session_budget_usdc":{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]{1,6})?$","description":"Remaining session budget available to the agent."}}}},"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":"agent-rpc-preflight","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IydtYf0Io_UTWsEANxL7F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether an AI agent's buyer identity, role, and budget are appropriate before it purchases an x402-gated API, dataset, or tool.","exampleAgentPrompt":"Before you buy that x402 API at https://data.example.com/v1/prices, run a preflight check on chain eip155:8453 for the GET method to make sure my agent identity is cleared and the price won't exceed $0.10 USDC given my $2.00 session budget.","exampleUseCases":[{"title":"Pre-purchase governance for paid RPC","prompt":"Before my agent calls that paid Ethereum RPC endpoint at https://rpc.exampleprovider.io/v1/eth, run a preflight on eip155:8453 for the eth_call method — my max price is $0.01 USDC and I have $1.50 left in this session."},{"title":"Screening high-sensitivity dataset purchase","prompt":"My agent wants to buy access to a financial dataset at https://datasets.example.com/v1/defi-prices — can you do a preflight check on Base (eip155:8453) for the GET method before it spends anything, with a max price of $0.05 USDC?"},{"title":"Budget enforcement before agent tool acquisition","prompt":"Check whether my agent should be allowed to purchase this x402 tool at https://tools.example.com/v1/sentiment-analyzer on eip155:8453 using GET — my session budget is $0.50 USDC and I don't want to pay more than $0.02 per call."}],"resultDescription":"Returns a JSON object with a risk_level (e.g. 'low', 'medium', 'high'), a numeric risk_score, an array of assessment flags, the resolved network identifier, product metadata, and provenance details — giving the agent a clear go/no-go signal before committing to an x402 payment.","failureModes":["Invalid or unreachable endpoint_url returns an error or elevated risk flag","Malformed chain identifier (not matching CAIP-2 pattern) causes validation rejection","Missing required query parameters (endpoint_url, chain, method) returns a 400-level error","Session budget below the product price triggers a budget-exceeded flag in assessment","Unknown or unsupported RPC method pattern may return an unresolvable identity warning","Service itself is a Cloudflare Worker with no guaranteed uptime SLA — may return 5xx under load"],"whenToPreferThis":"Use this endpoint before any x402-protocol purchase where agent identity governance, budget enforcement, or product-category compliance matters — especially when the buying agent operates autonomously and must self-validate authorization. Prefer this over skipping preflight when purchases involve sensitive data, high prices, or strict approval policies, and when you need a risk score to log or gate downstream actions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:32:34.656Z","isFirstParty":false}