Every request carries a key:
Authorization: Bearer mlk_3fa85f64a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5cA key starts with mlk_ followed by 64 hexadecimal characters. It is shown only once, when it is created: only its hash is kept. Keep it on the server side, never in a web page or a mobile app.
Application keys
Created by an administrator in Administration › API keys (or through the API, see below), for one or more domains.
| Permission | Can |
|---|---|
sending_access (default) | send from its domains; read, reschedule and cancel its own emails, their attachments and its statistics |
full_access | all of that, plus the emails of the other application keys of its domains, the domains, the keys, the contacts and the broadcasts |
Sender rules for an application key: the from address is on one of its domains; the local part contains only a-z 0-9 . - _; role addresses (postmaster, abuse, admin, no-reply, info…) and the addresses of real people on the instance are refused; at most 50 different sender addresses per domain.
Personal keys
Each user can create their own keys in the Developers area of the mail app (account menu), if the administrator allows it (Administration › Sending settings › Personal API keys). A personal key:
- sends only from its owner's address or their aliases, under their name;
- can also read its owner's mailbox if receiving is enabled on the key;
- is used by the MCP server according to its scopes (
send,mcp,mail.read,mail.write,api.read).
By default, a user has at most 10 active keys, 10 emails per minute and 200 emails per day (adjustable by the administrator). A from that is not theirs is refused (403 sender_identity_violation) and counts as a warning; at the third one, API sending for that account is suspended until an administrator restores it.
Managing keys through the API
A full_access key creates and revokes keys within its own domains:
cURL
curl https://mail.example.com/api/v1/api-keys \
-H "Authorization: Bearer $VOAARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Billing service", "permission": "sending_access"}'Node / Bun
const { data } = await voaaro.apiKeys.create({ name: "Billing service", permission: "sending_access" })
console.log(data.token) // shown only oncePython
key = voaaro.ApiKeys.create({"name": "Billing service", "permission": "sending_access"})PHP
$key = $voaaro->apiKeys->create(['name' => 'Billing service', 'permission' => 'sending_access']);Go
key, err := client.ApiKeys.Create(&voaaro.CreateApiKeyRequest{Name: "Billing service", Permission: "sending_access"})Response 201: {"object": "api_key", "id": "…", "token": "mlk_…", "name": "…", "permission": "sending_access", "domains": ["example.com"]}. The new key inherits the limits of the key that creates it; at most 50 active keys per set of domains.
Failures
| Status | name | Cause |
|---|---|---|
| 401 | missing_api_key | header missing or malformed |
| 401 | invalid_api_key | unknown or revoked key, inactive account |
| 401 | restricted_api_key | sending_access key on a full_access route |
| 403 | restricted_api_key | personal keys disabled, key without the send scope, or the domain's organization suspended |
| 429 | rate_limit_exceeded | 10 invalid keys from the same IP address within 15 minutes: the address is blocked for 15 minutes |