Skip to main content
POST
Create a new user

Authorizations

token
string
cookie
required

JWT token stored in HTTP-only cookie

Body

application/json
email
string<email>
required

Invalid email format

role
string
required

Role is required

Minimum string length: 1
name
string

Name is required

Minimum string length: 1
source
Available options:
local
password
string

Password must be at least 8 characters

Minimum string length: 8
status
default:active
Available options:
active

Response

Default Response

email
string<email>
required
role
string
required
source
required
Available options:
local
status
required
Available options:
active
createdAt
string
required
name
string
lastLogin
string
mustChangePassword
boolean