Mail Templates
Upload a mail template file
Authorizations
AuthorizationstringRequired
Body
filestring · binaryOptional
HTML mail template file to upload
overwritebooleanOptionalDefault:
Whether to overwrite the existing file
falseResponses
201
Mail template uploaded successfully
application/json
is_successbooleanOptionalExample:
truefile_urlstring · uriOptionalExample:
https://example.com/mail_templates/welcome.htmlmessagestringOptionalExample:
The mail_template is uploaded successfully.400
Upload failed due to validation or duplication
application/json
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?

