curl --request POST \
--url https://app.spotzee.com/api/ext/generic/email/dmarc-generator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.com \
--data failure_response=quarantine \
--data subdomains=none{
"status": "success",
"data": {
"record": "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com; pct=100; sp=none",
"parsedPolicy": {
"version": "DMARC1",
"policy": "quarantine",
"subdomain_policy": "none",
"percentage": 100,
"aggregate_reports": [
"<string>"
],
"forensic_reports": [
"<string>"
],
"alignment": {
"spf": "r",
"dkim": "r"
}
}
}
}Generates a DMARC (Domain-based Message Authentication, Reporting & Conformance) record with specified policies. DMARC helps protect domains from email spoofing and provides visibility into email authentication.
curl --request POST \
--url https://app.spotzee.com/api/ext/generic/email/dmarc-generator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.com \
--data failure_response=quarantine \
--data subdomains=none{
"status": "success",
"data": {
"record": "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com; pct=100; sp=none",
"parsedPolicy": {
"version": "DMARC1",
"policy": "quarantine",
"subdomain_policy": "none",
"percentage": 100,
"aggregate_reports": [
"<string>"
],
"forensic_reports": [
"<string>"
],
"alignment": {
"spf": "r",
"dkim": "r"
}
}
}
}Bearer token authentication. Use format: Bearer YOUR_API_KEY
Domain name
"example.com"
Action to take when DMARC authentication fails
none, quarantine, reject "quarantine"
Policy for subdomains
none, quarantine, reject "none"
Percentage of messages to apply the policy to (0-100)
0 <= x <= 100100
Generate report when all authentication mechanisms fail
"true"
Generate report when any authentication mechanism fails
"true"
Generate report when DKIM authentication fails
"false"
Generate report when SPF authentication fails
"false"
Reporting interval in seconds
86400
SPF alignment mode: r (relaxed) or s (strict)
r, s "r"
DKIM alignment mode: r (relaxed) or s (strict)
r, s "r"
Successfully generated DMARC record
Indicates successful operation
success Hide child attributes
Generated DMARC record
"v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com; pct=100; sp=none"
Hide child attributes
"DMARC1"
"quarantine"
"none"
100
Was this page helpful?