CreateSmsSign
An SMS signature identifies the sender. Before sending messages, you must apply for a signature and a template. The system automatically prepends the approved signature to the message content before sending it to the recipient.
Operation description
-
For details about the new API and changes to the original API, see Announcement on Updating Signature & Template Interfaces for Short Message Service.
-
An individual verified user can apply for one official signature per calendar day for each Alibaba Cloud account. This limit does not apply to enterprise verified users. See Usage notes for the differences in benefits between individual and enterprise users.
-
The Signature Specifications describe the review standards for SMS signatures.
-
Signatures submitted via the API are synchronized with the Short Message Service console. To manage signatures in the console, see SMS Signature.
-
After submitting a signature application, you can call GetSmsSign to query its review status and details. You can also Configure Delivery Receipts to receive signature review notifications via SignSmsReport.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dysms:CreateSmsSign |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SignName |
string |
Yes |
The sign name. The sign name must comply with the signature specifications:
Note
|
阿里云验证码 |
| Remark |
string |
No |
The use case description for the signature. This description is used for the signature review and must not exceed 200 characters. Note
A detailed description can expedite the review of your signature and template. An incomplete or non-compliant description may result in the rejection of your signature application. |
登录场景使用验证码 |
| SignType |
integer |
No |
The signature type. Valid values:
We recommend using the default value: general. |
1 |
| MoreData |
array |
No |
Additional materials. You can upload supplementary business documents or screenshots to help reviewers understand your business. For information about what to upload, see Signature application materials. |
|
|
string |
No |
Information about the file uploaded to OSS. For instructions on how to upload files, see Upload files to OSS. |
10098689758*****/123qwe.png |
|
| QualificationId |
integer |
Yes |
The ID of an approved qualification. Note
|
8563** |
| ApplySceneContent |
string |
No |
Important Using a launched app as a signature source is no longer supported. SignSource parameter is set to 2), you must provide an app store URL that starts with http:// or https://. |
http://www.aliyun.com/ |
| SignSource |
integer |
Yes |
The signature source. Valid values:
For more information about signature sources, see Signature source. |
0 |
| ThirdParty |
boolean |
No |
The signature purpose. Valid values:
|
false |
| AuthorizationLetterId |
integer |
No |
The ID of the authorization letter. This parameter is required if the signature is for third-party use. The Unified Social Credit Code on the authorization letter must match the one in the associated qualification information. An application for a third-party signature will be rejected if this ID is missing or the codes do not match. |
1000********1234 |
| TrademarkId |
integer |
No |
The ID of the trademark entity. Note
|
1000009081*** |
| AppIcpRecordId |
integer |
No |
The ID of the app ICP filing entity. Note
|
10000****029 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. This unique identifier is generated by Alibaba Cloud and helps you troubleshoot issues. |
CCA2BCFF-2BA7-427C-90EE-AC6994748623 |
| Code |
string |
The request status code. Valid values:
|
OK |
| Message |
string |
The message returned with the response. |
successful |
| SignName |
string |
The signature name. |
阿里云 |
| OrderId |
string |
The work order ID. Reviewers use this ID to check the review status. You must also provide this ID to request an expedited review. |
2004415**** |
Examples
Success response
JSON format
{
"RequestId": "CCA2BCFF-2BA7-427C-90EE-AC6994748623",
"Code": "OK",
"Message": "successful",
"SignName": "阿里云",
"OrderId": "2004415****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ForbiddenAction | Access to the account is denied. Please contact the administrator. | |
| 400 | ParameterMismatch.ThirdParty | The type of signature, whether for personal use or for a third party, should be consistent with the qualifications. | Whether the signature is used by a third party should be consistent with the qualification. |
| 400 | SignName.Exists | Sorry, this signature already exists and cannot be applied for again. | Sorry, this signature already exists and cannot be reapplied. |
| 400 | InvalidQualification | The qualification should be approved. | Invalid qualification, qualification should be approved. |
| 400 | InvalidSignName | The signature cannot contain spaces, special symbols, or all numbers. | The signature cannot contain special characters such as simplified Chinese, English, or spaces other than digits, and cannot be all digits. |
| 400 | InvalidApplySceneContent | For certain signature sources, the applySceneContent should be an HTTP or HTTPS link. | invalid application scenario, under some signature sources, The application scenario should be an HTTP or HTTPS link. |
| 400 | MissApplySceneContent | In some signature sources, the applySceneContent is required. | Under some signature sources, the application scenario is required. |
| 400 | MissingSignName | The signature name cannot be empty. | Signature name cannot be empty |
| 400 | SmsAuthorizationLetterNotMatch | Please bind the available authorization letter whose the social credit code is same to the the social credit code of qualification. | Please bind the available authorization letter whose the social credit code is same to the the social credit code of qualification |
| 400 | SmsAuthorizationLetterNotExist | Authorization does not belong to the customer. | |
| 400 | SmsSignNotAuthorized | the signature is not in the sign scope of the authorization letter. | The signature is not within the scope of the authorization. |
| 400 | TrademarkNotExist | The trademark does not exist. | |
| 400 | AppIcpRecordNotExist | The APP-ICP record does not exist. | |
| 404 | QualificationNotFound | Qualification does not exist. | Qualification does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.