Skip to main content
POST
Register a new user or create a user by admin

Body

application/json

Schema for user registration. Can be used by anonymous users or administrators.

email
string
required
phone_number
string
required

User's phone number, preferably in international E.164 format (e.g., +375291234567).

Example:

"+375291234567"

full_name
string
required
password
string
role
enum<string>

For admins only. The role to assign to the new user. If omitted, defaults to 'user'

Available options:
user,
manager

Response

Registration successful. For self-registration, a confirmation email has been sent. For admin creation, the user is created directly

message
string
required
Example:

"Registration successful. Please check your email to verify your account"