For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mail Templates

Upload a mail template file

post

Upload a mail template file

Authorizations
AuthorizationstringRequired
Body
filestring · binaryOptional

HTML mail template file to upload

overwritebooleanOptional

Whether to overwrite the existing file

Default: false
Responses
201

Mail template uploaded successfully

application/json
is_successbooleanOptionalExample: true
file_urlstring · uriOptionalExample: https://example.com/mail_templates/welcome.html
messagestringOptionalExample: The mail_template is uploaded successfully.
post/api/v1/upload_mail_templates/
POST /api/v1/upload_mail_templates/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 35

{
  "file": "binary",
  "overwrite": false
}
{
  "is_success": true,
  "file_url": "https://example.com/mail_templates/welcome.html",
  "message": "The mail_template is uploaded successfully."
}

Last updated

Was this helpful?