{"uid":"cap_Xwo9zknUrVE_S8WBsBEw5","slug":"agent-transaction-trust-transaction-clearance-2f7f9598","name":"Agent Transaction Trust — Transaction Clearance","description":"Decide whether an autonomous agent both can and should execute an exact x402 payment. Verifies predelegated spending authority, challenge/request integrity, and public merchant transaction-risk signals, then returns an evidence-based APPROVED, REVIEW or DENIED clearance plus a signed clearance token. APPROVED means the agent may proceed autonomously; REVIEW means do not auto-pay until higher-level review; DENIED means do not pay.","url":"https://json-repair-api-9ybv.onrender.com/trust/x402/clearance?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"nonce":{"type":"string"},"payer":{"type":"string","description":"EVM address that would sign/pay the merchant transaction."},"request":{"type":"object","required":["method","url"],"properties":{"url":{"type":"string"},"body":{},"method":{"type":"string"}},"description":"Exact HTTP request the agent intends to make after authorization."},"category":{"type":"string","description":"Purchase category used by the operator policy."},"merchant_id":{"type":"string","description":"Stable merchant identifier used by the operator policy."},"ap2_evidence":{"type":"object","description":"Optional AP2 v0.2 mandate evidence and challenge token for native verification."},"policy_token":{"type":"string","description":"Operator-issued signed policy credential for the buying agent."},"payment_required":{"oneOf":[{"type":"object"},{"type":"string"}],"description":"The merchant's real x402 PAYMENT-REQUIRED payload, as decoded JSON or its encoded string."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G6243LyjhSN_whdMv4148","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates whether an AI agent has authorization and should proceed with a specific x402 micropayment, returning an APPROVED, REVIEW, or DENIED clearance with a signed token.","exampleAgentPrompt":"Before my agent pays this x402 merchant charge, check whether payer address 0xAbc...123 has predelegated authority under policy token 'pol_xyz', confirm the payment-required payload is legitimate for merchant 'merch_001' in the 'api-access' category, and tell me if it's safe to auto-pay or if I need a human to review.","exampleUseCases":[{"title":"Autonomous API subscription payment clearance","prompt":"My agent is about to pay a $0.01 x402 charge to merchant 'data-provider-99' for API access — payer is 0xDef...456 with policy token 'pol_abc'. Run clearance on the payment-required payload and tell me if the agent should auto-pay or wait for my approval."},{"title":"Blocking high-risk merchant auto-payment","prompt":"Before my trading bot pays merchant 'exchange-xyz' via x402, check the transaction risk signals and confirm payer 0x789...fed is authorized under policy 'pol_trading_001' in the 'financial-data' category — I only want it to proceed if the clearance comes back APPROVED."},{"title":"Multi-agent spending policy enforcement","prompt":"My fleet of AI agents each have their own policy tokens and I need to clear a payment for agent payer 0xAaa...bbb with policy token 'pol_fleet_07' before it pays merchant 'content-api-33' for a 'media' category purchase — give me the signed clearance token so I can log it."}],"resultDescription":"Returns a clearance decision of APPROVED (agent may pay autonomously), REVIEW (hold for human review), or DENIED (do not pay), along with a cryptographically signed clearance token, the evidence basis for the decision including policy match results, and any merchant transaction-risk signals detected.","failureModes":["Invalid or expired policy token — clearance denied with policy validation error","Malformed x402 payment-required payload — returns parsing error","Payer address not matching delegated authority — returns DENIED with authority mismatch","Merchant risk signals exceed threshold — returns REVIEW or DENIED","Missing required fields (payer, request, payment_required) — returns 400 validation error","Nonce replay detected — returns DENIED with replay attack signal"],"whenToPreferThis":"Use this endpoint when an AI agent is operating autonomously under a predelegated spending policy and needs a gating decision before executing an x402 micropayment. It is the right choice when you need both policy enforcement (did the operator authorize this?) and merchant risk assessment (is this payment safe?) in a single call, returning a machine-actionable clearance plus a signed audit token. Prefer this over simple balance checks or generic authorization flows when the x402 protocol and AP2-style mandate evidence are involved.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:30:30.922Z","isFirstParty":false,"canonicalSlug":"agent-transaction-trust-transaction-clearance-2f7f9598"}