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

πŸ’» PHP Example


πŸ“¦ Sample JSON Response