Skip to Content

Query USMS Template Application Status - QueryUSMSTemplate

Overview

Call the QueryUSMSTemplate interface to query the status of the SMS template application

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is QueryUSMSTemplate.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
TemplateIdstringTemplate IDYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
DataOutTemplateDetails of the SMS template, for field descriptions see OutTemplate.No

Data Model

OutTemplate

Field NameTypeDescription InformationRequired
TemplateIdstringSMS Template IDYes
PurposeintTemplate type, options: 1-Verification code type 2-Notification type 3-Member promotion typeYes
TemplateNamestringUSMS Template NameYes
TemplatestringUSMS Template ContentYes
UnsubscribeInfostringUnsubscribe Information; the general input method is “Reply T to unsubscribe”, which is a mandatory field when the purpose is 3 (i.e., member promotion category).Yes
StatusintSMS Template Status; Status Description: 0-Pending Review, 1-Under Review, 2-Approved, 3-Not Approved, 4-DisabledYes
RemarkstringTemplate DescriptionYes
ErrDescstringAudit Failure ReasonYes
CreateTimeintCreation TimeYes
InstructionstringTemplate Variable Property DescriptionNo

Example

Request Example

https://api.ucloud-global.com/?Action=QueryUSMSTemplate &ProjectId=pro-xxxxx &TemplateId=UTA190715D9108C

Response Example

{ "Action": "QueryUSMSTemplateResponse", "Data": { "CreateTime": 1566783067, "ErrDesc": "", "Status": 2, "Template": "您的验证码为{1},请在{2}分钟内使用,勿透露给他人。", "TemplateId": "UTA190715D9108C", "TemplateName": "验证码模板01" }, "Message": "", "RetCode": 0 }