Skip to content

Create the initial super admin

POST
/setup
curl --request POST \
--url https://your-server.example/api/setup \
--header 'Content-Type: application/json' \
--data '{ "username": "example", "password": "example", "display_name": "example", "email": "hello@example.com" }'

Allowed only when no users exist. Returns 409 once set up.

Media typeapplication/json
object
username
required
string
password
required
string
>= 8 characters
display_name
string
email
string format: email

Example generated

{
"username": "example",
"password": "example",
"display_name": "example",
"email": "hello@example.com"
}

User created.

Media typeapplication/json
object
username
string
role
string

Example

{
"role": "super_admin"
}

Invalid request.

Media typetext/plain
string

State conflict.

Media typetext/plain
string