Create Email Domain
Beta/v1/messaging/email-domainsIdempotent with Idempotency-Key header. Learn more
Registers a domain you own with the email bridge and returns the DKIM tokens to publish.
The domain starts in pending. Publish each returned token as a CNAME record in the domain's DNS, then call the verify action to move it to verified; only then can inboxes be created on it.
A domain can only be registered once across the platform, so registering one that is already in use returns a conflict error.
domainstringThe fully-qualified domain name to register (e.g. support.acme.com).
Supply a bare domain, not an email address; the value is lowercased before it is stored.
idstringEmail domain ID.
objectstringenumValues:email_domainResource type identifier.
domainstringThe fully-qualified domain name (e.g. support.acme.com).
statusstringenumValues:pendingverifiedfailedVerification status.
pending: registered and awaiting DKIM confirmation.verified: DKIM confirmed; the domain can send mail.failed: verification could not be completed.
Inboxes can only be created on a verified domain.
dkim_tokensarray of stringThe DKIM tokens that must be published in your DNS before the domain can be verified.
Publish each token as a CNAME record on the domain, then call the verify action to confirm them.
mail_from_domainstringnullableThe subdomain used as the envelope return path for mail sent from this domain.
Publishing the two records below makes the return path match the sender address. Until you do, mail clients show your mail as coming from your address "via amazonses.com".
mail_from_mx_recordstringnullableThe MX record to publish on mail_from_domain, for delivery of bounces and complaints.
mail_from_spf_recordstringnullableThe SPF record to publish as a TXT record on mail_from_domain.
verified_atstring (date-time)nullableWhen the domain's DKIM verification was confirmed.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Create Email Domain