Register Job Seeker
Authentication
Register Job Seeker
Create a new job seeker account
POST
Register Job Seeker
Endpoint
http://localhost:3000/api/v1
This endpoint is public and does not require authentication.
Request Body
string
required
User’s email address. Must be unique and valid format.
string
required
User’s password. Minimum 6 characters.
string
required
User’s first name.
string
required
User’s last name.
Request Shape
Response
Success Response (201 Created)
boolean
Indicates if the registration was successful.
object
Contains the registered user’s email.
string
Success message: “Registration successful. Please check your email to verify your account.”
object
Request metadata from global response interceptor.
What Happens After Registration
1
Account Created
User account is created in database with: -
isVerified: false - isActive: true -
profileImageUrl: null - lastLoginAt: null2
Password Hashed
Password is securely hashed using bcrypt before storage
3
OTP Generated
A 6-digit OTP code is generated and stored in Redis (valid for 10 minutes)
4
Email Queued
Verification email with OTP is queued via BullMQ for async delivery
5
Next Step
User must verify email using the Verify Email endpoint
Error Responses
400 Bad Request - Validation Error
Returned when request validation fails.email must be an email- Invalid email formatpassword must be longer than or equal to 6 characters- Password too shortfirstName should not be empty- Missing first namelastName should not be empty- Missing last name
409 Conflict - Email Already Exists
Returned when the email is already registered.500 Internal Server Error
Returned when an unexpected error occurs.Error responses follow the global API envelope:
success: false and an error object containing
message, statusCode, timestamp, path, method, and details.Validation Rules
Notes
OTP Expiration: The verification OTP expires after 10 minutes. If expired, users will need to
request a new OTP.
Related Endpoints
- Verify Email - Verify email with OTP after registration
- Login - Login to existing account
- Register Company - Register as a company instead
