{"uid":"cap_anwI8JdS-qbY1NkpE8-yT","slug":"x402-preflight-url-inspector-5cc435e4","name":"x402 Preflight URL Inspector","description":"Probe one public HTTPS URL without following redirects; inspect x402 v2 challenge","url":"https://solana-x402-microtools-mainnet.valecity.workers.dev/api/preflight?utm_source=zero.xyz","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":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":1600,"description":"HTTPS URL with a public DNS hostname, no custom port, URL credentials or secret-bearing query parameters"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["target","http_status","latency_ms","is_x402_v2","terms","checked_at"],"properties":{"terms":{"type":["object","null"]},"target":{"type":"string"},"checked_at":{"type":"string","format":"date-time"},"is_x402_v2":{"type":"boolean"},"latency_ms":{"type":"integer"},"http_status":{"type":"integer"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6MSf0_r_v-Zf-P9fw32mx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Probes a public HTTPS URL without following redirects and inspects whether it returns an x402 v2 payment-required challenge","exampleAgentPrompt":"Can you probe https://api.example.com/data and tell me if it returns an x402 v2 payment challenge — and if so, what are the payment terms?","exampleUseCases":[{"title":"Pre-call x402 payment discovery","prompt":"Before I try calling https://some-paid-api.com/endpoint, can you check if it requires an x402 payment and what the terms are, so I know what to expect?"},{"title":"Verify x402 compliance of a new service","prompt":"I just deployed an x402-enabled API at https://myservice.valecity.workers.dev/api/data — can you probe it to confirm it's properly returning an x402 v2 challenge?"},{"title":"Compare HTTP status and payment wall detection","prompt":"Can you hit https://content.example.com/premium without following any redirects and tell me the HTTP status, whether it's an x402 v2 endpoint, and how fast it responded?"}],"resultDescription":"Returns the target URL, HTTP status code, latency in milliseconds, a boolean indicating whether the URL serves an x402 v2 challenge, the payment terms object (or null if not x402), and the timestamp of the check.","failureModes":["URL is not a valid HTTPS URI with a public DNS hostname — request rejected","URL uses a custom port, URL credentials, or secret-bearing query parameters — request rejected","Target host is unreachable or DNS fails — error returned","Target returns a redirect chain but redirects are not followed — only first response inspected","x402 terms present but malformed — is_x402_v2 may be false even if 402 status returned"],"whenToPreferThis":"Use this endpoint when you need to determine programmatically whether a given HTTPS URL is protected by the x402 v2 micropayment protocol before attempting to call it, especially when building payment-aware agents or integrating with x402-gated APIs. Prefer it over generic HTTP HEAD tools when you specifically need x402 challenge parsing and structured payment terms extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:31:48.193Z","isFirstParty":false,"canonicalSlug":"x402-preflight-url-inspector-5cc435e4"}