Create email account
/api/domains/{domain_code}/email_accountsCreates a new email account on the domain and queues its activation.
Authorization
api_key API token used to authenticate requests.
In: header
Path Parameters
Domain code: D followed by 9 digits. Example: D123456789.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Email account local part, without the domain.
Deprecated display name. Use firstname/lastname address book fields instead.
Prevent the user from changing their password.
Enable autoresponder.
Autoresponder subject.
Autoresponder body.
Initial account password. Must be at least 8 characters long and contain at least one letter and one number.
Must match password.
Deliver spam to the inbox instead of the spam folder.
Outbound limit id. Use 0 to restore the default outbound limit.
int32Tags assigned to the email account.
Forwarding destination email addresses.
Keep a copy of forwarded messages in the mailbox.
Mailbox quota in bytes.
52428800= 50 MB.1073741824= 1 GB.2147483648= 2 GB.3221225472= 3 GB.4294967296= 4 GB.5368709120= 5 GB.6442450944= 6 GB.7516192768= 7 GB.8589934592= 8 GB.17179869184= 16 GB.26843545600= 25 GB.53687091200= 50 GB.107374182400= 100 GB.
int32Values 52428800 | 1073741824 | 2147483648 | 3221225472 | 4294967296 | 5368709120 | 6442450944 | 7516192768 | 8589934592 | 17179869184 | 26843545600 | 53687091200 | 107374182400Reject incoming mail for this account.
Allowed IP addresses or networks for account access.
Disable POP access.
Disable IMAP access.
Disable SMTP access.
Disable webmail access.
Bounce message used when mail is rejected.
Address book first name. Required when creating an email account.
Address book last name.
Mailbox language.
it= Italian.en= English.es= Spanish.
it | en | esMailbox timezone.
Secondary/recovery email address.
Address book country.
Address book state/province.
Address book postal code.
Address book street address.
Address book company.
Address book role/job title.
Address book team manager.
Address book telephone number.
Address book mobile phone number.
Address book fax number.
Enable chat service.
Enable ActiveSync service.
Enable meeting service.
Enable calendar service.
Enable DAV service.
Password expiration interval in months.
-1= never expire.3= expire after 3 months.6= expire after 6 months.12= expire after 12 months.
int32Values -1 | 3 | 6 | 12Disable password recovery for this account.
Prevent reusing old passwords.
Enable API access for this account.
Require OTP for this account.
Apply allowed-network restrictions to webmail access too.
Webmail UI language.
it= Italian.en= English.nl= Dutch.sv= Swedish.es= Spanish.pt= Portuguese.de= German.gr= Greek.fr= French.
it | en | nl | sv | es | pt | de | gr | frWebmail time format.
12h= 12-hour clock.24h= 24-hour clock.
12h | 24hWebmail date format.
YYYY/MM/DD= year/month/day.DD/MM/YYYY= day/month/year.MM/DD/YYYY= month/day/year.DD MMM YYYY= day abbreviated-month year.MMM DD YYYY= abbreviated-month day year.DD.MM.YYYY= day.month.year.
YYYY/MM/DD | DD/MM/YYYY | MM/DD/YYYY | DD MMM YYYY | MMM DD YYYY | DD.MM.YYYYWebmail timezone.
Address book organizational unit.
Destroy active sessions when the password expires.
Restrict the sender From field for this account.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/domains/string/email_accounts" \ -H "X-Api-Token: YOUR_API_TOKEN" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "password": "string", "password_confirmation": "string", "firstname": "string" }'{
"message": "string",
"resource_code": "string"
}{
"message": "Unauthorized",
"errors": []
}{
"message": "Forbidden",
"errors": []
}{
"message": "Not found",
"errors": []
}{
"message": "Validation failed",
"errors": [
{
"field": "name",
"description": "is not valid"
}
]
}