Send verification code to phone number via SMS.
{
"statusCode": 200,
"message": "Verification code sent!",
"data": {
"sid": "VEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"to": "+1234567890",
"channel": "sms",
"status": "pending",
"valid": false,
"lookup": {
"carrier": null
},
"amount": null,
"payee": null,
"sendCodeAttempts": [
{
"attempt_sid": "VLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"channel": "sms",
"time": "2022-07-07T14:17:49.467Z"
}
],
"dateCreated": "2022-07-07T14:17:49.000Z",
"dateUpdated": "2022-07-07T14:17:49.000Z",
}
}
{
"statusCode": 400,
"message": [
"Phone number should be valid and from one of these countries: US, HN"
],
"error": "Bad Request"
}
{
"statusCode": 429,
"message": "Max check attempts reached"
}
Verify verification code.
{
"statusCode": 200,
"message": "Verification code is correct!",
"data": {
"sid": "VEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"to": "+1234567890",
"channel": "sms",
"status": "approved",
"valid": true,
"amount": null,
"payee": null,
"dateCreated": "2022-07-07T14:23:53.000Z",
"dateUpdated": "2022-07-07T14:24:06.000Z"
}
}
{
"statusCode": 400,
"message": [
"Phone number should be valid and from one of these countries: US, HN"
],
"error": "Bad Request"
}
{
"statusCode": 401,
"message": "Verification code is incorrect",
"error": "Unauthorized"
}
{
"statusCode": 404,
"message": "Verification code does not exist or is already being used",
"error": "Not Found"
}
{
"statusCode": 429,
"message": "Max check attempts reached"
}