{"uid":"cap_91nsokeW8b1q5wLZRj5WI","slug":"dns-spf-record-parse-16d72e06","name":"DNS SPF Record Parse","description":"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…","url":"https://api.delx.ai/api/v1/x402/dns-spf-record-parse","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WXcIrp_HNXPVN0tMhCulY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses an SPF DNS record string into its version, mechanisms, modifiers, and terminal policy as structured, normalized JSON.","exampleAgentPrompt":"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'?","exampleUseCases":[{"title":"Email deliverability audit","prompt":"I have this SPF record from our domain and I need to know every mechanism and modifier in it, plus what the final policy is — can you break it apart: 'v=spf1 include:mailgun.org ip4:203.0.113.5 ~all'?"},{"title":"Security review of SPF policy","prompt":"Before we accept mail from this sender, can you parse their SPF record and confirm whether it has a hard-fail or soft-fail terminal policy? The record is: 'v=spf1 include:_spf.example.com -all'."},{"title":"Debugging SPF configuration","prompt":"Something is wrong with our email setup — can you parse this SPF TXT record and show me all the mechanisms in structured form so I can figure out what's missing: 'v=spf1 include:spf.protection.outlook.com ip6:2001:db8::/32 ?all'?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:56.118Z","isFirstParty":false}