---
title: "Create Domain Admin user"
method: POST
path: "/api/v1/add/domain-admin"
tags: ["Domain admin"]
---

# Create Domain Admin user

`POST /api/v1/add/domain-admin`

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.

## Request body

- object
  - `active` number — 1 for a active user account 0 for a disabled user account
  - `domains` string — the domains the user should be a admin of
  - `password` string — domain admin user password
  - `password2` string — domain admin user password
  - `username` string — the username for the admin user

## Response `200`

OK

- object
  - `log` unknown[] — contains request object
    - unknown
  - `msg` unknown[]
    - unknown
  - `type` 'success' | 'danger' | 'error'

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/mailcow/apis/mailcow-api.md) · [All operations](https://skmtc.dev/mailcow/apis/mailcow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailcow/mailcow-api/revisions/ae01d1d7886a/schema)
