User Management
Pre Login

Pre Login API

Welcome to the documentation for the Pre Login API. This API provides preliminary checks on a user's account.

Base URL

{baseURL}/v1/users/pre-login | POST

Request Payload

FieldTypeSourceRequiredDescription
emailstringbody✅ YesUser's email address
passwordstringbody✅ YesUser's password

Sample Request

curl -X POST {baseURL}/v1/users/pre-login \
  -H 'Content-Type: application/json' \
  -d '{
 "email": "[email protected]",
    "password": "user1234567"
  }'

Sample 200 Response

{
  "message": "Login successfully",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNjRmNDk2Mjc4NGE1Njc2MDg3ZTIzNWNjIiwicXVlc3Rpb25JZCI6IjY0MDg3NTA2ODZhYmE4ODVkNjA5ZTcwMSIsImlhdCI6MTY5Mzc1MjY4NiwiZXhwIjoxNzI1Mjg4Njg2fQ.lh6-i3woRxctL9ur0lEa7tDuPM97Tc4BO5ODUL8UJCY",
    "question": {
      "_id": "6408750686aba885d609e701",
      "question": "What is your mother's maiden name?"
    }
  },
  "success": true
}