Create a Template
Create a new email template using HTML content or a zip archive.
π Create a Template
This endpoint allows you to upload and save a new template either via direct HTML content or using a ZIP archive.
πΉ HTTP Request
POST API-URL/templatesπ POST Parameters
Parameter
Type
Required
Description
template
array
Yes
An array containing the template details.
π¦ Data Block (Required)
Parameter
Type
Required
Description
name
string
Yes
The template name.
content
string
Yes
HTML content of the template.
archive
string
No
File content of a ZIP archive (alternative to content).
inline_css
Yes/No
No
Enable or disable inline CSS (yes or no).
π Authorization Header
X-API-KEY: your-api-key-here