Skip to content

Rotate the secondary (random) mailbox alias

POST
/v1/tenants/me/inbox/rotate
curl --request POST \
--url https://api.emite.cr/v1/tenants/me/inbox/rotate \
--header 'Authorization: Bearer <token>'

Generates a new <primary>-<random> secondary alias and REPLACES the previous one — the old secondary stops receiving immediately. For tenants who want a less guessable address (design §2.1). Generates the primary alias too when there is none yet, but does not enable the mailbox. Returns the mailbox with the new secondaryAddress (201).

Media typeapplication/json
object
enabled
required

Whether the mailbox accepts mail. While disabled, an email to its addresses is logged as rejected (inbox_disabled) and nothing is imported.

boolean
address
required

The main address, ready to share (<alias>@in.emite.cr, the alias made from the company's name); null until the mailbox is first enabled. Kept while disabled.

string
nullable
secondaryAddress
required

A second, harder-to-guess address (<alias>-<random>@in.emite.cr), replaced by each POST /tenants/me/inbox/rotate; null until one is generated. Both addresses receive mail.

string
nullable
domain
required

Domain of the mailbox addresses.

string
stats
required

Recent activity of the mailbox.

object
receivedLast30d
required

Emails the mailbox logged in the last 30 days, in the environment of the request, whatever became of them.

number
processedLast30d
required

Of those, the ones that became an import batch (status: processed).

number
Example
{
"address": "panaderia-lucia-sa@in.emite.cr",
"secondaryAddress": "panaderia-lucia-sa-k7m2qx@in.emite.cr",
"domain": "in.emite.cr"
}

Missing or invalid JWT / API key.

Requires the documents:import scope.