Sends verification codes to an end user by using a specified channel, such as Short Message Service (SMS), Voice, and WhatsApp.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Channel | string | Yes | The channels that you can use for verification. Enumeration Value:
| SMS |
| To | string | Yes | The mobile phone number of the recipient. You must add the country code to the beginning of the mobile phone number. | 6212345****01 |
| ServiceSid | string | Yes | The service ID that is displayed in the Phone Number Verification Service console. | FA00000000000001 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62",
"Message": "OK",
"Model": {
"verifyCode": "",
"verificationId": "",
"status": ""
},
"Code": "OK",
"Success": true
}Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | Invalid.Parameters | The parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation | ||||
|---|---|---|---|---|---|---|
| 2023-11-03 | The Error code has changed | see changesets | ||||
|
