{"uid":"cap_W4sl0gs3iAnqnHijTWVNG","slug":"x402-endpoint-preflight-b3a529dc","name":"x402 Endpoint Preflight","description":"Find out what an x402 endpoint will charge before you pay it. Probes the endpoint, reads the challenge from the header or the body, and returns the decoded price, network, asset and payTo plus the declared input and output schemas. Never sends a payment. Only reviewed origins are reachable, and a redirect is refused rather than followed.","url":"https://api.zfinia.com/x402/v1/x402-endpoint-preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"body":{"type":"object"},"method":{"enum":["GET","POST"],"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sdfuLHzPLqh76wfYqnXVv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Probes an x402-enabled endpoint to reveal its payment requirements (price, network, asset, payTo address) and declared schemas without sending any payment.","exampleAgentPrompt":"Before I pay anything, can you check what this x402 endpoint at https://api.example.com/some-resource will charge me — I want to know the price, which network and asset it uses, and the payTo address?","exampleUseCases":[{"title":"Vetting an unknown x402 API cost","prompt":"I found this x402 endpoint at https://api.acmecorp.com/data/report — can you tell me what it will charge, what asset it wants, and what network it runs on before I decide whether to call it?"},{"title":"Verifying schema before agent integration","prompt":"I'm about to integrate https://api.partner.io/analyze into my agent — can you probe it with a POST and show me its declared input and output schemas along with the payment details so I know what to send and what I'll get back?"},{"title":"Comparing costs of multiple x402 endpoints","prompt":"I want to compare what these two x402 endpoints charge: first check https://api.serviceA.com/generate, then https://api.serviceB.com/generate — give me the price, asset, and payTo for each so I can pick the cheaper one."}],"resultDescription":"Returns the decoded x402 payment challenge including the required price, network name, asset (e.g. USDC), payTo address, and the endpoint's declared input and output JSON schemas. No payment is made or initiated.","failureModes":["URL is not on a reviewed origin — request refused","URL contains credentials, ports, or fragments — request refused","Endpoint does not return a 402 response — no challenge to decode","Redirect encountered — refused rather than followed","Malformed or missing x402 challenge header/body — decoding fails","Endpoint unreachable or times out"],"whenToPreferThis":"Use this endpoint when an agent or developer needs to inspect an x402-gated endpoint's payment requirements and schemas before committing any funds. It is the right choice when you want to validate cost, asset type, network, and API shape without side effects. Prefer it over the x402 Challenge Decoder when you don't already have the raw 402 response body — this endpoint performs the probe itself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:43:01.604Z","isFirstParty":false,"canonicalSlug":"x402-endpoint-preflight-b3a529dc"}