Skip to main content
GET
/
v1
/
templates
/
{templateId}
Get Template
curl --request GET \
  --url https://api.zavu.dev/v1/templates/{templateId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "tpl_abc123",
  "name": "order_confirmation",
  "category": "transactional",
  "body": "Hi {{name}}, your order #{{orderId}} has been confirmed!",
  "variables": ["name", "orderId"],
  "channels": ["sms", "whatsapp"],
  "whatsapp": {
    "templateName": "order_confirm_v1",
    "namespace": "abc123",
    "status": "approved"
  },
  "createdAt": "2024-01-15T10:00:00.000Z",
  "updatedAt": "2024-01-15T10:00:00.000Z"
}
Retrieve the details of a specific message template.

Path Parameters

templateId
string
required
The template identifier (e.g., tpl_abc123)

Response

{
  "id": "tpl_abc123",
  "name": "order_confirmation",
  "category": "transactional",
  "body": "Hi {{name}}, your order #{{orderId}} has been confirmed!",
  "variables": ["name", "orderId"],
  "channels": ["sms", "whatsapp"],
  "whatsapp": {
    "templateName": "order_confirm_v1",
    "namespace": "abc123",
    "status": "approved"
  },
  "createdAt": "2024-01-15T10:00:00.000Z",
  "updatedAt": "2024-01-15T10:00:00.000Z"
}

Example

curl https://api.zavu.dev/v1/templates/tpl_abc123 \
  -H "Authorization: Bearer zv_live_xxx"