Validate Phone Validation (Validar la Validación de Teléfono)
Endpoint
POST /v2/phone-validations/validate
Descripción
Este endpoint valida una contraseña de un solo uso (OTP) enviada al número de teléfono del usuario como parte del proceso de verificación de teléfono. Garantiza que el OTP proporcionado por el usuario sea correcto y actualiza el estado de verificación en consecuencia.
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.
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.
Request
Response
Response Body
_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.
Notas
Asegúrate de que el encabezado Authorization contenga un token válido para autenticar las solicitudes a la API.
Si
showFaceLivenessRecommendation
es true, guía a los usuarios para completar una verificación de liveness facial.Maneja los tokens JWT de manera segura y úsalos solo para la sesión prevista.
Last updated