Templates API
Manage and use WhatsApp Message Templates — Meta-approved message formats required for sending proactive business-initiated messages.
Overview

Templates list — name, category, language, and approval status.

Template creation — body text with variable placeholders.

List Templates
https://api.vobiz.ai/v1/messaging/channels/{channel_id}/templatesReturns all templates for a specific channel. Filter by approval status using the status query parameter.
| status | Filter by: APPROVED, PENDING, REJECTED (leave empty for all) |
Authentication Required:
- • X-Auth-ID: Your Account Auth ID
- • X-Auth-Token: Your Account Auth Token
- • Accept: application/json
curl -X GET \
"https://api.vobiz.ai/v1/messaging/channels/{channel_id}/templates?status=APPROVED" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"{
"data": [{
"id": "tpl_abc123",
"name": "order_confirmation",
"language": "en_US",
"category": "UTILITY",
"status": "APPROVED",
"components": [{"type":"BODY","text":"Your order {{1}} has been confirmed."}]
}]
}Create Template
https://api.vobiz.ai/v1/messaging/channels/{channel_id}/templatesSubmit a new template to Meta for approval. Use double-brace numbered placeholders like {{1}}, {{2}} for dynamic content.
Authentication Required:
- • X-Auth-ID: Your Account Auth ID
- • X-Auth-Token: Your Account Auth Token
- • Accept: application/json
curl -X POST \
"https://api.vobiz.ai/v1/messaging/channels/{channel_id}/templates" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{"name":"order_confirmation","language":"en_US","category":"UTILITY","components":[{"type":"BODY","text":"Your order {{1}} has been confirmed. Delivery: {{2}}","example":{"body_text":[["ORD-12345","March 15"]]}}]}'Sync Templates from Meta
https://api.vobiz.ai/v1/messaging/channels/{channel_id}/templates/syncPulls the latest template list and statuses from Meta and updates your Vobiz account. Call this after creating templates in Meta Business Manager directly or after status changes.
Authentication Required:
- • X-Auth-ID: Your Account Auth ID
- • X-Auth-Token: Your Account Auth Token
- • Accept: application/json
curl -X POST \
"https://api.vobiz.ai/v1/messaging/channels/{channel_id}/templates/sync" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"Sending a Template Message
To send a template, use the Messages API with type: "template".
curl -X POST \
"https://api.vobiz.ai/v1/messaging/messages" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{"channel_id":"{channel_id}","waba_id":"{waba_id}","to":"919876543210","type":"template","template":{"name":"order_confirmation","language":{"code":"en_US"},"category":"UTILITY","components":[{"type":"body","parameters":[{"type":"text","text":"ORD-12345"},{"type":"text","text":"March 15"}]}]}}'