更新时间:2025-05-22 07:19:55下载pdf
本文介绍邮件模板详情查询的 API。
邮件模板详情查询
GET: /v1.0/iot-03/msg-templates/mails/{template_id}
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| template_id | String | uri | true | 模板 ID |
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | MailTemplateDetailRes |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| name | String | 模板名称,长度为1~30个字符 |
| title | String | 模板标题,长度为1~50个字符 |
| sender_name | String | 发件人名称,长度为1~30个字符。例如:设置为”小明”,发信地址为 test@example.com,收信人看到的发信地址为“小明”test@example.com |
| content | String | 模板内容,支持html正文和text正文,限制28K |
| type | Integer | 邮件类型,0:验证码,1:邮件通知,2:推广邮件 |
| status | Integer | 模板审核状态。其中:0:审核中,1:审核通过,2:审核未通过,请求返回verify_reason中查看审核失败原因 |
| verify_code | Integer | 审核码,详情请参考审核码列表 |
| verify_reason | String | 审核不通过结果简单描述 |
GET: /v1.0/iot-03/msg-templates/mails/MAIL_123***
{
"result": {
"sender_name": "小明",
"verify_code": 100,
"title": "验证码",
"type": 0,
"content": "您正在申请邮箱注册,验证码为:${code},5分钟内有效!",
"verify_reason": "Illegal words",
"name": "邮件验证码模板",
"status": 2
},
"t": 1586153261345,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈