{"uid":"cap_Fhe6lyVLy81SVHYx10mv8","slug":"x402-endpoint-linter-c7345a89","name":"x402 Endpoint Linter","description":"Lint any x402 endpoint before you pay it: fetches the URL, checks 402 status, x402Version, accepts[] fields (scheme, network, amount, asset, payTo, resource, timeout), known USDC asset, price in USD and discovery metadata. Returns {ok, issues[], summary}. Query: url. $0.01.","url":"https://klane402.deanhiki.workers.dev/api/x402-lint?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","properties":{"url":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"issues":[],"summary":{"network":"base","priceUSD":0.002}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_KO31Hm8JomnaoaDZ31DmV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and lints an x402 payment endpoint URL, checking its 402 response, version, payment fields, asset validity, and price metadata before you pay it.","exampleAgentPrompt":"Before I pay it, can you lint the x402 endpoint at https://example.com/api/data and tell me if the 402 status, version, accepts fields, USDC asset, and price are all correctly configured?","exampleUseCases":[{"title":"Pre-payment endpoint health check","prompt":"I'm about to integrate with this x402 API at https://api.someservice.dev/weather — can you lint it first and tell me if the payment fields like scheme, network, amount, and payTo look correct?"},{"title":"Debugging a misconfigured x402 service","prompt":"My x402 endpoint at https://mypaywall.example.com/report keeps failing — can you run a lint check on it and list any issues with the 402 response or accepts fields?"},{"title":"Auditing x402 price and asset before workflow","prompt":"Before my agent starts calling https://klane402.deanhiki.workers.dev/api/some-endpoint repeatedly, lint it and confirm the price in USD, network, and USDC asset are all valid so I'm not sending payments blindly."}],"resultDescription":"Returns a JSON object with: ok (boolean indicating overall validity), issues (array of strings describing specific problems found), and summary (object with network name and priceUSD). A clean endpoint returns ok:true and an empty issues array.","failureModes":["URL does not return HTTP 402 status — reported as an issue","Missing or invalid x402Version field in response","accepts[] array missing required fields like scheme, network, amount, asset, payTo, resource, or timeout","Unknown or unsupported USDC asset address — flagged as issue","URL is unreachable or times out — returns ok:false with connectivity issue","Malformed JSON in 402 response body"],"whenToPreferThis":"Use this endpoint when you need to validate an x402 payment endpoint before committing a payment, integrating it into an automated workflow, or diagnosing why an x402 API is not behaving correctly. It is the only known purpose-built x402 lint tool and is ideal as a pre-flight check step in any agent that consumes x402-gated APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:53.921Z","isFirstParty":false,"canonicalSlug":"x402-endpoint-linter-c7345a89"}