{"uid":"cap_czevBR6SPC-XrI33oRotl","slug":"x402fix-by-agentgate-x402-endpoint-doctor-lite-49986d27","name":"x402fix by AgentGate – x402 Endpoint Doctor (Lite)","description":"x402 endpoint tester API (payment-required validator). x402 endpoint doctor for sellers: probes your paid URL unpaid (GET, HEAD, empty POST, CORS preflight; never pays) and returns a grade and a fix list. Checks the v2 PAYMENT-REQUIRED header and v1 body, every accepts entry (USDC asset, EIP-712 domain, Solana feePayer, atomic amount, payTo), multichain price consistency and the Bazaar declaration against its own JSON Schema.","url":"https://api.youraitools.co/x402fix/v1/lite?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","description":"Full https URL of the paid x402 route (site tier: the origin or API base URL)"},"method":{"enum":["GET","POST"],"type":"string","description":"Method your paid route uses (default: from its Bazaar declaration, else GET)"},"framework":{"enum":["hono","express","next"],"type":"string","description":"Server framework for the generated snippet (check tier, default hono)"}},"description":"Search intents: x402 validator, test x402 endpoint, 402 payment required checker, x402 debug, x402 seller tools, payment header check"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"url":{"type":"string"},"tier":{"type":"string"},"x402":{"type":"object"},"fixes":{"type":"array"},"grade":{"type":"string"},"score":{"type":"number"},"method":{"type":"string"},"status":{"type":"string"},"summary":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"url":"https://api.example.com/v1/data","tier":"lite","x402":{"v1":false,"v2":true,"bazaar":true,"networks":["Base"],"price_usd":0.01},"fixes":[{"n":1,"id":"v2_accept_0","fix":"Set extra: { name: \"USD Coin\", version: \"2\" }. Signatures over the wrong domain fail verification, so every payment is rejected.","problem":"v2 accepts[0] (Base): EIP-712 domain \"USDC\" v2 does not match USDC on Base (\"USD Coin\" v2)","severity":"error"},{"n":2,"id":"head_402","fix":"Answer HEAD like GET without a body (402 + PAYMENT-REQUIRED header). 402index and other directory health checks probe with HEAD and mark the endpoint down otherwise.","problem":"HEAD answers 405, not 402","severity":"warn"},{"n":3,"id":"cors_expose","fix":"Send Access-Control-Allow-Origin: * and Access-Control-Expose-Headers: PAYMENT-REQUIRED, PAYMENT-RESPONSE, X-PAYMENT-RESPONSE on 402 and 200 responses.","problem":"Browsers cannot read the PAYMENT-REQUIRED header (not in Access-Control-Expose-Headers)","severity":"warn"}],"grade":"C","score":70,"method":"GET","status":"fix_needed","summary":"C (70/100): x402 v2, Base. 1 error(s), 3 warning(s); first fix: v2 accepts[0] (Base): EIP-712 domain \"USDC\" v2 does not match USDC on Base (\"USD Coin\" v2)."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_529-VjA6LYKiMG5vIz4lR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Probes a paid x402 URL without paying and returns a compliance grade, score, and prioritized fix list covering headers, EIP-712 domains, CORS, multichain pricing, and Bazaar schema validation.","exampleAgentPrompt":"Can you run my paid API endpoint https://api.example.com/v1/data through the x402fix doctor and tell me what's broken, what grade it gets, and what I need to fix first?","exampleUseCases":[{"title":"Debug rejected payments on a new API","prompt":"My paid API at https://api.myservice.com/v1/premium keeps rejecting payments even though I think I set it up right — can you run it through x402fix and tell me what errors are causing payment failures?"},{"title":"Pre-launch x402 compliance check","prompt":"Before I list my API at https://api.myproduct.com/data on the Bazaar marketplace, can you audit it with x402fix and give me a score so I know if it'll pass?"},{"title":"Fix CORS for browser-based payments","prompt":"My x402 endpoint at https://api.mycorp.com/pay is rejecting browser payment attempts — please check it with x402fix using GET method and tell me if there are CORS header issues I need to fix."}],"resultDescription":"A JSON object containing the probed URL, tier, x402 version flags (v1/v2/bazaar), detected networks, price in USD, an ordered fix list with severity (error/warn/info), problem description and code-level fix for each issue, an overall letter grade (A–F), a numeric score out of 100, the HTTP method used, a status string, and a human-readable summary sentence.","failureModes":["URL is unreachable or returns non-402 status — endpoint may be misconfigured or offline","Target URL does not implement x402 at all — grade will be F with no valid payment header found","Rate limiting or firewall on target URL blocks the probe — timeout or connection error returned","Invalid URL format supplied — query parameter validation error","Target URL requires a specific User-Agent or IP not used by the probe — may yield false negatives"],"whenToPreferThis":"Use this endpoint when you are a seller or developer who has built an x402-gated API and wants to verify correct implementation before listing or after receiving payment-rejection reports. It is the right choice when you need a structured, machine-readable compliance report with severity-ranked fixes rather than raw HTTP debugging. Prefer it over manual curl testing when you need EIP-712 domain validation, Bazaar schema conformance, multichain price consistency checks, and CORS header auditing in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:38:55.735Z","isFirstParty":false,"canonicalSlug":"x402fix-by-agentgate-x402-endpoint-doctor-lite-49986d27"}