POST
/
templates
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Order Confirmation",
  "category": "transactional",
  "rawBody": "Your order #{{orderId}} has been confirmed.",
  "whatsappTemplateName": "order_confirmation",
  "whatsappTemplateStatus": "approved",
  "createdAt": "2023-01-01T12:00:00Z",
  "updatedAt": "2023-01-01T12:00:00Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json
Template creation details including customer ID and template name

Request model for creating a new message template

Response

200 - application/json
Template created successfully

Response model containing template details