Templates
Manage Meta-approved message templates.
WhatsApp Business requires all outbound messages to use pre-approved templates (except replies within 24 hours). Use these endpoints to create, list, inspect and send templates. Templates are submitted to Meta for review and must be approved before they can be sent.
Copy this section as context for your AI coding agent
curl -X GET 'https://api.chatverse.io/v1/whatsapp/templates' \
-H 'Authorization: Bearer YOUR_API_KEY'Response · 200
json
{
"success": true,
"data": {
"templates": [
{
"name": "order_update",
"language": "en_US",
"category": "UTILITY",
"status": "APPROVED"
},
{
"name": "summer_sale",
"language": "en",
"category": "MARKETING",
"status": "PENDING"
}
],
"total": 2
}
}curl -X POST 'https://api.chatverse.io/v1/whatsapp/templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "order_update",
"category": "UTILITY",
"language": "en_US",
"components": [
{
"type": "BODY",
"text": "Hi {{1}}, your order {{2}} has shipped.",
"example": {
"body_text": [
[
"Rohit",
"ORD-123"
]
]
}
}
]
}'Response · 200
json
{
"success": true,
"message": "Template 'order_update' created successfully. Status: PENDING (awaiting Meta review).",
"data": {
"id": "1234567890123456",
"name": "order_update",
"status": "PENDING",
"category": "UTILITY"
}
}curl -X GET 'https://api.chatverse.io/v1/whatsapp/templates/{name}' \
-H 'Authorization: Bearer YOUR_API_KEY'Response · 200
json
{
"success": true,
"data": {
"name": "order_update",
"language": "en_US",
"category": "UTILITY",
"parameter_format": "positional",
"fields": {
"body": {
"format": "positional",
"required": true,
"params": [
"1",
"2"
],
"text": "Hi {{1}}, your order {{2}} has shipped."
}
},
"example_request": {
"to": "919876543210",
"language": "en_US",
"body": [
"value_1",
"value_2"
]
}
}
}curl -X POST 'https://api.chatverse.io/v1/whatsapp/templates/{name}/send' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"to": "919876543210",
"body": [
"Rohit",
"ORD-123"
]
}'Response · 200
json
{
"success": true,
"data": {
"message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgS",
"to": "919876543210",
"template": "order_update",
"language": "en_US"
}
}Optional: language (required when the template is approved in more than one language, else 400 LANGUAGE_REQUIRED), header and buttons values. GET /v1/whatsapp/templates/{name} shows exactly what a template needs.