Add an email domain
Add a domain to send email from. Returns the DNS records to publish (DKIM CNAMEs are required; SPF, DMARC, and MAIL FROM are recommended). Publish them at your DNS provider, then verify.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Body
application/json
domainstringrequiredBare domain, e.g. example.com.
Responses
201Domain added.
domainobjectrequired5 properties
idstringrequireddomainstringrequiredstatusstringrequiredOverall verification status.
dkimStatusstringrequireddnsRecordsobject[]DNS records to publish. Present when fetching a single domain or after adding one.
6 properties
typestringrequiredDNS record type.
namestringrequiredRecord host/name to create.
valuestringrequiredRecord value.
priorityintegerPriority (MX records only).
purposestringrequiredWhat the record is for.
ownershipis a TXT at_zavu-verification.<domain>, returned only when another Zavu account also added this domain and neither has verified it: DKIM records are the same for everyone, so the domain verifies only once this account's own token is published.One ofdkimspfdmarcmail_fromownershiprequiredbooleanrequiredWhether the record is required to verify + send (DKIM) or recommended for deliverability.
400Invalid domain or setup failed.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
409`domain_taken`: another Zavu account has already verified this domain. A sending domain belongs to one account; if it is yours, contact support.
codestringrequiredmessagestringrequireddetailsobject