Templates API
v1.0Create, manage, and use pre-approved WhatsApp message templates for marketing, utility, and authentication
🔑 Authentication Required: All template API requests require an API Key. Include your key in the
X-API-Key header. Learn moreMeta Approval Required: All templates must be submitted to and approved by Meta before they can be used. Approval typically takes 24-48 hours.
Available Endpoints
POST
Core/api/templatesCreate a new message templateGET
Core/api/templatesGet all templatesGET
Core/api/templates/:idGet a specific templatePUT
Core/api/templates/:id/editEdit a templateDELETE
Core/api/templates/:idDelete a templatePOST
Advanced/api/templates/syncSync templates with WhatsAppCreate New Template
Submit a new message template for Meta approval.
POST
/api/templates💡 No wabaId needed! The system automatically determines your WABA from your API key.
cURL Example
curl -X POST "https://zaptick.io/api/templates" \
-H "X-API-Key: zaptick_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "welcome_message",
"category": "UTILITY",
"language": "en",
"components": [...]
}'Request Body
JSON
{
"name": "welcome_message",
"category": "UTILITY",
"language": "en",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Welcome {{1}}!"
},
{
"type": "BODY",
"text": "Thank you for signing up."
},
{
"type": "FOOTER",
"text": "Powered by Zaptick"
}
]
}Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Template name (lowercase, underscore separated) |
| category | string | Yes | MARKETING, UTILITY, or AUTHENTICATION |
| language | string | Yes | Language code (e.g., en, hi, es) |
| components | array | Yes | Template components (header, body, footer, buttons) |
Success Response
200 OKSuccess
{
"success": true,
"template": {
"id": "template_123456",
"name": "welcome_message",
"status": "PENDING",
"category": "UTILITY",
"language": "en"
}
}