Email

Add a sending domain

Adds a domain the workspace controls to the connected Bavimail account and returns the DNS records to publish at its DNS host. Inboxes on it can send once its state is ready.

POST
/mail/domains

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
namestringrequired

Domain name to send from, like example.com: up to 253 characters, lowercased.

Response

application/json

Success

idstringrequired
namestringrequired

The domain name, like example.com.

stateenum<string>required

provisioning while Bavimail sets the domain up, awaiting_dns until every check passes, ready once inboxes on it can send, or failed (see problem).

Available options: provisioning, awaiting_dns, ready, failed

recordsobject[]required

DNS records to publish at the domain's DNS host.

checksobject[]required

State of each DNS check Bavimail runs on the domain.

problemstring | nullrequired

What went wrong in the domain's setup, from Bavimail; null when nothing did.

automatic_setup_urlstring | nullrequired

Link that publishes the records at the domain's DNS host in one step; null when the DNS host does not support it.

trackingobject | nullrequired

The tracking domain used for open and click tracking; null when none is added.

created_atstringrequired

When the domain was added, as an ISO 8601 timestamp.