Last Updated on : 2023-06-19 07:06:28
Get the list of email templates.
GET: /v1.0/iot-03/msg-templates/mails
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
page_no | Integer | query | false | The page number. Query the first page if this parameter is not entered. |
page_size | Integer | query | false | The page size. It is 10 by default if this parameter is not entered. |
sort | Integer | query | false | Sort the results. 0: Sort by creation time in ascending order. 1: Sort by creation time in descending order. The results are sorted by creation time in descending order if this parameter is not entered. |
Parameter name | Type | Description |
---|---|---|
result | TemplatesListRes |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Long | The total number of template lists. |
list | List | The list of templates. |
has_more | Boolean | Whether there is a next page. |
Description of has_more
Parameter name | Type | Description |
---|---|---|
template_id | String | Template ID. |
name | String | The template name with 1 to 40 characters. |
content | String | The template content with 1 to 60 characters. |
status | Integer | The review status of the template. 0: The review is in progress. 1: Passed the review. 2: Failed to pass the review. |
GET: /v1.0/iot-03/msg-templates/mails?page_no=1&page_size=10&sort=1
? page_no=1&page_size=10&sort=1
{
"result": {
"list": [
{
"content": "You are registering with your email address. The verification code is: ${code}, valid for 5 minutes.",
"name": "The email verification code",
"template_id": "a5s51kn**",
"status": 1
}
],
"total": 1,
"has_more": false
},
"t": 1586153261345,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback