Lookup SPF record
curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/email/spf-lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.comimport requests
url = "https://apix.spotzee.com/api/ext/generic/email/spf-lookup"
payload = { "domain": "example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({domain: 'example.com'})
};
fetch('https://apix.spotzee.com/api/ext/generic/email/spf-lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apix.spotzee.com/api/ext/generic/email/spf-lookup"
payload := strings.NewReader("domain=example.com")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"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"
}
}
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}Email
Lookup SPF record
Retrieves and analyzes the current SPF record for a domain. Provides the raw record, parsed mechanisms, validation warnings, and suggestions for improvement.
POST
/
generic
/
email
/
spf-lookup
Lookup SPF record
curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/email/spf-lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.comimport requests
url = "https://apix.spotzee.com/api/ext/generic/email/spf-lookup"
payload = { "domain": "example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({domain: 'example.com'})
};
fetch('https://apix.spotzee.com/api/ext/generic/email/spf-lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apix.spotzee.com/api/ext/generic/email/spf-lookup"
payload := strings.NewReader("domain=example.com")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"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"
}
}
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}Authorizations
Bearer token authentication. Use format: Bearer YOUR_API_KEY
Body
application/x-www-form-urlencoded
Domain name
Example:
"example.com"
Response
Successfully retrieved SPF record
Indicates successful operation
Available options:
success Hide child attributes
Hide child attributes
Generated SPF record
Example:
"v=spf1 ip4:192.168.1.0/24 include:_spf.google.com ~all"
Warnings about the SPF record
Example:
["SPF record exceeds 10 DNS lookups limit"]
Was this page helpful?
⌘I