Create a domain
Add a sending subdomain and get it ready for DNS verification.
/v1/emails/domainsAuthorization
Bearer token
- Authorizationrequiredheader
Send your API key as
Bearer YOUR_API_KEY.
Body parameters
application/json
domainrequiredstringA valid subdomain such as
mail.example.com. Root domains are not accepted.openTrackingoptionalbooleanDefaults to
true.
Response
The domain is returned under data.
idstringDomain identifier.
domainstringSending subdomain.
statusstringOne of
"pending""verified""failed"regionstringSending region.
open_trackingbooleanWhether open tracking is enabled.
verification_errorstring or nullWhat still needs attention when the domain is not verified.
verification_attemptsnumberHow many verification checks ran.
verification_attempted_atstring or nullWhen the last verification check ran.
dns_recordsarrayDNS records to publish, each with
id,purpose,record_type,name,value,priority,status,required_for_sending,last_checked_at,error_code, anderror_message.last_verified_atstring or nullLast successful verification timestamp.
created_atstringCreation timestamp.
updated_atstringLast change timestamp.
Publish the returned DNS records with your DNS provider, then verify the domain.