POST
/
templates

Authorizations

x-api-key
string
header
required

Body

application/json

Request model for creating a new message template

customerId
string
required

Unique identifier of the customer creating the template

name
string
required

Name of the template for identification purposes

Required string length: 1 - 100

Response

200 - application/json

Response model containing template details

category
enum<string>

Category of the template (e.g., transactional, marketing)

Available options:
transactional,
marketing,
alert
createdAt
string

Template creation timestamp

customerId
string

Customer ID associated with the template

id
string

Unique identifier of the template

name
string

Template name

rawBody
string

Template content with variable placeholders

updatedAt
string

Last template update timestamp

whatsappTemplateName
string

Associated WhatsApp template name if applicable

whatsappTemplateStatus
enum<string>

Approval status of WhatsApp template

Available options:
pending,
approved,
rejected