Forgot password
Forgot password request
Email
Intro
Get a link to reset your email. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.
Request Headers
Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>
Request body
{
"email":"String",
}
Body Validation
- email - User Email
Request
POST
http://localhost:5501/api/v1/auth/forgotpass
Response
{
"status": "String",
"id": "String",
"message": "String",
}
Response Validation
- status - request status
- id - user ID
- message - response message
Example
Headers
Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ
Body
{
"email"::"user@example.com";
}
Response
{
"status": "success",
"id": "629ad74878103d4e4a74e9e6",
"message": "Reset password token was sent"
}
Mobile
Intro
A verification sms will be sent. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.
Request Headers
Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>
Request body
{
"phone":"String"
}
Body Validation
- phone - User phone
Request
POST
http://localhost:5501/api/v1/auth/forgotpass/mobile
Response
{
"status": "String",
"id": "String"
"message": "String"
}
Response Validation
- status - request status
- id - User ID
- message - response message
Example
Headers
Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ
Body
{
"phone":"254710xxxxxx"
}
Response
{
"status": "success",
"id": "62d4e9bf167f537cf7db8c44",
"message": "Reset password token was sent"
}