Email validate

$0.001 per call · USDC via x402 · POST /api/email-validate

Validate an email address: syntax check plus live MX record lookup on the domain (deliverability signal, not a guarantee). Send POST /api/email-validate with the required field email and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with email, syntaxValid, domain, mxRecords and deliverableDomain.

Category: Validation & parsing · Tags: email validate mx deliverability

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
emailstringyesEmail address to check

Example request

curl -i -X POST https://agent402.tools/api/email-validate \
  -H "Content-Type: application/json" \
  -d '{"email":"someone@gmail.com"}'

Without payment this returns HTTP 402 Payment Required with the exact price for email-validate; any x402 v2 or MPP client pays it and retries.

Example response

{
  "email": "someone@gmail.com",
  "syntaxValid": true,
  "domain": "gmail.com",
  "mxRecords": [
    "gmail-smtp-in.l.google.com",
    "alt1.gmail-smtp-in.l.google.com"
  ],
  "deliverableDomain": true
}
FieldTypeAlways presentIn the example
emailstringyessomeone@gmail.com
syntaxValidbooleanyestrue
domainstringyesgmail.com
mxRecordsarray of stringyes2 items in the example
deliverableDomainbooleanyestrue

From an MCP client

catalog.call {
  "slug": "email-validate",
  "params": {
    "email": "someone@gmail.com"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for email-validate; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/email-validate", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "email": "someone@gmail.com"
  }),
});

Part of these workflows

Email validate is one step in these 3 skill packs, each sold as a single call:

Related tools

Email deliverability check

$0.002 · POST /api/email-deliverability

End-to-end email-auth report for a domain: SPF + DMARC + DKIM (probes common selectors automatically) + MX records + sco…

Card number validate

FREE w/ compute · or $0.001 · POST /api/card-validate

Validate a payment card number (Luhn checksum) and detect the brand. Numbers are not stored or logged.

IBAN validate

FREE w/ compute · or $0.001 · POST /api/iban-validate

Validate an IBAN: country code, length, and the ISO 13616 mod-97 checksum.

ISBN validate

FREE w/ compute · or $0.001 · POST /api/isbn-validate

Validate an ISBN-10 or ISBN-13 checksum (hyphens/spaces ignored) and report which format it is.

JSON Schema infer

FREE w/ compute · or $0.001 · POST /api/json-schema-infer

Infer a draft-07 JSON Schema from sample JSON document(s). Send one sample as json, or several as samples. Heuristic mer…

UUID validate

FREE w/ compute · or $0.001 · POST /api/uuid-validate

Validate a UUID and report its version (1-8) and variant. Accepts hyphenated or braced forms.