All Products
Search
Document Center

Voice Service:BackendCallGroup

Last Updated:Mar 26, 2024

Initiates a voice group call to multiple phone numbers. The content of the group call is that of approved templates. You can log on to the VMS console and choose Voice Call Template to view the template ID. This feature enqueues the phone numbers to be called. The time when the phone numbers are called is uncertain.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CalledNumberarrayNo

The called numbers. You can specify up to 50,000 phone numbers.

stringNo

You must add the country code to the beginning of the phone numbers. Example: 852****0000.

852****0000
CallerIdNumberstringNo

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****1111
CountryIdstringNo

The ISO2 country code.

HK
PlayTimeslongNo

The number of times the audio file is played. Valid values: 1 to 3.

1
SendTypelongNo

The delivery type. Valid values: 1 and 2.

1: The audio file is delivered immediately.

2: The audio file is delivered at a scheduled time. If you specify SendType as 2, you must specify TimingStart.

2
SpeedlongNo

The playback speed. Valid values: -500 to 500.

You must specify this parameter when the audio type is text-to-speech (TTS). You do not need to specify this parameter when you use recordings.

0
TaskNamestringNo

The task name.

TimingStartstringNo

The time when the audio file is scheduled to be delivered.

2022-05-01T08:00:00+08:00
TtsCodestringNo

The voice template ID of the audio file.

You can log on to the VMS console and choose Voice Call Template > Audio File to view the template ID.

You must specify either TtsCode or VoiceCode. You can specify TtsCode to use the audio file as the call content. Alternatively, you can specify VoiceCode to use preset text as the call content.

100001
VoiceCodestringNo

The TTS template ID.

You can log on to the VMS console and choose Voice Call Template > TTS Template to view the template ID.

You must specify either TtsCode or VoiceCode. You can specify TtsCode to use the audio file as the call content. Alternatively, you can specify VoiceCode to use preset text as the call content.

200001
VolumelongNo

The playback volume of the audio file. Valid values: 0 to 100. Default value: 100.

100
OutIdstringNo

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.

22596****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

E50FFA85-0B79-4421-A7BD-00B0A271966F
Codestring

The response code.

The value OK indicates that the request was successful. Other values indicate that the request failed. For more information, see Error codes.

OK
Messagestring

The returned message.

OK
TaskIdstring

The task ID. You can use this ID to query the details of the task.

550e8400-e29b-41d4-a716-446655440000

Examples

Sample success responses

JSONformat

{
  "RequestId": "E50FFA85-0B79-4421-A7BD-00B0A271966F",
  "Code": "OK",
  "Message": "OK",
  "TaskId": "550e8400-e29b-41d4-a716-446655440000"
}

Error codes

HTTP status codeError codeError message
400Product.UnsubscriptYou have not subscribed to the specified product.
400Ram.PermissionDenyYou are not authorized to perform the operation.
400System.LimitControlThe system is under flow control.
400Unknown.ResourceOwnerIdThe resource does not belong to the current user.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-12The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-03-14The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: OutId