Sends text messages in batches to destinations outside the Chinese mainland.
Operation description
This operation does not support sending text messages to the Chinese mainland.
The BatchSendMessageToGlobe operation is mainly used for sending small batches of promotional and notification text messages. To send text messages in large batches, use the quick send feature in the Short Message Service (SMS) console.
If you have requirements for text message timeliness, use the SendMessageToGlobe operation.
In a single request, you can send text messages to up to 1,000 mobile phone numbers.
QPS limit
The queries per second (QPS) limit for a single user (the same Alibaba Cloud account) is 1 call per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dysms:BatchSendMessageToGlobe |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| To |
string |
Yes |
The recipient number. The number format is: country code + phone number. For more information about country codes, see Dialing codes. |
[\"931520581****\",\"931530581****\",\"931540581****\",\"931550581****\"] |
| From |
string |
No |
The sender ID. Sender IDs are supported and can contain only digits and letters. A sender ID that contains letters can be up to 11 characters in length, and a sender ID that contains only digits can be up to 15 characters in length. |
Alicloud321 |
| Message |
string |
Yes |
The message content. |
[\"message to 931520581****\",\"message to 931530581****\",\"message to 931540581****\",\"message to 931550581****\"] |
| Type |
string |
No |
The message type. Valid values:
|
NOTIFY |
| TaskId |
string |
No |
The task ID. The value can be up to 255 characters in length. You can obtain the task ID from the TaskId field in the text message receipt. |
123789**** |
| ValidityPeriod |
integer |
No |
The validity period of the text message. Unit: seconds. |
600 |
| ChannelId |
string |
No |
The ID of the text message channel. |
sms-djnfjn344 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| ResponseCode |
string |
The response code. A value of OK indicates that the request is successful. For other error codes, see Error codes. |
OK |
| RequestId |
string |
The request ID. |
F655A8D5-B967-440B-8683-DAD6FF8D28D3 |
| FailedList |
string |
The list of numbers to which the text messages failed to be sent. |
["931520581****","931530581****"] |
| ResponseDescription |
string |
The description of the response code. |
The SMS Send Request was accepted |
| From |
string |
The sender ID. The value is the sender ID that you specified in the request. |
Alicloud321 |
| MessageIdList |
string |
The IDs of the messages that were successfully sent. |
["123****","124****"] |
| SuccessCount |
string |
The number of text messages that were successfully sent. |
2 |
Examples
Success response
JSON format
{
"ResponseCode": "OK",
"RequestId": "F655A8D5-B967-440B-8683-DAD6FF8D28D3",
"FailedList": "[\"931520581****\",\"931530581****\"]",
"ResponseDescription": "The SMS Send Request was accepted",
"From": "Alicloud321",
"MessageIdList": "[\"123****\",\"124****\"]",
"SuccessCount": "2"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.