/domains/{name}/mail/accounts
0.1.0Unchanged since publicationCreate a mailbox on the domain
mailallSupply the email address's local part in local and the mailbox password in password. The email address must be unused by any other mailbox, and the customer's package must allow another mailbox. UrbeStack creates the mailbox's Maildir in the customer's home.
Set quota_mb to a whole number from 0 to 1048576 megabytes. It defaults to 0 for unlimited storage. Only administrators can set hourly_limit. It takes a whole number from 0 to 1000000 messages per hour. Use 0 for no mailbox-level sending limit. Omit hourly_limit or send an empty string or null to use the domain's default. Invalid quota_mb or hourly_limit values return 400.
The 201 response contains the new mailbox in account. Administrators, the domain's owner and the owner's reseller can call this operation with a token that has the mail scope.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredlocalLocalPartRequiredpasswordstring, up to 128 charactersRequiredhourly_limitinteger, 0 to 1000000 or nullquota_mbinteger, 0 to 1048576Example
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/domains/example.com/mail/accounts" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"hourly_limit": 1,
"local": "info",
"password": "Sup3r-Secret-Passphrase",
"quota_mb": 1
}'201 Created{
"account": {
"address": "info@example.com",
"autoresponder": {
"body": "text",
"end": "text",
"interval_days": 1,
"start": "text",
"subject": "text"
},
"created_at": "2026-09-09T10:15:00Z",
"domain": "example.com",
"home": "text",
"hourly_limit": 1,
"id": 1,
"local_part": "text",
"login_suspended": 1,
"outgoing_suspended": 1,
"quota_mb": 1,
"updated_at": "text",
"usage": {
"messages": 1,
"storage_kb": 1,
"storage_limit_kb": 1
}
}
}Errors
19 errors, each a status and a sentence400--address is required400<what> must be a whole number from 0 to <max>400<what> must be text without control characters, 1 to <max> characters400A password is required: --password-stdin or --password-hash400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid password: 8 to 128 printable characters400Invalid port400Invalid setting key401Authentication required404Setting '<key>' not found409Mail account <local>\@<domain_name> already exists409The package <p.name> allows <limit> urbestack.com/docs/api/post-domains-name-mail-accounts/