Updated on 2024-03-11 GMT+08:00

International SMS Template

Overview

An SMS template is a content template used to send SMSs. It consists of fixed text or fixed text plus variables. After a template is created, only variables can be replaced by characters that meet requirements.

Notes

  • No template can be added if your Huawei Cloud account balance is insufficient. In this case, top up your account by following instructions provided in Topping Up an Account. If you have topped up your account and the template cannot be added, log out and log in to the system again.
  • By default, a maximum of 2,000 templates can be created for each application. To increase the quota, submit a service ticket or contact the account manager. For details about template rules and variable usage rules, see Template and Variable Specifications.
  • Only rejected SMS templates can be modified. You can add a template and submit it for approval.
  • For details about the browsers supported by the Message & SMS console, see Which Browsers Are Supported?

Creating a Template

  1. Log in to the Message & SMS console. In the navigation pane, choose International SMS > Template Management.
  2. You can create a template in either of the following ways:
    • Adding a template:

      Click Add Template in the upper right corner and configure parameters by referring to Table 1 to create a template. Click OK.

    • Importing templates in batches:
      1. Click Download Sample Template in the upper right corner to download the Excel template and fill in the template by referring to Table 1. You can create multiple templates at a time.
      2. Click Batch Import in the upper right corner to import the filled template.
      3. After the template is imported, the template data to be reviewed is displayed on the console. If the template fails to be imported due to invalid content format, a dialog box will be displayed for you to download the failed records. Then, you can modify the template content and import it again.

      The parameters marked with * in the table are mandatory. Fill in the template by referring to Table 1 to prevent upload failures. Up to 50 records can be imported at a time. Templates with variables cannot be imported currently.

    Figure 1 Adding an international SMS template
    Table 1 Adding a template/Importing templates in batches

    Parameter

    Description

    *Template Name

    Set this parameter based on the service requirements and template types. Examples: ClientLogin_VerificationCodeSMS_01 and MeetingScheduling_NotificationSMS_01. For details, see Overview.

    *Application

    Set this parameter based on the service requirements.

    *Template Content

    Enter the content to be sent by referring to Sample Template or Template and Variable Specifications. Use variables properly for approval. Currently, batch import does not support variables.

    *Sent to (country/region 1)

    Sent to (country/region 2)

    Sent to (country/region 3)

    Specify at least one country or region based on your service scope.

    • If SMSs are sent to more than three countries or regions, add them in the Description text box.
    • If SMSs are sent globally, select at least one major country or region and enter "The SMS service is globally deployed, not distinguishing major sending countries or regions." in the Description text box.
    • This parameter is used only for survey. To restrict the sending countries (or regions), see Region Settings. For details, see Querying the Country or Region to Which SMSs Are Sent.

    Description

    Describe the situation where SMSs are used. For example, verification code SMSs are used to verify users for login, and notification SMSs are used to notify participants of a meeting.

  3. A template can be used only after being approved. SMS templates submitted during 09:00–18:00 (GMT+08:00) on workdays will be reviewed within 2 hours. SMS signatures submitted after 18:00 (GMT+08:00) will be reviewed on the next workday. The review is performed only on workdays. If there is a legal holiday, the review may be postponed.

Managing a Template

After the template is created, choose International SMS > Template Management to view the template review status and other information.

Table 2 Template information

Parameter

Description

Template Name

Corresponds to Template Name in Table 1.

Template primary key ID

Primary key ID of the template. It is unique and is used to obtain, modify, and delete the template and query template variables.

Template ID

Uniquely identifies an SMS template. When you call Message & SMS APIs to send SMSs, the template ID is used to specify the template content to be sent. For details, see Development Preparation (International SMS).

Application

Corresponds to Application in Table 1.

Template Type

Corresponds to Template Type in Table 1.

Created

Specifies the time when the template was created.

Status

  • Pending: The template application has been submitted and is to be reviewed by the operation manager.
  • Signature unreviewed: The signature of the template is to be reviewed. Ensure that the signature is approved.
  • Approved, activated: The template is approved and the template ID is delivered. The template can be used.
  • Approved, deactivated: The template is approved and the template ID is delivered, but the template is not activated and cannot be used.
  • Rejected: The template is rejected because it does not comply with Template and Variable Specifications. Solve the issue based on the cause in the review comments. For details, see Template Review Description.

Reviewer Comments

If a template is rejected, the platform provides detailed reasons here.

Operation

  • Modify: Only templates in the Rejected status can be modified.
  • Delete: A template in the Approved, activated, Approved, deactivated, or Rejected status can be deleted.