{"uid":"cap_gtMOKZOef3Cb3tGtk7pth","slug":"x402-spend-preflight-3f8a39ad","name":"x402 Spend Preflight","description":"Paid deterministic pre-payment validation for autonomous x402 buyers.","url":"https://x402-preflight-production.up.railway.app/v1/preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DBcBXqjGLBr81VTPva62B","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an x402 payment request before execution, confirming the buyer has sufficient funds and the payment details are correct.","exampleAgentPrompt":"Before my agent pays for that x402-gated API call, run a preflight check to confirm the payment details are valid and my wallet has enough USDC to cover it.","exampleUseCases":[{"title":"Pre-payment wallet balance check","prompt":"My agent is about to pay for an x402-gated data endpoint — can you preflight the payment first to confirm my wallet has enough USDC and the payment request looks legitimate?"},{"title":"Autonomous agent payment guard","prompt":"Before my bot executes any x402 payment automatically, I want it to always run a preflight validation to catch invalid payment headers or insufficient funds — set that up for me."},{"title":"Debugging a failed x402 payment","prompt":"My agent tried to access an x402-protected resource and the payment was rejected — can you run a preflight check on those payment details to tell me exactly what went wrong?"}],"resultDescription":"Returns a structured validation result indicating whether the x402 payment is feasible — including whether the wallet has sufficient funds, whether the payment parameters are correctly formed, and any error reasons if the payment would fail. Does not actually execute the payment.","failureModes":["Insufficient wallet balance — returns validation failure with balance shortfall details","Malformed payment header or invalid x402 payment details — returns schema validation error","Target resource URL is unreachable or not an x402 endpoint — returns connectivity or format error","Network timeout reaching the preflight service — returns HTTP 5xx","Invalid or unsupported currency — returns unsupported currency error"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs to validate an x402 payment before executing it, especially in high-frequency or automated pipelines where failed payments would be costly or disruptive. Prefer this over attempting the payment directly when you want deterministic pre-checks, want to surface user-facing errors gracefully, or are building a payment guard layer into an agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:31:11.879Z","isFirstParty":false,"canonicalSlug":"x402-spend-preflight-3f8a39ad"}