{"uid":"cap_euSsY-iof184NYguzIBQT","slug":"x402-endpoint-linter-validator-59c6e63e","name":"x402 Endpoint Linter / Validator","description":"Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.","url":"https://ai-policy-kit.moneymaker-ai.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","required":["url"],"properties":{"url":{"type":"string","description":"public https URL of the paid endpoint"},"method":{"enum":["GET","POST"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"url":"https://ai-policy-kit.moneymaker-ai.workers.dev/api/policy","errors":[],"offers":[{"payTo":"0x5b4Ca59741DE12DC212982b342392a063492a021","price":"0.01 USDC","scheme":"exact","network":"eip155:8453"}],"warnings":[],"http_status":402,"discoverable":true}},"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_gQBHM7KAkyyL-bPYI4aYp","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":"Validates whether a given public HTTPS URL correctly implements the x402 payment protocol, returning lint errors, warnings, payment offers, and discoverability status.","exampleAgentPrompt":"Can you lint my x402 endpoint at https://myapi.example.com/api/paid-resource using GET to check if the 402 payment response is correct and discoverable?","exampleUseCases":[{"title":"Debug broken x402 payment response","prompt":"My paid API at https://myservice.example.com/api/data keeps getting rejected by x402 clients — can you lint it with GET and tell me what errors are in the 402 response?"},{"title":"Verify new x402 endpoint before launch","prompt":"I just built a new x402-gated endpoint at https://newapi.example.com/api/premium using GET — can you run the x402 linter on it and confirm it's set up correctly and will be discoverable?"},{"title":"Check payment offer details on existing API","prompt":"Can you validate my POST endpoint at https://marketplace.example.com/api/generate with the x402 linter and show me the payment offers it's advertising, including the USDC price and wallet address?"}],"resultDescription":"A JSON object indicating whether the endpoint passes x402 linting (ok: true/false), a list of errors and warnings describing protocol violations or misconfigurations, an array of payment offers each with payTo wallet address, price, scheme, and network chain, the HTTP status code observed, and a discoverability boolean.","failureModes":["Target URL is not publicly reachable — returns errors indicating connection failure","URL does not return a 402 status — lint fails with missing payment-required response","Malformed 402 response body — errors list specific JSON schema violations","Missing or invalid payment offer fields (payTo, price, network) — flagged in errors array","URL uses HTTP instead of HTTPS — rejected as invalid input"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify that an API correctly implements the x402 micropayment protocol — especially before publishing an endpoint to an x402 discovery service, debugging why an endpoint isn't being accepted by x402 clients or bazaars, or automating CI checks for x402 compliance in a payment-gated API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:33:35.958Z","isFirstParty":false,"canonicalSlug":"x402-endpoint-linter-validator-59c6e63e"}