# 2s Domain Email Security Audit

> 2s Domain Email Security Audit is a paid API for AI agents from 2s.io, paid per call via x402, $0.0018/call, status unknown (last checked 2026-10-12).

Audits a domain's email security configuration by checking SPF, DKIM, DMARC, BIMI, DNSSEC, MTA-STS, and CAA DNS records and returning a grade and spoofing-protection summary.

## Facts

- Endpoint: GET https://2s.io/api/domain/email-security?utm_source=zero.xyz
- Price: $0.0018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-domain-email-security-audit-03f48e33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AEDOiaB9g55Gif1FvQtaJ

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 2s-domain-email-security-audit-03f48e33
```

Example prompt: Can you run a full email security audit on paypal.com — check its DMARC, SPF, DKIM, DNSSEC, MTA-STS and everything else, and tell me what grade it gets and whether it's protected against spoofing?

## When to prefer this

Use this endpoint when you need a comprehensive, multi-record email security posture check for a domain in a single call — covering SPF, DKIM, DMARC, BIMI, DNSSEC, MTA-STS, and CAA together with an overall grade and spoofing-protection verdict. Prefer it over manual DNS lookups or single-record checkers when you want a holistic audit with structured output and no API key overhead.

## Known failure modes

- Domain does not exist or has no DNS records — returns empty items array
- Invalid domain format — likely 400 error or empty result
- DKIM check inconclusive if no selector is provided or selector is wrong
- Payment not received — 402 response, call not executed
- Transient DNS resolution failure — may return partial data or error

## How this service works

Grade a domain's email-authentication and DNS-security posture from live DNS in one call: SPF, DMARC (policy + alignment), DKIM (for the supplied or common selectors), MTA-STS, TLS-RPT, DNSSEC, CAA, and BIMI. Pass domain (and optional dkimSelector). Returns an overall letter grade, a summary (spf/dmarcPolicy/dkim/mtaSts/dnssec/caa/bimi + spoofingProtected), and a per-mechanism block with the raw record, parsed tags, and specific issues (e.g. 'DMARC p=none — monitor only', 'SPF ~all soft-fail', 'no MTA-STS'). Sourced from live public DNS via DNS-over-HTTPS — an LLM cannot know a domain's current records. For deliverability/anti-spoofing audits, vendor security review, and phishing-resistance checks. DKIM is selector-based (selectors aren't enumerable), so 'not found' only means none of the checked selectors resolved.

## Output

Returns a JSON object with an overall letter grade (e.g. 'A'), a summary boolean for each record type (SPF, DKIM, DMARC, BIMI, DNSSEC, MTA-STS, CAA), the raw DMARC record string, parsed DMARC policy fields, a list of detected issues, and a spoofingProtected flag. Sourced from live DNS-over-HTTPS queries.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "domain": "example.com"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain to audit (e.g. example.com)."
      },
      "dkimSelector": {
       "type": "string",
       "description": "Optional known DKIM selector (e.g. \"google\", \"s1\")."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-domain-email-security-audit-03f48e33/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
