# Delx SPF Record Flags Parser

> Delx SPF Record Flags Parser 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-14).

Parses an SPF TXT record body and returns boolean flags indicating which SPF mechanisms (a, mx, include, all) are present

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/spf-record-flags
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-spf-record-flags-parser-1b76dbce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rtN8fAYDjzWXQsXRb1ka2

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 delx-spf-record-flags-parser-1b76dbce -d '<json body>'
```

Example prompt: Can you parse this SPF record and tell me which mechanisms are set — "v=spf1 include:_spf.google.com mx ~all" — specifically whether a, mx, include, and all are present?

## When to prefer this

Choose this endpoint when you need a fast, cheap, structured breakdown of SPF TXT record mechanisms into boolean flags — particularly when building DNS auditing tools, email security checkers, or automated compliance pipelines that need to detect the presence of specific SPF mechanisms like 'all', 'include', 'mx', or 'a' without writing custom regex parsing logic.

## Known failure modes

- Missing or empty 'spf' input field — may return an error or empty/false flags
- Malformed SPF string that doesn't conform to RFC 7208 — flags may be inaccurate or parsing may fail
- Very long or complex SPF records with many mechanisms — edge cases may not be fully captured
- Non-SPF TXT record strings passed as input — flags will likely all return false

## How this service works

Detect common SPF mechanisms present in a TXT record. Call when quick SPF mechanism inventory without DNS lookup. Returns flags for include/a/mx/all as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

A JSON object with boolean flags for each major SPF mechanism: 'a' (true/false), 'mx' (true/false), 'include' (true/false), 'all_mechanism' (true/false), and a schema version string identifying the response format as 'delx/util-spf-record-flags/v1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "spf": {
   "type": "string",
   "description": "SPF TXT record body"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": false,
  "mx": false,
  "schema": "delx/util-spf-record-flags/v1",
  "include": true,
  "all_mechanism": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-spf-record-flags-parser-1b76dbce/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)
