Manage WhatsApp Templates via API
Create, list, inspect, update, and delete Meta-reviewed WhatsApp message templates for your connected WABA.
Template Endpoints
All template management routes take your WhatsApp Business Account ID ({waba_id}) in the URL path. You can copy your WABA ID from Settings → Account Details inside the dashboard.
/v1/Account/{auth_id}/WhatsApp/Template/{waba_id}/Create a template and submit it to Meta for review/v1/Account/{auth_id}/WhatsApp/Template/{waba_id}/List templates in your connected WABA (up to 20 per page)/v1/Account/{auth_id}/WhatsApp/Template/{waba_id}/{template_id}/Retrieve template components, quality score, and rejection reason/v1/Account/{auth_id}/WhatsApp/Template/{waba_id}/{template_id}/Edit components of an approved, rejected, or paused template/v1/Account/{auth_id}/WhatsApp/Template/{waba_id}/{template_id}/?name={name}Delete a template from Meta and WBMSG (HTTP 204)Create & Submit Template Fields
Template submissions validate component structure and length limits before submitting your template directly to Meta for approval. Each (name, language) combination must be unique within your workspace.
| Field | Type | Description |
|---|---|---|
| namerequired | string | 1–512 characters using lowercase letters, numbers, and underscores only. |
| languagerequired | string | WhatsApp locale code such as en or en_US. |
| categoryrequired | string | One of MARKETING, UTILITY, or AUTHENTICATION. |
| componentsrequired | object[] | Array of up to 10 components (HEADER, BODY required up to 1,024 chars, FOOTER up to 60 chars, BUTTONS up to 10). Media headers require example.header_handle. |
| allow_category_changeoptional | boolean | Optional flag allowing Meta to automatically reclassify the template category during review. |
curl -X POST "https://YOUR_API_HOST/v1/Account/YOUR_AUTH_ID/WhatsApp/Template/YOUR_WABA_ID/" \
-u "YOUR_AUTH_ID:YOUR_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "appointment_reminder_v1",
"language": "en_US",
"category": "UTILITY",
"allow_category_change": true,
"components": [
{ "type": "HEADER", "format": "TEXT", "text": "Appointment Reminder" },
{ "type": "BODY", "text": "Hi {{1}}, your visit is confirmed for {{2}}." },
{ "type": "FOOTER", "text": "Reply STOP to opt out" }
]
}'{
"api_id": "1d4c3e89-808c-4c32-a540-2a1a97bc0011",
"status": "success",
"message": "template submitted to meta for review",
"template_id": "1092837465564738",
"template_name": "appointment_reminder_v1",
"template_status": "PENDING",
"template_language": "en_US",
"template_category": "UTILITY"
}List, Edit & Delete Rules
Filter GET /WhatsApp/Template/{waba_id}/ using template_name, limit (1–20), and offset. Retrieving an individual template by ID returns quality_score and rejected_reason alongside its components.
Editing components via POST /WhatsApp/Template/{waba_id}/{template_id}/ is supported for approved, rejected, or paused templates; name, language, and category cannot be changed, and the template returns to pending review after saving. Deleting via DELETE requires the ?name={template_name} query parameter to confirm the exact template being removed.