Path Parameters
The template identifier (e.g.,
tpl_abc123)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 a specific 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"
}
tpl_abc123){
"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"
}
curl https://api.zavu.dev/v1/templates/tpl_abc123 \
-H "Authorization: Bearer zv_live_xxx"