Skip to content

Verify OTP Code

GET
/v2/otp-global/verify

Verifies an OTP code previously sent to a mobile number.

phone
required
string
/^\d{11,15}$/
528100001234

E.164 destination phone number without + (11–15 digits including country code)

code
required
string
123456

OTP code to verify

SMS sent successfully

object
status
boolean
true
error
boolean
description
object
added_on
string format: date-time
2023-09-20 16:47:15
charge
number format: float
0.99
country
object
country
string
MEXICO
iso_code
string
MX
type
string
MOVIL
encoding
string
Allowed values: gsm unicode
gsm
id
integer
199999
job_id
string
199999
length
integer
12
message
string
Hello World!
number
string
segments
integer
1
sender
string
AWESOMEINC
Example
{
"status": true,
"error": false,
"description": {
"added_on": "2023-09-20 16:47:15",
"charge": 0.99,
"country": {
"country": "MEXICO",
"iso_code": "MX",
"type": "MOVIL"
},
"encoding": "gsm",
"id": 199999,
"job_id": "199999",
"length": 12,
"message": "Hello World!",
"number": "8100001234",
"segments": 1,
"sender": "AWESOMEINC"
}
}

Missing required parameters

Example
{
"status": false,
"error": true,
"description": "Missing params, please verify or contact to support"
}

Your key auth is not valid

Example
{
"status": false,
"error": true,
"description": "Your key auth is not valid, please check with your administrator to get the new key"
}

Useful for guiding users to view code examples in different developer languages.

developer@developer:~#
curl -X GET "https://api.example.com/v2/otp-global/verify?phone=value&code=value" \
-H "Accept: application/json" \
-H "Connection: keep-alive" \
-H "Authorization: Basic <base64-encoded-credentials>"