This section covers the endpoints related to user profile management, and password reset.
Workflow Overview
Verify Email: In case it was skipped during registration.
Request Email verification.
Validate OTP and confirm mail.
Password Reset:
Request password reset code
Verify code and set new password
Update Email:
Verify new email with OTP
Update Phone:
Re-Validate Liveness (if Digital Identity verified)
1- Verify Email address
In case it was not verified during registration, we have a separate endpoint for this.
The operation consists of calling the same endpoint twice:
For requesting Email OTP
Request body:
For validating the received OTP
Request body:
post
/api/DigitalIdentity/VerifyEmail Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
emailOtp string | nullable Optional
emailOtpRequestId string | nullable Optional
transactionId string · uuid Optional
returnUrl string | nullable Optional
Response object
Show properties
2- Reset Password Workflow
At Vlens, we have two reset password flows:
When the user provides an email.
When the user does not provide an email.
1. If the user has an email
post
/api/DigitalIdentity/ForgetPassword/SendEmailOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
emailOrPhoneNumber string Required
idNumber string | nullable Optional
Response object
Show properties
post
/api/DigitalIdentity/ForgetPassword/ValidateEmailOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
emailOrPhoneNumber string Required
idNumber string | nullable Optional
emailOtpRequestId string Required
Response object
Show properties
post
/api/DigitalIdentity/ForgetPassword/ValidatePhoneOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
emailOrPhoneNumber string Required
idNumber string | nullable Optional
phoneNumberOtpRequestId string Required
phoneNumberOtp string Required
Response object
Show properties
post
/api/DigitalIdentity/ForgetPassword/Reset Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
userId integer · int64 Optional
resetCode string | nullable Optional
password string | nullable Optional
returnUrl string | nullable Optional
singleSignIn string | nullable Optional
c string | nullable Optional
Response object
Show properties
2. If the user does not have an email
post
/api/DigitalIdentity/ForgetPasswordByPhone/SendPhoneOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
phoneNumber string Required
idNumber string | nullable Optional
Response object
Show properties
post
/api/DigitalIdentity/ForgetPasswordByPhone/ValidatePhoneOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
phoneNumber string Required
idNumber string | nullable Optional
phoneNumberOtpRequestId string Required
phoneNumberOtp string Required
Response object
Show properties
3- Update user's email
post
/api/DigitalIdentity/UpdateEmailRequest Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
email string · email Required
Response object
Show properties
post
/api/DigitalIdentity/ValidateUpdateEmailRequestOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
emailOtpRequestId string Required
Response object
Show properties
4- Update user's phone number
This flow enables users to update their phone number securely using an OTP and liveness verification mechanism. The process involves three main steps:
Send Phone OTP
Initiates the phone update request by verifying the user's credentials and checking if digital identity revalidation is needed. If not, an OTP is sent immediately.
Re-Validate Liveness (only if required)
If the user needs to re-validate their digital identity, a liveness check (face capture) is required. Once validated, the OTP will be sent to the new phone number.
Validate Phone OTP
The user confirms their phone number update by submitting the received OTP using the phoneNumberOtpRequestId from the previous step.
post
/api/DigitalIdentity/UpdatePhone/SendPhoneOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
phoneNumber string Required
Response object
Show properties
post
/api/DigitalIdentity/UpdatePhone/ReValidateLiveness Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
phoneNumber string Required
Response object
Show properties
post
/api/DigitalIdentity/UpdatePhone/ValidatePhoneOtp Body
application/json-patch+json application/json-patch+json application/json text/json application/*+json
phoneNumberOtpRequestId string Required
phoneNumberOtp string Required
Response object
Show properties