tencent cloud

Short Message Service

SendMultiGlobalSms

PDF
Focus Mode
Font Size
Last updated: 2026-04-24 12:18:05

1. API Description

Domain name for API request: sms.intl.tencentcloudapi.com.

This API is used to send Global SMS messages in batches. Compared with the SendSms API, it supports sending SMS messages with different content to multiple phone numbers in a single request and allows specifying different SenderIds.

A maximum of 10 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: SendMultiGlobalSms.
Version Yes String Common Params. The value used for this API: 2021-01-11.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-singapore, eu-frankfurt.
SmsSdkAppId Yes String The SMS SdkAppId generated after an application is added in the SMS console, such as 2400006666.
MultiSmsInfoSet.N Yes Array of MultiSmsInfo Multi SMS information list. Up to 200 phone numbers are supported in one request, which should be all Global SMS numbers. Each element contains a phone number and its corresponding template, template parameters, and other information.

3. Output Parameters

Parameter Name Type Description
SendMultiStatusSet Array of SendMultiStatus Multi SMS send status.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Successful SMS Sending Example

Send SMS successfully.

Input Example

POST / HTTP/1.1
Host: sms.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: SendMultiGlobalSms
<Common request parameters>
{
  "SmsSdkAppId": "1400006666",
  "MultiSmsInfoSet": [
    {
      "PhoneNumber": "+60198***000",
      "TemplateId": "1800308",
      "TemplateParamSet": [
        "190191"
      ],
      "SenderId": "Qsms",
      "SessionContext": "outsid_1776313405_1001"
    },
    {
      "PhoneNumber": "+60198***001",
      "TemplateId": "1800308",
      "TemplateParamSet": [
        "190192"
      ],
      "SenderId": "Qsms",
      "SessionContext": "outsid_1776313405_1002"
    }
  ]
}

Output Example

{
    "Response": {
        "SendMultiStatusSet": [
            {
                "Code": "Ok",
                "Fee": 1,
                "IsoCode": "MY",
                "Message": "send success",
                "PhoneNumber": "+60198***000",
                "SerialNo": "a84166ff-8c6c-41f7-923b-9fdd27fd0fe4",
                "SessionContext": "outsid_1776313405_1001"
            },
            {
                "Code": "Ok",
                "Fee": 1,
                "IsoCode": "MY",
                "Message": "send success",
                "PhoneNumber": "+60198***001",
                "SerialNo": "72f1f018-a0c8-4101-976b-265f25b4c0a2",
                "SessionContext": "outsid_1776313405_1002"
            }
        ],
        "RequestId": "104cc55c-05f1-456c-8a0b-18cf25ef56a4"
    }
}

Example2 Failed SMS Sending Example

Parameter count mismatch with the approved template. SMS sending failed.

Input Example

POST / HTTP/1.1
Host: sms.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: SendMultiGlobalSms
<Common request parameters>
{
  "SmsSdkAppId": "1400006666",
  "MultiSmsInfoSet": [
    {
      "PhoneNumber": "+60198***000",
      "TemplateId": "1800308",
      "SenderId": "Qsms",
      "SessionContext": "outsid_1776313405_1001"
    },
    {
      "PhoneNumber": "+60198***001",
      "TemplateId": "1800308",
      "SenderId": "Qsms",
      "SessionContext": "outsid_1776313405_1002"
    }
  ]
}

Output Example

{
    "Response": {
        "SendMultiStatusSet": [
            {
                "Code": "FailedOperation.TemplateIncorrectOrUnapproved",
                "Fee": 0,
                "IsoCode": "MY",
                "Message": "template is not approved or request content does not match the approved template content",
                "PhoneNumber": "+60198***000",
                "SerialNo": "de61cf79-636e-4ad0-ac0b-dc29937999af",
                "SessionContext": "outsid_1776313405_1001"
            },
            {
                "Code": "FailedOperation.TemplateIncorrectOrUnapproved",
                "Fee": 0,
                "IsoCode": "MY",
                "Message": "template is not approved or request content does not match the approved template content",
                "PhoneNumber": "+60198***001",
                "SerialNo": "0b8780c6-e889-4201-87fb-5e8e282b3b3e",
                "SessionContext": "outsid_1776313405_1002"
            }
        ],
        "RequestId": "4899adba-08e2-4350-9fee-ab37b7560c4c"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.ContainSensitiveWord The SMS message contains sensitive words. You can contact SMS Helper for assistance.
FailedOperation.FailResolvePacket Failed to parse the request packet. Usually, this is because that the API specification was not followed. Please see Detailed Explanation of Request Body Parsing Error 1004.
FailedOperation.InsufficientBalanceInSmsPackage The package balance is insufficient. Please purchase an SMS package.
FailedOperation.MarketingSendTimeConstraint Marketing SMS messages can only be sent between 8:00 and 22:00 in order not to disturb recipients.
FailedOperation.PhoneNumberInBlacklist The mobile number is in the opt-out list. This may be because the recipient has unsubscribed from your service or the mobile number is in the carrier’s opt-out list. To solve this problem, contact SMS Helper.
FailedOperation.SignatureIncorrectOrUnapproved The signature is not approved or in an incorrect format. (1) Log in to the SMS console and check whether the signature has been approved; (2) Check whether the signature is in compliance with the format specification, that is, it can contain 2–12 letters and digits. If you have any questions, contact SMS Helper for assistance.
FailedOperation.TemplateIncorrectOrUnapproved The template has not been approved or its content does not match that of the approved template. (1) Please log in to the SMS console to check whether the template has been reviewed and approved. (2) Please click here to check whether the template format is correct. If you have any questions, contact SMS Helper.
FailedOperation.TemplateParamSetNotMatchApprovedTemplate The request content does not match that of the approved template. Please check whether the number of parameters in the request is consistent with that in the approved template. If you have any questions, contact SMS Helper.
FailedOperation.TemplateUnapprovedOrNotExist The template has not been approved or does not exist. Please log in to the SMS console to check whether the template has been reviewed and approved. If you have any questions, contact SMS Helper.
InternalError.JsonParseFail Failed to parse the user parameter. You can contact SMS Helper for assistance.
InternalError.OtherError Other error. You can contact SMS Helper and provide the failed mobile number for assistance.
InternalError.RequestTimeException The request was initiated in an exceptional time. Usually, this is because that the difference between your server time and Tencent Cloud server time exceeds 10 minutes. Please check whether the server time and the time field in the API are correct.
InternalError.RestApiInterfaceNotExist This RESTful API does not exist. Please check the RESTful API description.
InternalError.SendAndRecvFail Service access has timed out,Please verify whether there are any network fluctuations or contact Tencent Cloud SMS Assistant for assistance.
InternalError.SigFieldMissing The request body in the backend body does not have a Sig field or the Sig field is empty.
InternalError.SigVerificationFail Backend check of Sig failed.
InternalError.Timeout The request to deliver an SMS message timed out. Please see Detailed Explanation of Error 60008.
InternalError.UnknownError Unknown error.
InvalidParameterValue.ContentLengthLimit The content of the requested SMS message is too long. For message length calculation rule, please see SMS Length Calculation Rule.
InvalidParameterValue.IncorrectPhoneNumber Incorrect mobile number format
InvalidParameterValue.MultiSmsInfoSetEmpty The MultiSmsInfoSet list is empty. Please verify that the MultiSmsInfoSet parameter is included in your request.
InvalidParameterValue.ProhibitedUseUrlInTemplateParameter URLs are not allowed in template variables.
InvalidParameterValue.SdkAppIdNotExist The SdkAppId does not exist.
InvalidParameterValue.TemplateParameterFormatError The parameter format of the verification code template is incorrect. For a verification code template, only 0–6 digits can be passed in as the template variable.
InvalidParameterValue.TemplateParameterLengthLimit There are more than 12 characters in a single template variable. There is no upper limit of variable characters for enterprise users. You can change your account identity type to enterprise as instructed here. The limit change will take effect in about one hour.
LimitExceeded.AppCountryOrRegionDailyLimit The number of Global SMS messages sent to the specified country/region per day has exceeded the preset limit. You can adjust the message sending limit in Application Management > Basic Configuration in the SMS console.
LimitExceeded.AppCountryOrRegionInBlacklist The Global SMS message failed to be sent because the recipient country/region is not included in the specified country/region list. You can adjust the country/region list in Application Management > Basic Configuration in the SMS console.
LimitExceeded.AppDailyLimit The number of SMS messages delivered on the current day exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console.
LimitExceeded.AppGlobalDailyLimit The number of Global SMS messages sent per day has exceeded the preset limit. You can adjust the message sending threshold in Application Management > Basic Configuration in the SMS console.
LimitExceeded.AppMainlandChinaDailyLimit The number of Chinese Mainland SMS messages sent per day has exceeded the preset limit. You can adjust the message sending threshold in Application Management > Basic Configuration in the SMS console.
LimitExceeded.DailyLimit The number of SMS messages delivered on the current day exceeds the set upper limit (for Global SMS). If you want to adjust the limit, you can contact SMS Helper for assistance.
LimitExceeded.DeliveryFrequencyLimit The SMS delivery hits the delivery rate limit policy. You can adjust the policy in the console. If you have other requirements, you can contact SMS Helper for assistance.
LimitExceeded.PhoneNumberCountLimit The number of mobile numbers you query at a time exceeds 200. Please refer to the input parameter PhoneNumberSet.
LimitExceeded.PhoneNumberDailyLimit The number of SMS messages delivered to a single mobile number on the current day exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console.
LimitExceeded.PhoneNumberOneHourLimit The number of SMS messages delivered to a single mobile number within 1 hour exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console.
LimitExceeded.PhoneNumberSameContentDailyLimit The number of identical SMS messages delivered to a single mobile number exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console.
LimitExceeded.PhoneNumberThirtySecondLimit The number of SMS messages delivered to a single mobile number within 30 seconds exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console
MissingParameter.EmptyPhoneNumberSet The list of mobile numbers passed in is empty. Please check whether numbers are present in your parameters.
UnauthorizedOperation.IndividualUserMarketingSmsPermissionDeny Individual users do not have permission to send marketing SMS messages. Please see Differences in Rights.
UnauthorizedOperation.RequestIpNotInWhitelist The requesting IP is not in the allowlist. You have configured the verification of request source IP, but the current requesting IP is not in the configured allowlist. If necessary, you can contact SMS Helper.
UnauthorizedOperation.RequestPermissionDeny The request does not have permission. You can contact SMS Helper.
UnauthorizedOperation.SdkAppIdIsDisabled This SdkAppId is forbidden to provide services. If necessary, you can contact SMS Helper.
UnauthorizedOperation.ServiceSuspendDueToArrears If the service is suspended due to outstanding fees, you can log in to Tencent Cloud to recharge and clear the debt on your own.
UnauthorizedOperation.SmsSdkAppIdVerifyFail Failed to verify SmsSdkAppId. Please check whether SmsSdkAppId is under the account associated with the TencentCloud API key.
UnsupportedOperation Operation not supported.
UnsupportedOperation.ChineseMainlandTemplateToGlobalPhone A Chinese Mainland SMS template cannot be used to sent messages to global numbers. Please use a Global SMS template instead.
UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber The group message request contains both Chinese mainland numbers and international numbers. Please check: (1) whether the message is sent to international numbers with a Chinese mainland signature or template; (2) whether the message is sent to Chinese mainland numbers with an international signature or template.
UnsupportedOperation.ContainDomesticPhoneNumber The request contains Chinese Mainland phone numbers. This API only supports Global SMS phone numbers.
UnsupportedOperation.GlobalTemplateToChineseMainlandPhone A Global SMS template cannot be used to sent messages to Chinese mainland numbers. Please use a Chinese Mainland SMS template instead.
UnsupportedOperation.UnsupportedRegion Not supported in this area.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback