Skip to main content
POST
/
api
/
auth
/
register
Register a new user or create a user by admin
curl --request POST \
  --url https://tandem.hlofiys.xyz/api/auth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "phone_number": "+375291234567",
  "full_name": "<string>",
  "password": "<string>",
  "role": "user"
}
'
{
  "message": "Registration successful. Please check your email to verify your account"
}

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"