Domains
Domain Setup
Add your own sending domain to sign outbound emails with your DKIM key, improving deliverability and brand trust.
Add your own sending domain to sign outbound emails with your DKIM key, improving deliverability and brand trust. eusend auto-generates a 2048-bit RSA DKIM keypair for your domain.
POST
/domains| Parameter | Type | Description |
|---|---|---|
namerequired | string | Your domain name (e.g. acme.com). Must be at least 3 characters. |
curl -X POST https://api.eusend.dev/domains \
-H "Authorization: Bearer eu_live_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "name": "acme.com" }'{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "acme.com",
"dkim": {
"type": "TXT",
"name": "eusend._domainkey.acme.com",
"value": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgK..."
},
"spf": {
"type": "TXT",
"name": "acme.com",
"value": "v=spf1 include:_spf.eusend.dev ~all"
},
"dmarc": {
"type": "TXT",
"name": "_dmarc.acme.com",
"value": "v=DMARC1; p=none; rua=mailto:[email protected]"
}
}After creating the domain, add the DNS records shown in the next section, then call the verify endpoint.
POST
/domains/:id/verifyTrigger DKIM verification. eusend checks your DNS records and updates the domain status to verified or failed.
The rest of the domains surface:
GET
/domainsList domains.
GET
/domains/:idGet domain details.
DELETE
/domains/:idDelete domain.