---
title: "Create an admin user"
method: POST
path: "/api/server/admin-user"
tags: ["Server Configuration"]
---

# Create an admin user

`POST /api/server/admin-user`

## Request body

- object
  - `username` string
  - `name` string
  - `email` string
  - `password` string

## Response `201`

User was created successfully.

- ServerAdminUser
  - `hasUser` boolean

## Other responses

- `405` — An admin user already exists.
- `500` — The user account could not be created.
- `501` — Contao console does not support the necessary contao:user:list and/or contao:user:create commands/options.
- `503` — If the PHP command line binary cannot be found.

---

[API](https://skmtc.net/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.net/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/074d8046de13/schema)
