Create a template
Templates
Create a template
Creates a new template. Each template must have a channel (email or web) with corresponding channel-specific content.
POST
Create a template
Authorizations
API token for authentication
Body
application/json
The ID of the workspace
Example:
"ws_1234567890"
Unique identifier for the template (alphanumeric, underscores, and hyphens only)
Maximum string length:
32Pattern:
^[a-zA-Z0-9_-]+$Example:
"welcome_email"
Name of the template
Maximum string length:
32Example:
"Welcome Email"
Communication channel
Available options:
email, web Example:
"email"
Template category
Available options:
marketing, transactional, welcome, opt_in, unsubscribe, bounce, blocklist, blog, other Example:
"transactional"
ID of the template macro (layout) to use
Test data for template preview
Channel-specific settings
Response
Template created successfully
