# X402 Data API – Mail Security Lookup

> X402 Data API – Mail Security Lookup is a paid API for AI agents from api.x402dataapi.com, paid per call via x402, $1/call, status unknown (last checked 2026-09-13).

Checks a domain's email security configuration, returning MX records, SPF presence, and DMARC presence for a given public domain.

## Facts

- Endpoint: POST https://api.x402dataapi.com/v1/mail-security
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-api-mail-security-lookup-fa657a14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V3ym6Xq-icAybtorm-xqv

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-data-api-mail-security-lookup-fa657a14 -d '<json body>'
```

Example prompt: Can you check the email security setup for stripe.com — specifically whether it has SPF and DMARC records configured, and what MX records are in use?

## When to prefer this

Use this endpoint when you need a quick, pay-per-request DNS-level mail security audit for a single domain — specifically to check MX, SPF, and DMARC presence — without setting up a subscription-based service or running your own DNS queries. Ideal for AI agents needing on-demand email security intelligence at low cost ($0.001 USDC per call).

## Known failure modes

- Invalid or non-existent domain returns empty or error response
- Domain with no DNS records may return empty mx array and false for SPF/DMARC
- Network timeout if DNS resolution is slow
- Malformed domain string may cause 4xx validation error
- Payment failure via x402 protocol blocks the request

## How this service works

Paid x402 API for AI agents that checks MX records, SPF, DMARC, email security, phishing risk, domain mail configuration and anti-spoofing posture for a public domain.

## Output

A JSON object containing the queried domain name, an array of MX records, and boolean presence indicators for SPF and DMARC records (e.g. {"domain": "example.com", "mx": [...], "spf": {"present": true}, "dmarc": {"present": true}}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "domain": {
   "type": "string",
   "description": "Public domain name to inspect"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mx": [],
  "spf": {
   "present": true
  },
  "dmarc": {
   "present": true
  },
  "domain": "example.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-api-mail-security-lookup-fa657a14/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402dataapi.com](https://www.zero.xyz/host/api.x402dataapi.com/llms.txt)
