Validate Email Validation
Endpoint
POST /v2/email-validations/validate
Description
This endpoint validates a one-time password (OTP) sent to a user's email address as part of the email verification process. It ensures the user-provided OTP is correct and links the verification status to the user.
Headers
Content-Type
String
Yes
Set to application/json
.
Authorization
String
Yes
Bearer token for API authorization.
Body Parameters
project
String
Yes
Unique identifier for the project.
projectFlow
String
Yes
Identifier for the specific project flow.
email
String
Yes
Email address of the user to validate.
validationMethod
String
Yes
The validation method, set to verificationCode
.
type
String
Yes
Type of validation, e.g., login
.
otp
String
Yes
The one-time password provided by the user.
Request
Response
Response Body
email
String
Email address that was validated.
type
String
Validation type, e.g., login
.
showFaceLivenessRecommendation
Boolean
Indicates if face liveness check is recommended.
appLogin
Object
Contains detailed information about the validated login session.
appLogin._id
String
Unique ID of the login session.
appLogin.name
String
Name of the user.
appLogin.status
String
Status of the validation, e.g., validated
.
token
String
JWT token generated after successful validation.
Notes
The OTP must be generated beforehand and sent to the user's email.
Ensure your application handles JWT tokens securely after validation.
If face liveness is recommended, guide users to complete this step in your flow
Last updated