{"uid":"cap_rtN8fAYDjzWXQsXRb1ka2","slug":"delx-spf-record-flags-parser-1b76dbce","name":"Delx SPF Record Flags Parser","description":"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.","url":"https://api.delx.ai/api/v1/x402/spf-record-flags","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"spf":{"type":"string","description":"SPF TXT record body"}}},"responseSchema":{"type":"json","example":{"a":false,"mx":false,"schema":"delx/util-spf-record-flags/v1","include":true,"all_mechanism":true}},"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_11IhINqcKgKZbg1H_RSOK","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 TXT record body and returns boolean flags indicating which SPF mechanisms (a, mx, include, all) are present","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Email deliverability audit","prompt":"I just pulled the SPF TXT record for our domain — it's \"v=spf1 include:sendgrid.net include:mailgun.org ~all\" — can you tell me which SPF mechanisms like a, mx, include, and all are flagged as active?"},{"title":"Security misconfiguration detection","prompt":"Check this SPF record for me: \"v=spf1 a mx ip4:192.168.1.0/24 +all\" — I want to know if the all mechanism is present, because a permissive all flag is a security risk I need to flag in my audit report."},{"title":"Automated DNS record validation pipeline","prompt":"As part of our DNS monitoring workflow, parse this SPF record string \"v=spf1 mx include:_spf.example.com -all\" and return the boolean flags for each mechanism so I can decide if it matches our required policy template."}],"resultDescription":"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'.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:08:52.023Z","isFirstParty":false}