Skip to main content

Upload Email Template

This endpoint allows you to upload email templates. It returns the status of the email template uploaded with a success and message body that can be used for further queries.

Upload an email using this POST Request

BASE_URL/upload/email/template
  • Authorization -> Bearer [ACCESS_TOKEN]
  • Content-Type -> multipart/form-data

Request Parameters

ParameterTypeRequiredDescription
templateNamestringyes*The name of the template
templateVariablesstring[]yes*An array of template variables represented by #VARIABLE_NAME# e.g ['#EMAIL#', '#NAME#']
templateFileobjectyes*Supported file type is only html

Responses

Success

Status Code: 200

{
"success": true,
"message": "Email template created successfully"
}

Validation Error Response

Status Code: 200

{
"success": false,
"message": "Message Returned"
}

Error

Status Code: 400

{

"success": false,
"message": "Message Returned"
}