Skip to main content
POST
Register email domain

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Body

application/json

The from e-mail of the tenant.

fromEmail
string
required

The sender of the dunning e-mails of the tenant, as Name <address> or a bare address. The domain of the address becomes the email domain of the tenant, because the e-mail provider of Aira sends only from the exact domain that it verified.

Minimum string length: 1
Example:

"Acme <financeiro@acme.com>"

Response

An email domain: a domain of the tenant, registered with the e-mail provider of Aira, that the invoice deliveries of the tenant go out from while the provider reports it verified or partially verified. A tenant has zero or one.

id
string<uuid>
required

The unique identifier of the email domain in our system.

domain
string
required

The domain. The from e-mail of the tenant is an address on exactly this domain.

Example:

"acme.com"

status
enum<string>
required

The verification status that the e-mail provider of Aira last reported. The invoice deliveries go out from the from e-mail of the tenant only while the email domain is verified or partially_verified.

Available options:
not_started,
pending,
verified,
failed,
temporary_failure,
partially_verified,
partially_failed,
unrecognized
dnsRecords
object[]
required

The DNS records that the tenant adds to the DNS of the domain, so that the e-mail provider of Aira verifies it.

createdAt
string<date-time>
required

When the tenant registered the email domain.

updatedAt
string<date-time>
required

When Aira last stored a change of the email domain, such as a status that the e-mail provider of Aira reported.