Skip to content

Storage & Quotas

Control how much disk space each mailbox can use.

GET /users/{email}/quota
Terminal window
curl https://api.emboux.com/users/[email protected]/quota \
-H "Authorization: Bearer YOUR_API_KEY"
{
"email": "[email protected]",
"quota_mb": 2048
}
PUT /users/{email}/quota
FieldTypeRequiredDescription
quota_mbintegerYesStorage limit in megabytes
Terminal window
curl -X PUT https://api.emboux.com/users/[email protected]/quota \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"quota_mb": 4096}'
{
"email": "[email protected]",
"quota_mb": 4096
}

When a mailbox reaches its storage limit, EmBoux rejects new incoming messages with a temporary error, prompting the sender to retry later.


Set how many days emails are kept before automatic deletion. A server-side cron job purges expired messages daily.

GET /domains/{domain_name}/retention
Terminal window
curl https://api.emboux.com/domains/mycompany.com/retention \
-H "Authorization: Bearer YOUR_API_KEY"
{
"name": "mycompany.com",
"retention_days": 60
}
PUT /domains/{domain_name}/retention
FieldTypeRequiredDescription
retention_daysintegerYesDays to keep emails. Older messages are deleted.
Terminal window
curl -X PUT https://api.emboux.com/domains/mycompany.com/retention \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"retention_days": 90}'

Set a monthly bandwidth cap per domain.

GET /domains/{domain_name}/transfer
Terminal window
curl https://api.emboux.com/domains/mycompany.com/transfer \
-H "Authorization: Bearer YOUR_API_KEY"
{
"name": "mycompany.com",
"transfer_monthly_mb": 10240
}
PUT /domains/{domain_name}/transfer
FieldTypeRequiredDescription
transfer_monthly_mbintegerYesMonthly transfer cap in megabytes
Terminal window
curl -X PUT https://api.emboux.com/domains/mycompany.com/transfer \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"transfer_monthly_mb": 20480}'

When using the Odoo integration, these values are automatically set from the customer’s plan:

PlanStorage/MailboxRetentionMonthly Transfer
Starter1 GB30 days5 GB
Business2 GB60 days10 GB
Enterprise5 GB90 days50 GB

Limits are pushed to the API automatically when a subscription is confirmed or changed.