CreateEmailTemplate
If you need to send an email, you need to create a template first
Request Parameters
Field Name | Parameter Type | Describe | Require |
---|---|---|---|
Action | string | Value: CreateEmailTemplate | Yes |
AccountId | int | Project ID. Get AccountId. | Yes |
Name | string | Template name | Yes |
Subject | string | Email Subject | Yes |
Abstract | string | Email summary | Yes |
TriggerType | int | Email type. 1-Trigger email 2-Batch email | Yes |
HtmlContent | string | html content, Variable Insertion Method: {1}, {2} | Yes |
Response Parameters
Field Name | Parameter Type | Describe | Require |
---|---|---|---|
RetCode | int | When RetCode is not 0, the specific error description is displayed in Message. If RetCode is 0, Message will not be returned. | Yes |
Message | string | Return status code description. If the operation is successful, it will be returned as empty by default. | Yes |
Request Example
curl -X POST https://api.uspeedo.com/api -H 'Content-Type: application/json' -d '{
"Action": "CreateEmailTemplate",
"AccountId": 1,
"Name": "hello",
"Subject": "vnSDFAjK",
"Abstract": "ulaAspXU",
"TriggerType": 1,
"HtmlContent": "your code is {1}",
}'
Response Example
{
"Action": "CreateEmailTemplateResponse",
"Message": "",
"RequestUuid": "056a991a-57a7-41f4-9f6c-f90ba76ac053",
"RetCode": 0,
"TemplateId": "UET24011717KYDP2F"
}