Skip to main content
POST
Create user

Authorizations

X-Qanapi-Authorization
string
header
required

A machine credential, qk_ followed by its secret. The first twelve characters are an indexed prefix; the rest is compared in constant time against a stored SHA-256 hash. A key reaches only the configurations it is linked to.

It may also be sent as Authorization: Bearer qk_..., which is recognised by the prefix.

Body

application/json
email
string<email>
required
password
string<password>
required

Hashed with Argon2id (m=19456, t=2, p=1).

Minimum string length: 12
name
string
role
enum<string>
Available options:
admin,
user

Response

Created. A create answers 200, not 201, as it does in the v3 API.

id
string<uuid>
required
email
string<email>
required
role
enum<string>
required
Available options:
admin,
user
created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string | null