Enable or disable the inbound mailbox
const url = 'https://api.emite.cr/v1/tenants/me/inbox';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.emite.cr/v1/tenants/me/inbox \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true }'First enable generates the primary alias (tenant name slug + anti-collision suffix). Disabling keeps the aliases: re-enabling recovers the same address. Returns the mailbox after the change.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Enable or disable the mailbox. The first enable generates its address (from the company's name); disabling keeps the addresses, so enabling again recovers them.
Example
trueResponses
Section titled “Responses”object
Whether the mailbox accepts mail. While disabled, an email to its addresses is logged as rejected (inbox_disabled) and nothing is imported.
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.
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.
Domain of the mailbox addresses.
Recent activity of the mailbox.
object
Emails the mailbox logged in the last 30 days, in the environment of the request, whatever became of them.
Of those, the ones that became an import batch (status: processed).
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.
Mailbox mutation requires the documents:import scope.