{"uid":"cap_CoozuPfe9KJwCQy8hcT8C","slug":"domain-preflight-check-api-6ae586dc","name":"Domain Preflight Check API","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/domain/preflight","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"domain":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"has_mx":true,"has_dns":true},"meta":{"engine":"preflight"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oeYeMpse3ZFsW7DlODB21","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 domain has MX and DNS records configured, returning a preflight readiness summary for coding agent workflows.","exampleAgentPrompt":"Can you run a preflight check on example.com to see if it has MX and DNS records configured?","exampleUseCases":[{"title":"Email deliverability pre-check","prompt":"Before we try sending onboarding emails to users at acmecorp.io, can you check if that domain actually has MX records set up?"},{"title":"Domain readiness validation in CI pipeline","prompt":"I'm setting up a new domain newstartup.dev — can you do a preflight DNS check to confirm the DNS and MX records are live yet?"},{"title":"Bulk domain hygiene screening","prompt":"We have a lead list and I want to filter out domains that aren't properly DNS-configured — can you preflight check clientdomain.biz to see if it has valid DNS and MX records before we add them to our campaign?"}],"resultDescription":"Returns a JSON object with a `data` field containing `has_mx` (boolean indicating MX record presence) and `has_dns` (boolean indicating DNS record presence), plus a `meta` field with an `engine` key set to 'preflight'.","failureModes":["Invalid or malformed domain string returns an error response","Non-existent TLD may return false for both has_mx and has_dns","Network timeout if DNS resolution is slow","Missing `domain` field in request body may cause a 400 error","Payment failure via x402 protocol blocks the call"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap ($0.02 USDC) binary check on whether a domain has MX and/or DNS records active — ideal for pre-validating email targets, filtering lead lists, or gating agent workflows on domain readiness before attempting communication. Prefer this over full DNS lookup services when you only need a simple yes/no preflight signal rather than detailed record contents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:06.509Z","isFirstParty":false}