{"uid":"cap_lGuSpEzaRYyh8qgFPLSlg","slug":"x402-oracle-diagnose-402-81db4e4e","name":"x402 Oracle — Diagnose 402","description":"Post-mortem a 402 handshake: PAYMENT-REQUIRED shape, bazaar extension, network, asset, resource.url.","url":"https://x402orcle.vercel.app/api/consult/oracle_diagnose_402?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"resource_url":{"type":"string"},"challenge_b64_or_json":{"type":"string"}}},"responseSchema":{"type":"json","example":{"wisdom":"…","verdict":"missing_bazaar_extension"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_of-3aOF6OSgSzL6rMIbfw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Post-mortems a failed x402 HTTP 402 payment handshake, diagnosing issues with payment shape, bazaar extension, network, asset, or resource URL.","exampleAgentPrompt":"My agent keeps getting a 402 PAYMENT-REQUIRED error even after attempting payment on this resource — can you diagnose the x402 handshake failure and tell me what the verdict and fix is? The resource URL is https://someapi.example.com/endpoint and here is the raw 402 challenge: eyJwYXltZW50IjoiLi4uIn0=","exampleUseCases":[{"title":"Debugging a stuck 402 payment loop","prompt":"My x402-enabled agent paid for a resource but keeps getting 402 back — can you diagnose the handshake with this challenge payload eyJwYXltZW50IjoiLi4uIn0= for https://api.myservice.com/data and tell me what the verdict is?"},{"title":"Identifying missing bazaar extension","prompt":"I integrated the bazaar extension for my paid endpoint but buyers are hitting 402 errors — can you analyze this challenge and the resource URL https://bazaar.myapp.com/api/content and tell me if there's something missing in the bazaar extension config?"},{"title":"Validating x402 asset and network config","prompt":"I set up an x402 paywall on my API and I'm not sure if the network or asset config is wrong — please diagnose this 402 challenge JSON for https://myapi.vercel.app/premium and give me a clear verdict on what the issue is."}],"resultDescription":"Returns a JSON object with a 'verdict' field identifying the specific failure category (e.g. 'missing_bazaar_extension', 'wrong_network', 'malformed_payment_header') and a 'wisdom' field providing human-readable diagnostic explanation and developer remediation guidance.","failureModes":["Invalid or unparseable base64 challenge returns error verdict","Resource URL unreachable or malformed causes incomplete diagnosis","Unrecognized 402 challenge shape may yield generic verdict","Missing both resource_url and challenge_b64_or_json may result in empty or error response","Network or payment asset mismatch may not be fully diagnosable from challenge alone"],"whenToPreferThis":"Choose this endpoint when an x402-enabled agent or developer has already received a 402 PAYMENT-REQUIRED response and needs to understand exactly why the payment handshake failed — especially for bazaar extension issues, wrong network/asset configuration, or malformed payment headers. It is specifically designed for post-mortem diagnosis of x402 protocol failures rather than general API debugging.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:52:06.545Z","isFirstParty":false,"canonicalSlug":"x402-oracle-diagnose-402-81db4e4e"}