Sending
Domains
Add, verify and configure sending domains via the API.
Add a domain
POST /v1/domains
{ "name": "mail.acme.com" }
Response 201 includes the DNS records to publish:
{
"object": "domain",
"id": "66f1...",
"name": "mail.acme.com",
"status": "pending",
"records": [
{ "record": "DKIM", "type": "CNAME", "name": "abc._domainkey.mail.acme.com", "value": "abc.dkim.amazonses.com", "status": "pending" },
{ "record": "SPF", "type": "MX", "name": "send.mail.acme.com", "value": "feedback-smtp.eu-north-1.amazonses.com", "status": "pending" },
{ "record": "SPF", "type": "TXT", "name": "send.mail.acme.com", "value": "v=spf1 include:amazonses.com ~all", "status": "pending" },
{ "record": "DMARC", "type": "TXT", "name": "_dmarc.mail.acme.com", "value": "v=DMARC1; p=none;", "status": "pending" }
],
"capabilities": { "sending": "disabled", "receiving": "disabled" }
}
Verify
POST /v1/domains/:id/verify checks DNS immediately. Pending domains are also re-checked automatically every 10 minutes, and a domain.verified webhook fires when verification succeeds.
Retrieve, list, update, delete
GET /v1/domainsandGET /v1/domains/:idPATCH /v1/domains/:idwith any ofopen_tracking,click_tracking(booleans),tls(opportunistic|enforced),receiving(boolean)DELETE /v1/domains/:id
See the SPF, DKIM and DMARC guide for provider-specific tips.