# DNS SPF Record Parse

> DNS SPF Record 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-13).

Parses an SPF DNS record string into its version, mechanisms, modifiers, and terminal policy as structured, normalized JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/dns-spf-record-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-spf-record-parse-16d72e06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_91nsokeW8b1q5wLZRj5WI

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-spf-record-parse-16d72e06 -d '<json body>'
```

Example prompt: Can you parse this SPF record for me and tell me what version it is, what mechanisms it includes, and what the terminal policy is: 'v=spf1 include:_spf.google.com include:sendgrid.net ip4:192.168.1.0/24 -all'?

## When to prefer this

Use this endpoint when you need to deterministically parse and normalize an SPF DNS record string into structured components without any external DNS lookup or third-party dependency. It is ideal for pipelines that need to inspect SPF policy before caching, redirecting, or accepting email, and where stateless, reproducible parsing is required. Prefer this over general-purpose DNS lookup tools when the raw SPF record text is already known and only structural decomposition is needed.

## Known failure modes

- Record string exceeds 8192 character limit — returns validation error
- Malformed or non-SPF string provided — may return parse error or advisory fail status
- Empty record field — missing required input error
- Non-SPF DNS record passed (e.g. DKIM or DMARC) — may parse but return unexpected or empty fields

## How this service works

DNS SPF Record Parse: DNS SPF Record Parse parses SPF version, mechanisms, modifiers, and terminal policy from bounded caller-supplied values without an external provider. Call DNS SPF Record 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 SPF Record Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, mem…

## Output

Returns versioned deterministic JSON containing the parsed SPF version, a list of mechanisms (e.g. include, ip4, ip6, a, mx), modifiers (e.g. redirect, exp), the terminal policy (all qualifier: +, -, ~, ?), and an explicit pass or advisory status reflecting the validity of the record.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "terminal": "-all",
   "mechanisms": [
    "include:_spf.example.com",
    "ip4:192.0.2.0/24",
    "-all"
   ],
   "dns_lookup_terms": 1
  },
  "schema": "delx/util-dns-spf-record-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f1284dcb830deffb57d018a18b1b0181cd01db0312cee73499122277f9c4e635",
   "external_calls": 0
  },
  "operation": "web_reliability:dns_spf_record_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-spf-record-parse-16d72e06/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)
