Sends a voice verification code and voice notification with variables to a phone number.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CalledNumber | string | No | The phone number that receives the voice notification. You must add the country code to the beginning of the phone number. Example: 85200****00. | 852****0000 |
CallerIdNumber | string | No | The calling number. If you do not specify this parameter, the system uses a local random number as the display number. If you use a dedicated number for outbound calls, you must specify the purchased number. You can specify only one number. You can log on to the VMS console and choose Number Management to view the purchased phone numbers. | 852****0000 |
CountryId | string | No | The ISO2 country code. | HK |
PlayTimes | long | No | The number of times the voice notification is played back in a call. Valid values: 1 to 3. Default value: 3. | 2 |
Speed | long | No | The playback speed. Valid values: -500 to 500. | 0 |
TtsCode | string | No | The ID of the approved voice verification code template. You can log on to the VMS console and choose Voice Call Template to view the template ID. | 1001 |
TtsParam | string | No | The variables in the template, in the JSON format. | {"code":"1234"} |
Volume | long | No | The playback volume of the voice notification. Valid values: 0 to 100. Default value: 100. | 100 |
OutId | string | No | The ID reserved for the caller. This ID is returned to the caller in a receipt message. The value must be of the STRING type and 1 to 15 bytes in length. | 22522**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D9CB3933-9FE3-4870-BA8E-2BEE91B69D23",
"Code": "OK",
"Message": "OK",
"CallId": "550e8400-e29b-41d4-a716-446655440000"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | Product.Unsubscript | You have not subscribed to the specified product. |
400 | Ram.PermissionDeny | You are not authorized to perform the operation. |
400 | System.LimitControl | The system is under flow control. |
400 | Unknown.ResourceOwnerId | The resource does not belong to the current user. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2023-10-12 | The Error code has changed | see changesets | ||||||||
| ||||||||||
2023-05-29 | The Error code has changed | see changesets | ||||||||
| ||||||||||
2023-03-14 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||
|