# Email Domain Validation & Classification

> Email Domain Validation & Classification is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Validates and classifies an email domain via DNS: MX records, mail provider, SPF/DMARC policy, disposable/free-webmail/role-account flags, and a deliverability signal.

## Facts

- Endpoint: GET https://api.agentstools.dev/enrich/email?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/email-domain-validation-classification-516c99d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T-YN7gl8F2AgUJ5UfQrYF

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 email-domain-validation-classification-516c99d4
```

Example prompt: Can you check whether the domain for 'signup@tempmail.io' is a disposable or free-webmail provider, and tell me if it has valid SPF and DMARC records set up?

## When to prefer this

Use this endpoint when you need to validate or classify an email domain at the DNS level without SMTP probing — ideal for pre-screening signups, detecting disposable/throwaway addresses, checking free-webmail providers, verifying SPF/DMARC policy compliance, or flagging role-based addresses like info@ or support@. Prefer it over SMTP-based validators when privacy and ToS compliance are important.

## Known failure modes

- Domain does not exist in DNS — returns not-found or invalid domain error
- Domain has no MX records — deliverability signal will be negative
- Malformed email or domain input — returns validation error
- DNS timeout or lookup failure — returns transient error
- Rate limit or payment failure — returns 402 or 429 error

## How this service works

Validate and classify an email DOMAIN from public DNS: MX hosts + mail-provider, SPF and DMARC policy, plus disposable / free-webmail / role-account flags and a deliverability signal. No SMTP probing of individual mailboxes (privacy + ToS).

## Output

Returns MX host records and identified mail provider, SPF and DMARC policy details, boolean flags for disposable/free-webmail/role-account classification, and an overall deliverability signal for the domain.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "email": {
       "type": "string",
       "description": "Email address (its domain is checked)"
      },
      "domain": {
       "type": "string",
       "description": "Alternative input: the email domain directly"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/email-domain-validation-classification-516c99d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
