{"uid":"cap_QG4I36oEoPQaxQUUi_Aoq","slug":"agent-buyer-identity-preflight-x402-purchase-governance-f5094a8f","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/spend-route-plan","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":["task"],"properties":{"task":{"type":"string","maxLength":500,"minLength":3,"description":"Natural-language task the agent wants to complete."},"budget_usdc":{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]{1,6})?$","description":"Maximum planned spend for the route."},"risk_tolerance":{"enum":["low","medium","high"],"type":"string","description":"How much uncertainty the buyer can tolerate."}}}},"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-spend-route-plan","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_k-2Kd7y84xhVxuMyVxStT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether an AI agent's buyer role, budget, and risk profile are appropriate before it purchases an x402-gated API, dataset, or tool.","exampleAgentPrompt":"Before I spend up to $10 USDC to buy that x402 financial data API, run a preflight check on whether my agent is cleared to make that purchase — my risk tolerance is low.","exampleUseCases":[{"title":"Pre-purchase safety check for data API","prompt":"I want to buy access to a premium x402 market data feed for up to $5 USDC — can you run a preflight to make sure my agent role and risk profile are approved before we pay?"},{"title":"High-sensitivity tool purchase screening","prompt":"My agent is about to purchase an x402 identity verification tool, budget is $2.50 USDC and I need low risk tolerance — check whether the purchase is cleared before proceeding."},{"title":"Automated agent spend routing validation","prompt":"Before my agent autonomously routes spending to buy that x402 ML inference API with a $20 USDC budget and medium risk tolerance, verify that the spend route plan is valid and flags are clear."}],"resultDescription":"Returns a JSON object containing the Base network identifier (eip155:8453), the product type, an assessment block with a numeric risk score, risk level (low/medium/high), and any policy flags, plus identity, activity, and provenance sub-objects describing the agent buyer context.","failureModes":["Missing or malformed 'task' query parameter returns a validation error","Budget parameter not matching numeric pattern causes schema rejection","Invalid risk_tolerance enum value results in bad request","Upstream policy service unavailable causes 5xx response","Task description too short (under 3 chars) or too long (over 500 chars) triggers validation failure"],"whenToPreferThis":"Use this endpoint when an AI agent needs to make an x402-protocol purchase and you want a lightweight, pre-transaction governance check to ensure the buyer role, budget, and sensitivity align with policy — especially in autonomous agent workflows where human approval is not guaranteed before each spend event.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:42:51.691Z","isFirstParty":false}