Sending domains
Add a sending domain
POST/v1/sending-domains
Requires an API key with the domains:write scope. About keys and scopes
Registers a domain to send from and returns the DNS records to publish. The domain cannot send until those records are in place and verification has succeeded.
Request body
domainstringrequired3–253 characters
Returns
Returns 201 Created with a SendingDomain in data. Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
domainstringrequiredstatusstringrequiredWhether the provider has verified the domain for sending.
one of
pending,verified,failedownershipStatusstringrequiredWhether proof that you control the domain has been found in DNS.
one of
pending,verifiedownershipRecordobjectrequiredThe record that proves you control the domain.
5 child attributes
typestringrequiredone of
CNAME,TXT,MXnamestringrequiredThe full hostname to publish the record at.
valuestringrequiredWhat the record must contain.
foundstring[]optionalWhat DNS returned for this name and type at the last check; absent before one.
matchesbooleanoptionalWhether
foundholdsvalue; absent before a check.
separateOwnershipRecordbooleanrequiredFalse for a domain added since one-trip setup:
ownershipRecordis its DKIM record, listed indnsRecordswith the others. True for older domains, whose ownership TXT is published first and on its own.provisioningStatusstringrequiredSetup progress at the email provider:
awaiting_proofuntil ownership is shown, thenprovisioning,provisioned.quarantined: the domain is already set up at the provider by someone else, so nothing sends from it until Kirora support reviews it.one of
awaiting_proof,provisioning,provisioned,quarantineddnsRecordsobject[]requiredThe records to publish at your DNS host.
5 child attributes
typestringrequiredone of
CNAME,TXT,MXnamestringrequiredThe full hostname to publish the record at.
valuestringrequiredWhat the record must contain.
foundstring[]optionalWhat DNS returned for this name and type at the last check; absent before one.
matchesbooleanoptionalWhether
foundholdsvalue; absent before a check.
providerstringrequiredThe email provider that sends for the domain.
failureReasonstring | nullrequiredWhy verification failed, when it has.
readinessChecksobject | nullrequiredPer-check results from the last verification; null before one.
4 child attributes
identitystringrequiredThe sending identity.
one of
pending,verified,faileddkimstringrequiredThe DKIM signing records.
one of
pending,verified,failedmailFromstringrequiredThe custom MAIL FROM (
bounce.) records.one of
pending,verified,faileddmarcobjectrequiredThe DMARC record covering the domain.
4 child attributes
statusstringrequiredWhether a usable DMARC record was found.
one of
valid,missing,invalid,unknownpolicystring | nullrequiredThe policy the DMARC record sets.
one of
none,quarantine,rejectpolicyDomainstring | nullrequiredThe domain the DMARC record was found on.
inheritedbooleanrequiredTrue when the record is the parent domain's, not the domain's own.
verificationCheckedAtstring | nullrequiredWhen DNS was last checked.
date-time
verificationCurrentbooleanrequiredWhether the domain can send now; see
verificationReadinessReasonif not.verificationReadinessReasonstring | nullrequiredWhy
verificationCurrentis false; null when it is true.one of
inactive_provider,quarantined,provisioning_incomplete,provider_unverifiedcreatedAtstringrequireddate-time
updatedAtstringrequireddate-time