GET
/
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"
  },
  {
    "id": "223e4567-e89b-12d3-a456-426614174001",
    "customerId": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Shipping Update",
    "category": "transactional",
    "rawBody": "Your order #{{orderId}} has been shipped.",
    "whatsappTemplateName": "shipping_update",
    "whatsappTemplateStatus": "pending",
    "createdAt": "2023-02-01T12:00:00Z",
    "updatedAt": "2023-02-01T12:00:00Z"
  }
]

Authorizations

x-api-key
string
header
required

Query Parameters

customerId
string
required

Unique identifier of the customer

Response

200
application/json
List of templates retrieved successfully
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