{ "message": "Weak password: Password must contain at least one uppercase letter, one number"}
POST /auth/register
This endpoint is used to create a new user account. It is a public endpoint and does not require authentication. Upon successful registration, a verification email is sent to the user.
Request Body
string
required
The user’s email address. Must be a valid and unique email.
string
required
The user’s password. Must be at least 8 characters long and meet password strength requirements.
string
required
The user’s first name. Maximum 50 characters.
string
The user’s last name. Maximum 50 characters.
string
The user’s company name. Maximum 100 characters.
Response
boolean
Indicates if the registration was successful.
string
Human-readable status message.
object
An object containing the newly created user’s information.
Show user properties
string
The unique identifier for the user.
string
The user’s email address.
string
The user’s full name.
boolean
Whether the email has been verified (initially false).
string
ISO 8601 timestamp of account creation.
object
An object containing the authentication tokens.
Show tokens properties
string
The access token for authenticating subsequent requests. Expires in 15 minutes.
string
The refresh token for obtaining new access tokens. Expires in 7 days.