Last updated
Last updated
POST /v2/phone-validations/validate
This endpoint validates a one-time password (OTP) sent to a user’s phone number as part of the phone verification process. It ensures that the user-provided OTP is correct and updates the verification status accordingly.
Response Body
Ensure the Authorization
header contains a valid token to authenticate API requests.
If showFaceLivenessRecommendation
is true
, guide users to complete a face liveness check.
Handle JWT tokens securely and use them only for the intended session.
Content-Type
String
Yes
Set to application/json
.
Authorization
String
Yes
Bearer token for API authorization.
project
String
Yes
Unique identifier for the project.
projectFlow
String
Yes
Identifier for the specific project flow.
countryCode
String
Yes
The country code of the phone number (e.g., +507
).
phone
String
Yes
The phone number 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.
_id
String
Unique ID for the phone validation session.
status
String
Status of the validation, e.g., validated
.
countryCode
String
Country code of the phone number.
phone
String
The phone number that was validated.
type
String
Type of validation (e.g., login
).
showFaceLivenessRecommendation
Boolean
Indicates if face liveness check is recommended.
appLogin._id
String
Unique ID of the login session.
appLogin.client
String
Client identifier.
appLogin.name
String
Name of the user associated with the validation.
appLogin.status
String
Status of the login session, e.g., validated
.
token
String
JWT token generated after successful validation.