Skip to main content

CreateEmailTemplate

Create an email template for sending emails later. Supports both rich text editor and drag-and-drop editor.

Request Information

  • Request Method: POST
  • Request Path: /api/v1/email/EmailTemplate
  • Content-Type: application/json

Notes

  • Name length must be less than 200 characters
  • Editor: 1 = rich text editor, 2 = drag-and-drop editor, 3 = HTML editor (recommended)
  • In HtmlContent, use placeholders like {1}, {2} for template variables
Namestringrequired
Template name (length must be less than 200 characters)
?
Editorintrequired
Editor type: 1-Rich text editor, 2-Drag-and-drop editor, 3-HTML editor (recommended)
?
HtmlContentstringrequired
HTML email content. Use {1}, {2}, ... as placeholders for template variables.
?

LANGUAGE

CREDENTIALS

👁️
🔒
🔑Log in to get ACCESSKEY_ID and ACCESSKEY_SECRET

URL

POST
CURL Request
curl -X POST "https://api.uspeedo.com/api/v1/email/EmailTemplate" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Basic $(echo -n 'ACCESSKEY_ID:ACCESSKEY_SECRET' | base64)" \
-d '{
"Name": "Welcome Email Template",
"Editor": 3,
"HtmlContent": "<html><body><h1>Welcome</h1><p>Dear {1}, welcome to uSpeedo!</p></body></html>"
}'

RESPONSE

Click Try It! to start a request and see the response here.

Response Format

Field NameTypeDescription
RetCodeintReturn code, 0 indicates success
MessagestringReturn message
TemplateIdstringCreated template ID, used for subsequent email sending