Skip to content
dimmiDocs

Email

Add a sending domain

POST/api/v1/email-domains

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Body

application/json
domainstringrequired

The domain, such as company.com. Mailbox domains like gmail.com are refused.

Maximum length: 253

mail_from_subdomainstring

The return path label, such as bounce; one label, at most 63 characters.

Maximum length: 63

Response 201

Created
dataobjectrequired
Show child attributes
ascii_domainstringrequired

The domain as DNS stores it, in ASCII, such as xn--mnchen-3ya.de. Same as domain for plain names.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

dns_setupobjectrequired
Show child attributes
apply_urlstring

The link to open at the DNS host to approve adding the records. Present only once someone asked for the setup.

host_namestringrequired

The name of the DNS host that can add the records itself.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

domainstringrequired

The domain as people write it, such as acme.com.

driverstringrequired

The mail service the domain is set up to send through: ses, smtp, postmark, resend, mailgun or sendgrid.

failure_messagestring | nullrequired

A sentence explaining failure_reason in words. Null when there is no failure.

failure_reasonstring | nullrequired

Why the domain failed: not_verified, records_removed, ownership_transferred or provider_rejected_sender. Null when it has not failed.

host_guideobjectrequired
Show child attributes
deep_linkstringrequired

Address of the DNS host's records page for this domain, where the records are added.

detectedbooleanrequired

True when the DNS host was read from the domain's name servers; false when the team picked it or it is unknown.

host_formstringrequired

How this host wants a record's name typed: relative (without the domain) or fqdn (the whole name).

keystringrequired

Short key of the DNS host, such as cloudflare, route53 or godaddy; other when the host is not known.

namestringrequired

The DNS host's name as people know it, such as Cloudflare; Your DNS host when it is not known.

quirksstring[] | nullrequired

Things that trip people up at this DNS host, as sentences in the reader's language.

stepsstring[] | nullrequired

The steps to add the records at this DNS host, in order, as sentences in the reader's language.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

last_checked_atstring | nullrequired

When the domain's DNS records were last checked. Null when never checked.

Format: date-time

linksobjectrequired
Show child attributes
checksstringrequired

The API address of the domain's DNS checks.

selfstringrequired

The API address of this domain, such as https://.../api/v1/email-domains/edm_...

zone_filestringrequired

The API address that returns the domain's records as a BIND zone file, to import at a DNS host.

mail_from_domainstring | nullrequired

The subdomain used as the return path for bounces, such as bounce.acme.com. Null when none is set up.

next_check_atstring | nullrequired

When the DNS records will be checked again. Null when no check is planned.

Format: date-time

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

provider_hintstringrequired

The key of the DNS host the setup instructions are written for, such as cloudflare, route53 or godaddy, or other when unknown.

provider_trustedbooleanrequired

True when the install's operator listed this domain as already set up at the mail service.

recordsobject[] | nullrequired

The DNS records to publish for the domain, each with what it is for, where it goes, its value and what the last check found.

Show child attributes
hoststringrequired

The record's name as it should be typed at the domain's DNS host, which may be relative to the domain, such as dimmi._domainkey.

namestringrequired

The record's fully qualified name, such as dimmi._domainkey.acme.com.

observedstring[] | nullrequired

The values the last check actually found at this record. Empty when nothing was found or no check has run.

priorityinteger

The priority to set on an MX record. Absent on other record types.

Format: int64

purposestringrequired

What the record is for: ownership, dkim, return_path, return_path_spf, spf or dmarc.

requiredbooleanrequired

True when the domain cannot be verified until this record is in place; false for guidance.

selectorstring

On a guidance record, the mail provider's own hint it refers to. Absent otherwise.

statusstringrequired

What the last check found: verified, mismatch, missing, propagating, error, or info for guidance a check never blocks on.

typestringrequired

The DNS record type, such as TXT, CNAME or MX.

valuestringrequired

The value the record must hold.

statusstringrequired

Where the domain stands: pending, verifying, verified, degraded (was verified, now failing checks) or failed.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

verified_atstring | nullrequired

When the domain was verified for sending. Null while it is not verified.

Format: date-time

warningsobject[] | nullrequired

Mistakes the last check found in the domain's DNS, each with a code, a message and, where it helps, the host and the fixing value. Empty when none.

Show child attributes
codestringrequired

The kind of mistake found, such as duplicate_spf, dmarc_missing, cloudflare_proxied, doubled_domain, propagating or domain_claimed.

hoststring

The DNS name of the record the mistake is at. Absent when it does not point at one record.

messagestringrequired

A sentence explaining the mistake and what to do about it.

valuestring

The value that fixes the mistake, where one helps. Absent otherwise.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.