Skip to main content

Verification

Verifying a user account​

Code validity duration​

Email​

5 min

Mobile​

2 min

What if code expires

The API will automatically re-generate a new code and resend it to the user using their registration channel


Verify Account​

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​

{
"id":"String",
"code":"String",
}

Body Validation​

  1. id - created user ID
  1. code - User verification code

Request​

POST
http://localhost:5501/api/v1/auth/verify

Response​

{
"status": "String",
"token": "String",
}

Response Validation​

  1. status - request status
  1. token - User access token

Example​

Headers​

Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ

Body​

{
"id":"62d4e9bf167f537cf7db8c44",
"code":"375242"
}

Response​

{
"status": "success",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}