{"uid":"cap_KaHx3Ikbfk7j0OR9-7z1h","slug":"delx-commerce-spf-record-flags-parser-2cc5d2b5","name":"Delx Commerce SPF Record Flags Parser","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/spf-record-flags?utm_source=zero.xyz","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_Q8s_GuhfiB7wur7Q5DVyc","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 string and returns boolean flags indicating which mechanisms are present (a, mx, include, all).","exampleAgentPrompt":"Can you parse this SPF record and tell me which mechanisms it uses — specifically whether it has a, mx, include, or all? The record is: 'v=spf1 include:_spf.google.com ~all'","exampleUseCases":[{"title":"Audit domain SPF configuration","prompt":"I have this SPF TXT record from our domain DNS: 'v=spf1 a mx include:mailgun.org -all' — can you break it down and tell me which mechanisms like a, mx, include, and all are present?"},{"title":"Check if SPF allows MX servers","prompt":"Does this SPF record authorize our MX servers to send mail? The record body is 'v=spf1 mx include:sendgrid.net ~all' — please check the mx flag."},{"title":"Validate SPF before publishing","prompt":"Before I publish this SPF record to DNS, can you confirm it has an all mechanism and uses include? Record is: 'v=spf1 include:_spf.example.com -all'"}],"resultDescription":"A JSON object containing boolean flags: 'a' (whether the a mechanism is present), 'mx' (whether the mx mechanism is present), 'include' (whether an include directive exists), and 'all_mechanism' (whether an all qualifier is present), plus a schema identifier string.","failureModes":["Missing or malformed SPF string input returns an error","Non-SPF string passed as input may produce incorrect flags","Empty string input may cause a parsing failure","Record with non-standard formatting may yield unexpected boolean values"],"whenToPreferThis":"Use this endpoint when you need to programmatically inspect the mechanisms present in a raw SPF TXT record string without building a full SPF parser. It is ideal for agents auditing email deliverability configurations, validating DNS records before publishing, or checking compliance with SPF policy requirements. Prefer it over writing custom regex-based parsing logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.769Z","isFirstParty":false,"canonicalSlug":"delx-commerce-spf-record-flags-parser-2cc5d2b5"}