v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
Domain admin

Create Domain Admin user

Using this endpoint you can create a new Domain Admin user. This user has full control over a domain, and can create new mailboxes and aliases.

post/api/v1/add/domain-admin

Request body

activenumber

1 for a active user account 0 for a disabled user account

domainsstring

the domains the user should be a admin of

passwordstring

domain admin user password

password2string

domain admin user password

usernamestring

the username for the admin user

Example request

{
  "active": "1",
  "domains": "mailcow.tld",
  "password": "supersecurepw",
  "password2": "supersecurepw",
  "username": "testadmin"
}

Response

OK

type'success' | 'danger' | 'error'