Skip to main content
POST
/
api
/
ext
/
generic
/
email
/
spf-generator
Generate SPF record
curl --request POST \
  --url https://app.spotzee.com/api/ext/generic/email/spf-generator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data domain=example.com
{
  "status": "success",
  "data": {
    "record": "v=spf1 ip4:192.168.1.0/24 include:_spf.google.com ~all",
    "warnings": [
      "SPF record exceeds 10 DNS lookups limit"
    ],
    "details": {
      "version": "spf1",
      "mechanisms": [
        "ip4:192.168.1.0/24",
        "include:_spf.google.com"
      ],
      "policy": "~all"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
domain
string
required

Domain name

Example:

"example.com"

keep_existing
boolean

Keep existing SPF record entries

Example:

"false"

allow_ip_to_send_email
boolean

Allow IP addresses to send email

Example:

"true"

allow_mx_to_send_email
boolean

Allow MX servers to send email

Example:

"true"

hostnames_to_send_email
string

Comma-separated list of hostnames allowed to send email

ipv4
string

Comma-separated list of IPv4 addresses or CIDR blocks

ipv6
string

Comma-separated list of IPv6 addresses or CIDR blocks

other_includes
string

Comma-separated list of domains to include in SPF record

policy
enum<string>

SPF policy: -all (fail), ~all (softfail), ?all (neutral), +all (pass)

Available options:
-all,
~all,
?all,
+all
Example:

"~all"

Response

Successfully generated SPF record

status
enum<string>
required

Indicates successful operation

Available options:
success
data
object
required