{
"id": "ve6j7n8i",
"status": "pending",
"to": "+16315551111",
"channel": "sms",
"sendTime": "2022-06-01T12:00:00.000Z",
"totalPrice": 0.0085,
"currency": "USD",
"smsFallbackEnabled": true,
"smsFallback": {
"supported": true,
"unsupportedReason": "SENDER_ID_UNAVAILABLE",
"unsupportedDetail": "This Sender ID is not registered."
},
"externalId": "<string>"
}Start a verification
Starts a verification by sending an SMS, voice, or email message to the recipient. This verification is charged once the message is sent successfully.
{
"id": "ve6j7n8i",
"status": "pending",
"to": "+16315551111",
"channel": "sms",
"sendTime": "2022-06-01T12:00:00.000Z",
"totalPrice": 0.0085,
"currency": "USD",
"smsFallbackEnabled": true,
"smsFallback": {
"supported": true,
"unsupportedReason": "SENDER_ID_UNAVAILABLE",
"unsupportedDetail": "This Sender ID is not registered."
},
"externalId": "<string>"
}Authorizations
Body
Verification request that needs to be sent.
The channel through which the verification code will be sent. Supported channels are sms (text message), voice (phone call), email_code (email), and whatsapp (WhatsApp message).
sms, voice, email_code, whatsapp "sms"
Verification code to be sent. This field is optional. If not provided, we will automatically generate a code.
4 - 8"123456"
This parameter is only required for Chinese mainland SMS messages. You must specify an approved signature such as Brand. It will be added to the beginning of SMS body and wrapped with 【】, e.g. 【Brand】Your verification code is 123456.
"Brand"
ISO 639 Language Code. If not specified, language will be set as en by default. Notably, in certain countries or regions, language will be automatically set as the local language due to the regional restrictions.
Applicable languages:
ar: Arabic
de: German
en: English
es: Spanish
fr: French
id: Indonesian
it: Italian
pt_BR: Portuguese
ru: Russian
tr: Turkish
vi: Vietnamese
zh_CN: Simplified Chinese
zh_HK: Traditional Chinese
"en"
A unique (recommended) string to reference the object. This can be an order number or similar, and can be used to reconcile the object with your internal systems.
If present, this value will also be attached to the externalId of message objects.
Response
The request is successfully accepted.
ID of the verification.
"ve6j7n8i"
Status of the verification.
pending: The verification message (SMS, Voice, etc.) is sent, waiting to be checked. This happens when you call the 'Start a verification' API successfully.approved: The verification has been successfully checked. Apendingverification status changes toapprovedwhen you call the 'Check a verification' API and receive a response with thevalidparameter istrue. An approved verification cannot be checked anymore.blocked: The verification is blocked by user-defined rules such as denylist, and geographical permission restrictions. A blocked verification cannot be checked.expired: The verification has expired and cannot be checked anymore.undelivered: Our system has received a delivery receipt indicating that the verification message was not delivered. An undelivered verification cannot be checked anymore.
pending, approved, blocked, expired, undelivered Recipient of the verification.
"+16315551111"
Supports several independent channels for verification:
sms: Sends an SMS message with a verification code.voice: Makes a voice call with a verification code.email_code: Sends an email with a verification code.whatsapp: Sends a WhatsApp message with a verification code.
sms, voice, email_code, whatsapp "sms"
Total price of this verification.
0.0085
Price currency. ISO 4217 currency code.
"USD"
Whether sms fallback is enabled or not.
Applicable when channel is whatsapp. If enabled, we will try to send the verification code via sms when the WhatsApp message is failed.
Included when smsFallbackEnabled is true.
Show child attributes
Show child attributes
A unique (recommended) string to reference the object. This can be an order number or similar, and can be used to reconcile the object with your internal systems.

