Notification messages are typically used to send system-related information to registered users, such as service upgrades, service activation, price adjustments, order confirmations, logistics updates, and purchase confirmations. When you apply for a notification message template, you must comply with the content and variable specifications.
If the content you send involves illegal activities or regulatory violations that result in regulatory investigations, user complaints, or negative public opinion, Alibaba Cloud Communications has the right to abort or stop providing services to you, take measures such as permanent account suspension, and deduct funds from your order or account as liquidated damages, in accordance with Article 5 of the Service Agreement. If these funds are insufficient to cover the loss incurred by Alibaba Cloud, Alibaba Cloud has the right to seek further compensation from you. Please strictly adhere to all applicable regulations, strengthen your own business security, and send text messages responsibly.
Quick navigation: Template specifications | Variable specifications | URL specifications | Examples
Template specifications
When creating a notification message template, adhere to the following format and content requirements:
|
Category |
Specification |
|
Content requirements |
The template must state the actual message content and reflect the sending scenario.
|
|
Formatting requirements |
|
|
Restricted business types |
|
Message template specifications are subject to change based on requirements from the Ministry of Industry and Information Technology (MIIT) and carriers. The review outcome is final.
Sample template content
Enter the content of the message that you want to send. Use ${variable_name} as a placeholder for variables. The variable name can be customized, but it must reflect the purpose of the variable.
Template content is subject to review. Therefore, full-variable templates are not supported and all templates must include fixed text.
|
Use cases |
Example |
|
Reset password |
Hello, your password has been reset to |
|
Review |
Your |
|
Redemption code/Delivery code/Pickup code |
|
|
Transaction order |
|
You can also
view more sample templates in the console. Using these samples directly may increase your chance of approval.
Variable specifications
-
A single variable can be 1–35 characters long. The length limit varies by variable attribute.
If a variable exceeds its length limit, the message will fail to send.
-
Each variable can appear only once in a template.
Incorrect example: Your child
${name}has arrived at the${name}location!Correct example: Your queue number is
${num1}. There are${num2}people ahead of you. Please wait to be called. -
Concatenated or adjacent variables are not supported. They must be separated by descriptive text.
Incorrect example:
${code}${name},${time}, ${place}.Correct example: Hello, please use pickup code
${code}to collect your item at${address}. If you have any questions, please call${phone}. -
Full-variable templates are not supported. Descriptive text must be included to clarify the template's purpose.
-
Variables cannot contain URLs, IP addresses, official accounts, mini programs, apps, QR codes, QQ numbers, WeChat IDs, or mobile phone numbers. This information must be placed outside the variable.
-
If contact information (such as landlines, 400-series, or 95-series official corporate customer service numbers) is a variable, its value must be fixed. A maximum of two such numbers is supported.
Variable attribute specifications
Variable attributes have different length and character specifications. If a variable does not meet these specifications, the template will be rejected.
|
Variable attribute |
Variable name |
Variable specifications |
|
Time |
Custom. We recommend setting a name based on the date or time type. Examples: ${time}, ${date}, ${day}, ${year}, ${month}. |
Note
Passing parameters in JSON array format is not supported. |
|
Amount/Quantity |
Custom. We recommend using a meaningful name. Example: ${money}. |
|
|
User Nickname |
Custom. We recommend using the account name from a live website or app. Example: ${user_nick}. |
|
|
Personal Name |
Custom. The legal name registered in household records. Example: ${name}. |
Limited to 2–5 simplified Chinese characters. Note
If an actual name exceeds this limit, you can select another suitable variable attribute based on the specifications and your use case. In the use case description, provide a complete message example for review. |
|
Company/Organization Name |
Custom. We recommend using the company or organization name registered with the Administration for Market Regulation. Example: ${unit_name}. |
|
|
Address |
Custom. We recommend using the location of a home, company, or other organization. Example: ${address}. |
|
|
License Plate Number |
Custom. We recommend using the license plate number for standard or common special-purpose vehicles. Examples: ${code}, ${license_plate_number}. |
|
|
Tracking Number |
Custom. We recommend using the order number for logistics or express delivery. Examples: ${code}, ${order}, ${tracking_number}. Note
Select a suitable variable attribute based on the variable specifications and your use case. For example, for a JD.com tracking number like JDVC**********7, you can select the Other Numbers attribute and provide a complete message example in the use case description. Our reviewers will evaluate it. |
|
|
Pickup Code |
Custom. A confirmation code used for retrieving temporarily stored items like packages. Examples: ${code}, ${order}, ${pick_up_code}. |
Supports a combination of 4–8 digits, hyphens, and underscores. |
|
Other Numbers |
Custom. Examples: ${code}, ${order}, ${order_sn}, ${password}. |
|
|
Phone Number |
Custom. Examples: ${phone}, ${telephone}. |
Examples: 0571-82123***, 400-123-1234, 10086, 95679 |
|
URL parameter |
A variable appended to a URL to access a specific web address. You must comply with the URL specifications. Note
If the length limit does not meet your business needs, we recommend selecting the Other (such as name, account, and address) variable attribute. Provide a complete message example in the use case description and describe your use case in detail. Our reviewers will evaluate it comprehensively. |
|
|
Email Address |
Custom. Example: ${email_address}. |
|
|
Other (such as name, account, and address) |
Custom. We recommend setting a meaningful variable name based on the variable type. Can be set to a company, product, address, name, content, account, member name, etc. |
Note
|
URL specifications
A template can contain a maximum of one URL. All URLs are reviewed to ensure they are legitimate, compliant, and relevant to the message content. URLs that link to illegal or non-compliant content will not be approved.
-
URL variable specifications: The URL you provide must be accessible for our review.
long URL
✅ Supported. Redirects are not allowed.
aliyun.com,alibabacloud.comlong URL + variable
✅ Supported. Redirects are not allowed.
aliyun.com/${code}short URL + variable
❌ Not supported. It cannot be opened for review.
tb.cn/${code},wxaurl.cn/${link_param}short URL
✅ Supported. Up to one redirect is allowed.
tb.cn,tb.cn/exampleFull variable
❌ Not supported. It cannot be opened for review.
${code} -
URL content specifications: The content of the linked webpage must be compliant.
-
Notification messages must not contain or include URLs for promotional or marketing purposes.
-
The website URL must have a valid ICP filing and be publicly accessible.
-
The website content must be consistent with the template content and must not involve illegal or non-compliant material.
-
Submit for review
Log on to the Template Management page in the console to request an SMS template.
Review time: After you submit an SMS template, the review is typically completed within 2 hours. For requests that involve government agencies or enterprises, you must provide a landline number for verification. Alibaba Cloud completes the review for these requests within two business days. If your template is not reviewed after several business days, check whether the landline number you provided is correct.
Review hours: 9:00 to 21:00, Monday to Sunday. Reviews are postponed during public holidays.
You can activate the dedicated DingTalk group for Short Message Service to view SMS template review notifications and set up alert pushes.
You cannot modify a template after it is approved.
Common review failure reasons
The following table lists common reasons why notification message templates are rejected and provides suggested solutions.
|
Category |
Rejection reason |
Suggested solution |
|
Vague or unverifiable content |
The template does not reflect the business content and its meaning is unclear. |
Provide a sample that uses your actual business content. |
|
The template's use case is unclear. |
In the use case description, describe your business scenario or provide a URL to your online business (such as your app, official account, or mini program). Provide a complete message example with values for the variables. |
|
|
The specified app, official account, or mini program cannot be found in an app store. |
In the use case description, provide a correct URL to your business in any app store. If your product is not yet live, you cannot apply for a template at this time. |
|
|
The business content is unclear. For example: Add us on WeChat to receive a gift. |
Content that instructs users to join groups is not supported. Remove this content and resubmit. The specific business content must be reflected in the template text. |
|
|
Non-compliant content or format |
The notification message template includes unsubscription instructions. |
Remove the unsubscription instructions and resubmit. |
|
The notification message template includes promotional content. |
Remove the promotional content and resubmit, or apply for a promotional message template instead. |
|
|
The template contains:
|
Suggestions:
|
|
|
The content is related to finance, dating, religion, games, etc. |
|
|
|
The content involves a third party. |
If you are sending messages on behalf of a third party, you must submit their relevant business certificates and a letter of authorization. In the "Associated signature" field, select an existing signature that corresponds to these qualifications, or apply for a new signature with the required qualifications. |
|
|
Non-compliant variables |
The variable contains a URL, IP address, app name, WeChat official account, mini program, QR code, website, platform, or mobile phone number. |
Place this content outside the variable. If a URL must be variable, use the format: domain name + variable, for example: aliyun.com/${code}. |
|
The variable content is vague. |
We recommend rephrasing the content to clearly define the variable. For example: A meeting on ${content} will be held at ${place} on ${time}. Please attend on time. |
|
|
The variable format is incorrect. |
Correct the format and resubmit. The variable specifications are as follows:
|
|
|
The variable attribute is incorrect. |
Select the appropriate variable attribute for your business scenario. |
|
|
Incorrect template type |
The selected template type does not match the actual requirement. |
Select the appropriate template type (verification code, notification message, or promotional message) based on your business scenario. For details, see Use cases. |
|
Non-compliant URL |
The URL does not have an ICP filing. |
Provide a URL that has an MIIT ICP filing. |
|
The short URL + variable format is non-compliant. |
Use the format of a domain name or official website URL + variable. For example: aliyun.com/${code}. |
|
|
The URL involves a redirect. |
Long URLs must not redirect. Short URLs can redirect only once. |
|
|
The template content includes a download URL or a beta testing URL. |
Provide an alternative URL for verification, such as an app store URL. |
|
|
The template content includes a login URL, preventing verification of the business content. |
Provide a test account in the use case description to allow for business verification. Anonymize any sensitive data. |
|
|
The URL is inaccessible. |
Provide a publicly accessible URL. |
|
|
The linked page has insufficient content to determine the actual business. |
Enrich the content and functionality of your service before you reapply. |
|
|
The IP address is not a private IP address within one of the following three ranges:
|
Remove the IP address or replace it with a website that has an ICP filing. |
Related reading
For more information about how to request an SMS template, see Apply for a message template.
For more information about the rules for calculating SMS content length and the limits on sending frequency, see Message sending rules.
For answers to common questions about SMS templates, see the Message template FAQ.