# DNS DMARC Policy Parse

> DNS DMARC Policy Parse is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Parses and validates DMARC DNS record strings, extracting policy, percentage, alignment, and reporting tags as structured, deterministic JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/dns-dmarc-policy-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-dmarc-policy-parse-9096f3c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fvqpkO-QbaQAgB-OzlTd7

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 dns-dmarc-policy-parse-9096f3c7 -d '<json body>'
```

Example prompt: Can you parse this DMARC record and tell me the policy, alignment settings, and any reporting addresses: 'v=DMARC1; p=quarantine; pct=50; rua=mailto:dmarc@example.com; adkim=s; aspf=r'?

## When to prefer this

Use this endpoint when you need deterministic, stateless, in-memory parsing of a raw DMARC TXT record string without making any external DNS lookups. Prefer it over live DNS resolver endpoints when you already have the record value and want fast, reproducible structured extraction — e.g., before caching, forwarding, or acting on a DNS response. Ideal for email security audits, onboarding flows, and agent pipelines that need to validate DMARC configuration programmatically.

## Known failure modes

- Malformed or non-DMARC record string returns advisory/fail status with parsing error detail
- Record exceeds 8192 character limit returns validation error
- Missing required v=DMARC1 tag causes parse failure
- Payment not included or insufficient USDC causes x402 payment required error
- Empty record field returns error indicating no input to parse

## How this service works

DNS DMARC Policy Parse: DNS DMARC Policy Parse parses DMARC policy, percentage, alignment, and report tags from bounded caller-supplied values without an external provider. Call DNS DMARC Policy Parse before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for DNS DMARC Policy Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless…

## Output

Returns versioned deterministic JSON containing the parsed DMARC fields (policy, percentage, alignment modes, report URIs), normalized evidence from the input record, the computed finding, and an explicit pass or advisory status indicating whether the record is well-formed and compliant.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "record": {
   "type": "string",
   "maxLength": 8192,
   "description": "Record supplied to DNS DMARC Policy Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "valid": true,
   "policy": "reject",
   "directives": {
    "p": "reject",
    "v": "DMARC1",
    "pct": "100",
    "aspf": "s",
    "adkim": "s"
   }
  },
  "schema": "delx/util-dns-dmarc-policy-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "dd98ece9a411e022af8695a92276433d7ad848c4659bdfe0253a850683e10306",
   "external_calls": 0
  },
  "operation": "web_reliability:dns_dmarc_policy_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-dmarc-policy-parse-9096f3c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
