{"uid":"cap_I0Axf0ktyKFgJIhX9Fr7A","slug":"spf-record-flattener-08b84cd6","name":"SPF Record Flattener","description":"SPF flattener: recursively expands a domain's SPF includes and redirects into the final list of authorised IPv4/IPv6 ranges and returns a flattened record. Fix the 10-lookup limit or audit exactly which networks may send mail as the domain. $0.01 per domain.","url":"https://intel.rallylive.ca/dns/spf-flatten","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZxVNpP1KTey96_U68j-AL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Recursively expands a domain's SPF includes and redirects into a flat list of authorized IPv4/IPv6 ranges, returning a single flattened SPF record.","exampleAgentPrompt":"Can you flatten the SPF record for example.com — recursively expand all the includes and redirects so I get a single list of every IP range authorized to send mail as that domain?","exampleUseCases":[{"title":"Fix SPF 10-lookup limit","prompt":"Our domain acme.com keeps hitting the SPF 10-lookup limit and emails are failing — can you flatten our SPF record so I can see all the final IP ranges and build a single flat record that won't exceed the limit?"},{"title":"Audit outbound mail senders","prompt":"I need to audit exactly which IP networks and ranges are allowed to send email as our domain brandco.com — can you expand all the SPF includes and give me the full flattened list?"},{"title":"Investigate third-party sender permissions","prompt":"We just onboarded a new ESP and I want to verify which networks are actually authorized to send as newsletter.mybrand.com — can you recursively resolve the SPF record and show me all authorized IPv4 and IPv6 ranges?"}],"resultDescription":"A flattened SPF record containing the complete, deduplicated list of authorized IPv4 and IPv6 CIDR ranges derived from recursively expanding all SPF `include:` mechanisms and `redirect=` modifiers for the queried domain, along with the synthesized flat SPF TXT record string.","failureModes":["Domain has no SPF record — returns empty or error response","Circular SPF includes causing infinite loop — endpoint should detect and break","Domain does not exist or DNS resolution fails — DNS NXDOMAIN error","SPF record is malformed or unparseable — parse error returned","Exceeds recursive depth for deeply nested includes — may return partial results"],"whenToPreferThis":"Use this endpoint when you need to resolve the full effective set of IP addresses authorized by a domain's SPF policy, especially when diagnosing SPF PermError caused by exceeding the 10-lookup limit, auditing third-party sender permissions, or generating a simplified flat SPF record. Prefer this over manual DNS lookups or generic DNS query tools when you need recursive expansion with deduplication across includes and redirects in a single API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:11:21.488Z","isFirstParty":false}