POST
/
templates

Authorizations

x-api-key
string
headerrequired

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

id
string

Unique identifier of the template

customerId
string

Customer ID associated with the template

name
string

Template name

category
enum<string>

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

Available options:
transactional,
marketing,
alert
rawBody
string

Template content with variable placeholders

whatsappTemplateName
string

Associated WhatsApp template name if applicable

whatsappTemplateStatus
enum<string>

Approval status of WhatsApp template

Available options:
pending,
approved,
rejected
createdAt
string

Template creation timestamp

updatedAt
string

Last template update timestamp