EN
Web & domain · x402

email-check

Email address check: RFC syntax, domain MX/A records (deliverability signal, no SMTP probe), disposable-domain and role-account flags.

0.001 USDC / call · {atomic} atomic · 1000 atomic

Endpoint

GET|POST https://x402-gateway.forge-x402.workers.dev/api/email-check
MCP tool:: email_check

Parameters

NameRequiredTypeDescription
emailRequiredstring—

Example request (unpaid — expect 402)

curl -sS -D - "https://x402-gateway.forge-x402.workers.dev/api/email-check?email=postmaster%40gmail.com"

Example 402 challenge

The same object is also sent as a base64 PAYMENT-REQUIRED header. Amounts are atomic USDC units (6 decimals).

{
  "x402Version": 2,
  "error": "Payment required",
  "resource": {
    "url": "https://x402-gateway.forge-x402.workers.dev/api/email-check",
    "description": "Email address check: RFC syntax, domain MX/A records (deliverability signal, no SMTP probe), disposable-domain and role-account flags.",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "1000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x7B8bf45ac6AcbA6D4CFB626b57D3f5fF3C9C89F7",
      "maxTimeoutSeconds": 120,
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    }
  ]
}

Retry with payment

curl -sS "https://x402-gateway.forge-x402.workers.dev/api/email-check?email=postmaster%40gmail.com" \
  -H "PAYMENT-SIGNATURE: $PAYMENT"

Example response

{
  "email": "contact@example.com",
  "syntax_ok": true,
  "domain": "example.com",
  "has_mx": true,
  "mx": [
    "mx.example.com"
  ],
  "disposable": false,
  "role_account": true
}

Related endpoints