Authentication
Create New Account
Create a new user account with email verification
POST
This is a public endpoint that does not require authentication.
Request Body
Email address for the new account. Must be unique in the system.
Password for the account. Must be at least 6 characters long.
User’s first name. Maximum 50 characters.
User’s last name. Maximum 50 characters.
Response
A successful request returns HTTP 201 Created status. The user will receive:- A verification email with a token to verify their email address
- A welcome email
The account is created with:
- Status:
active - Provider:
local - Role:
Member(default role) emailVerified: falsephoneNumberVerified: false
Error Responses
Error details when the request fails
Common error cases:
- 400 Bad Request: Invalid email format or password too short
- 400 Bad Request: Email already exists
- 500 Internal Server Error: Default role not found
