Endpoint
Authentication
None - This is a public endpoint.Request Body
Username for the account. Maximum 25 characters. Must be unique.
User’s first name. Maximum 50 characters.
User’s last name. Maximum 50 characters.
Plain text password. The server will hash it automatically using a secure password hasher. Note: Despite the parameter name, send the plain password - not a pre-hashed value.
Email address. Must be a valid email format.
Phone number. Must be a valid phone format.
Request Example
Response
Success Response
Status Code:201 Created
Returns an empty response with a 201 Created status code indicating the user was successfully registered.
Error Responses
Status Code:400 Bad Request
Returned when validation fails (e.g., missing required fields, invalid email format, field length violations).
Status Code: 409 Conflict
Returned when the username or email is already taken by another user.
Implementation Details
The registration endpoint creates both aUser record and an associated UserProfile with default settings.
Source: /workspace/source/features/auth/auth.endpoints.cs:10-37
The password is automatically hashed using ASP.NET Core’s
IPasswordHasher before being stored in the database. Never store plain text passwords.