{"uid":"cap_Wbrp_r0PcjSS0DCVQK6DQ","slug":"x402-preflight-audit-1754a2da","name":"x402-preflight Audit","description":"Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.","url":"https://api.firstmention.uk/s/x402-preflight/audit?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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","properties":{"endpoints":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"checked":{"type":"number"},"passing":{"type":"number"},"reports":{"type":"array","items":{"type":"object","properties":{"ok":{"type":"boolean"},"url":{"type":"string"},"payTo":{"type":"string"},"amount":{"type":"string"},"issues":{"type":"array"},"status":{"type":"number"},"in_spec":{"type":"boolean"},"network":{"type":"string"},"payable":{"type":"boolean"}}}},"summary":{"type":"object","properties":{"unpayable_402s":{"type":"number"},"free_paid_paths":{"type":"number"},"undiscoverable_paths":{"type":"number"}}}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"checked":1,"passing":1,"reports":[{"ok":true,"url":"https://api.firstmention.uk/s/funding-rates/carry?symbols=BTC","payTo":"0xddbeE715fEB5232aF1f2B0f07392aAA0c712E572","amount":"10000","issues":[],"status":402,"in_spec":true,"network":"base","payable":true}],"summary":{"unpayable_402s":0,"free_paid_paths":0,"undiscoverable_paths":0}}},"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_OmXrcbcvDur04d1EYd5Gg","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":"Audits one or more x402 pay-per-call HTTP endpoints to verify they are correctly configured, discoverable, and payable on Base","exampleAgentPrompt":"Can you audit the x402 endpoint at https://api.example.com/s/my-service/data to check whether it's correctly configured, discoverable, and payable on Base?","exampleUseCases":[{"title":"Debugging a misconfigured x402 API","prompt":"My pay-per-call API at https://api.myservice.io/data keeps rejecting payments — can you run an x402 preflight audit on it and tell me what issues it has?"},{"title":"Verifying new x402 service before launch","prompt":"I'm about to launch my x402-gated endpoint at https://api.newproject.xyz/s/analytics/query — can you audit it to confirm it's in spec, discoverable, and that the payTo address and amount look right?"},{"title":"Checking multiple endpoints for x402 compliance","prompt":"Can you run an x402 audit across these three endpoints — https://api.firstmention.uk/s/funding-rates/carry, https://api.firstmention.uk/s/websearch/query, and https://api.firstmention.uk/s/edgar/filings — and summarize which ones are passing and which have issues?"}],"resultDescription":"Returns a JSON object with an overall ok boolean, the count of endpoints checked and passing, a per-endpoint reports array (each with url, payTo address, amount, network, in_spec, payable, HTTP status, and any issues), and a summary object counting unpayable 402s, free-paid paths, and undiscoverable paths.","failureModes":["Endpoint URL is unreachable or returns a non-402 response — report will show payable: false and list issues","Payment headers are malformed or missing required fields — in_spec will be false with issue details","Network mismatch (non-Base chain) — report flags network as incompatible","No endpoints query parameter provided — request may return empty or error response","Endpoint behind firewall or rate-limiting — audit may timeout or return incomplete results"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify that an x402 pay-per-call HTTP API is correctly implementing the x402 protocol — including checking payment metadata, discoverability, and payability on Base. Prefer it over manual inspection or generic HTTP testing tools when you specifically care about x402 protocol compliance, payTo address correctness, USDC amount configuration, and whether the endpoint will be successfully callable by an x402-aware agent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T11:37:28.199Z","isFirstParty":false,"canonicalSlug":"x402-preflight-audit-1754a2da"}