{"uid":"cap_RhJ35LlWsakepXhBiAr7k","slug":"x402-health-check-coding-agent-context-apis-26db5395","name":"x402 Health Check – Coding Agent Context APIs","description":"Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.","url":"https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/x402/health","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","example":"https://x402.payai.network/api/base/paid-content"},"method":{"enum":["GET","POST"],"type":"string","default":"GET","example":"GET"}}},"responseSchema":{"type":"json","example":{"data":{"status":402,"reachable":true,"latency_ms":120,"base_mainnet":true,"x402_version":2,"protocol_valid":true,"bazaar_declared":false,"canonical_base_usdc":true,"resource_matches_target":true},"meta":{"engine":"x402-health"}}},"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_vOMf1sQ2Ocl2yz6Vc5LvH","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":"Checks whether a given URL is a reachable, valid x402 pay-per-call endpoint and returns protocol validity, latency, network, and canonical USDC configuration details.","exampleAgentPrompt":"Can you check if https://x402.payai.network/api/base/paid-content is a reachable and valid x402 endpoint — tell me its protocol version, whether it's on Base mainnet, and if canonical USDC is correctly configured?","exampleUseCases":[{"title":"Validate new x402 API before integration","prompt":"Before I start using this coding agent API, can you check if https://x402.payai.network/api/base/paid-content is properly set up as an x402 endpoint — is it reachable, is the protocol valid, and is it running on Base mainnet?"},{"title":"Monitor x402 endpoint uptime and latency","prompt":"Can you probe https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/x402/docs with a GET request and tell me if it's reachable, what its latency is, and whether the x402 protocol is valid?"},{"title":"Check bazaar listing and canonical USDC config","prompt":"I want to list my API on the x402 bazaar — can you first verify that https://myapi.example.com/premium is correctly configured with canonical Base USDC and has been declared on the bazaar?"}],"resultDescription":"Returns a JSON object with a `data` field containing: HTTP status (402 expected), reachability boolean, latency in milliseconds, Base mainnet flag, x402 protocol version number, protocol validity boolean, bazaar declaration flag, canonical Base USDC flag, and resource-matches-target flag. Also includes a `meta.engine` field identifying the health engine used.","failureModes":["URL is unreachable — reachable: false returned with no latency","Target URL returns non-402 status — protocol_valid: false","Endpoint is not on Base mainnet — base_mainnet: false","Resource does not match target URL — resource_matches_target: false","Invalid URL format in input — request validation error","Network timeout reaching the target URL"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify that a specific URL implements the x402 pay-per-call protocol correctly before integrating it into an agent workflow, listing it on a marketplace, or triggering a payment. Prefer this over generic HTTP health checks when you specifically need x402 protocol validity, Base mainnet confirmation, USDC canonical config, or bazaar listing status.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:46:58.334Z","isFirstParty":false}