# Mail Security API

> 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.

Intent: x402 mail security API, SPF DMARC MX API, domain email security API, anti spoofing domain API

## Discovery

- OpenAPI: https://api.x402dataapi.com/openapi.json
- x402 catalog: https://api.x402dataapi.com/.well-known/x402-catalog.json
- Capabilities: https://api.x402dataapi.com/capabilities
- Pricing: https://api.x402dataapi.com/pricing

## Tags

- x402
- ai-agents
- mail-security
- email-security
- mx
- spf
- dmarc
- phishing-risk
- anti-spoofing
- domain-mail

## Endpoint

- Method: POST
- URL: https://api.x402dataapi.com/v1/mail-security
- Price: 0.001 USDC
- Network: eip155:8453

## Input schema

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

## Output example

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

## curl without payment

```bash
curl -X POST https://api.x402dataapi.com/v1/mail-security -H 'Content-Type: application/json' -d '{"domain":"example.com"}'
```

## x402 payment behavior

Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED header. Pay with x402, then retry with PAYMENT-SIGNATURE.

## Agent use case

MX, SPF and DMARC posture for a public domain.

## Discovery keywords

x402 mail security API, SPF DMARC MX API, domain email security API, anti spoofing domain API
