POST /user
Create a new user account.Request
User’s email address (must be unique)
User’s password (minimum requirements apply)
User’s full name
User’s phone number
Response
Indicates if registration was successful
Created user object with details
POST /user/login
Authenticate a user and receive an access token.Request
User’s email address
User’s password
Response
JWT authentication token
Authenticated user information
POST /user/request-reset
Request a password reset email.Request
Email address of the account to reset
Response
Success message indicating email was sent
GET /user/reset/:token
Verify a password reset token is valid.Path Parameters
Password reset token from email
Response
Whether the token is valid and not expired
PUT /user/:userId
Update user profile information.Requires authentication. Include Bearer token in Authorization header.
Path Parameters
ID of the user to update
Request Body
Updated user name
Updated email address
Updated phone number
New password (if changing)
Response
Updated user object
Authentication Flow
Error Codes
| Status | Description |
|---|---|
200 | Success |
201 | User created successfully |
400 | Invalid request data |
401 | Invalid credentials or expired token |
404 | User not found |
409 | Email already exists |
500 | Server error |