Domains

Add a sending domain

Creates the domain with its own DKIM key and answers the two DNS records to add: a CNAME for the return path and a TXT record for the DKIM key. The domain may send once both records are seen, which Sendora checks on its own and on request. Domains belong to the account: every server sends from them, and an account key manages them; a server key cannot.

post/v1/domains

Request

  • Base URL: https://api.sendora.se
  • URL: https://api.sendora.se/v1/domains
  • Auth: HTTP bearer

Request body

domainstring required

The domain mail is sent from, such as example.se; lower-cased and IDNA-encoded.

Response

A sending domain and the two records it needs.

domainIdstring uuid required
domainstring required
verifiedboolean required

True while both records count as found; only then may mail go out. A lookup that fails at the resolver never changes it, and a record found missing on a verified domain starts a 24-hour warning (failingSince) through which the domain stays verified.

createdAtstring date-time required
lastCheckedAtstring date-time nullable required

When the records were last looked up.

failingSincestring date-time nullable required

When a check first found a record of this verified domain missing or wrong. Mail keeps going out, the records are looked up hourly, and the first check 24 hours after this that still misses one ends the verification. Null unless the domain is verified and in that warning; verified and each record tell the rest.

Changes

No recorded changes to this operation across all 1 revision of this API.