# x402 Email Validation API

> x402 Email Validation API is a paid API for AI agents from agentkit-x402.zenith-ops.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Validates an email address by checking syntax, DNS/MX records, disposable/role status, typo detection, and deliverability risk scoring — paid per-call in USDC via x402

## Facts

- Endpoint: GET https://agentkit-x402.zenith-ops.workers.dev/v1/email-check?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-email-validation-api-1f1515ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u-uZH4u2GXiVyz_v0QQXf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-email-validation-api-1f1515ed
```

Example prompt: Can you check whether anna@gmial.com is a valid email address — I want to know if it's risky, disposable, or has a typo in the domain before I add it to my list?

## When to prefer this

Choose this endpoint when you need a fast, no-signup, pay-per-call email validation that combines syntax checking, DNS/MX verification, disposable detection, and typo suggestion in one call. Ideal for AI agents that need to validate emails on-demand without managing API keys or subscriptions. Prefer over heavier email verification services when you want USDC micropayment billing and don't need live SMTP probing.

## Known failure modes

- Missing 'email' query parameter returns an error
- Malformed email input may return syntax_valid: false with no DNS data
- DNS lookup failures may result in incomplete MX data
- Temporary DNS timeouts may affect score accuracy
- No SMTP connection is made, so a syntactically valid email with valid MX can still have an undeliverable mailbox — the API notes this limitation explicitly

## How this service works

Pay-per-call API for AI agents with no signup or API key. Email validation, SPF/DMARC audits, DNS lookup, site contacts, URL to Markdown, IBAN and Swedish personnummer/orgnr validation. From $0.001 in USDC on Base via x402.

## Output

Returns a JSON object with: overall deliverability score (0-100), verdict (safe/risky/invalid), syntax validity flag, MX records for the domain, null_mx and nxdomain flags, disposable and role_account booleans, free_provider flag, smtp_checked flag, typo_suggestion if the domain looks misspelled, and an array of reason codes explaining the verdict (e.g. 'possible_domain_typo').

## Request schema (JSON Schema)

```json
{
 "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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "email"
     ],
     "properties": {
      "email": {
       "type": "string",
       "description": "Email address to check."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dns": {
   "mx": [
    {
     "host": "mail.gmial.com",
     "priority": 10
    }
   ],
   "null_mx": false,
   "nxdomain": false,
   "address_record": true
  },
  "note": "Based on syntax, lists and DNS only. No SMTP connection is made, so a deliverable mailbox is not confirmed.",
  "email": "anna@gmial.com",
  "score": 70,
  "domain": "gmial.com",
  "reasons": [
   "possible_domain_typo"
  ],
  "verdict": "risky",
  "disposable": false,
  "local_part": "anna",
  "role_account": false,
  "smtp_checked": false,
  "syntax_valid": true,
  "free_provider": false,
  "typo_suggestion": "gmail.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-email-validation-api-1f1515ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.zenith-ops.workers.dev](https://www.zero.xyz/host/agentkit-x402.zenith-ops.workers.dev/llms.txt)
