Overview
Templates are pre-approved message formats used when you message customers outside the active 24-hour customer service window. They are created at the WABA level and sent from a specific phone_number_id.
In Dualhook, templates can be synced, created, edited, duplicated, and deleted from the dashboard. Customers can also use the Graph-compatible dh_live_ Runtime API template routes to upload media-header samples and list, create, inspect status/quality/rejection details, update, and delete templates on the connection's stored WABA.
Never submit the connection's Meta token or appsecret_proof; Dualhook applies both internally and verifies template ownership before object-ID reads or mutations.
Categories
Supported categories:
- MARKETING — promotional content, offers, and announcements. See Marketing Messages. Marketing templates are the only category that can be sent through either Cloud API
/messagesor Marketing Messages API for WhatsApp/marketing_messages. - UTILITY — order updates, shipping notifications, and account alerts. See Utility Messages.
- AUTHENTICATION — one-time passwords and verification codes. See Authentication Messages.
Meta can reclassify template categories based on actual content. Dualhook surfaces category and status updates after sync.
Template Lifecycle
Common statuses:
PENDING— submitted, awaiting review (up to 24 hours)APPROVED— accepted and ready to sendREJECTED— not accepted; revise and resubmitPAUSED— paused after reaching low quality: 3 hours the first time, 6 hours the second. It unpauses on its own, except a template paused during template pacing, which must be unpaused in WhatsApp Manager or withPOST /<TEMPLATE_ID>/unpauseDISABLED— disabled on the third low-quality pause, or for repeated negative feedback; it can't be sent or deletedIN_APPEAL— rejection is being challengedARCHIVED— archived for inactivity or by hand; it can't be sent. See ArchivalPENDING_DELETION— deleted while sends were still undelivered; Meta keeps trying those deliveries for 30 days
Only APPROVED, REJECTED, and PAUSED templates can be edited, and an edit replaces every component. An approved template can be edited once per 24 hours and 10 times per 30 days, and its category can't be changed; rejected and paused templates can be edited without limit. You can duplicate any template to create a new version for resubmission, except one that uses parts the dashboard editor can't build: carousels, limited-time offers, call permission requests, catalog and product headers or buttons, copy-code buttons, app deep links, or named parameters. The editor won't save edits to or copies of those templates, because that would drop the parts it can't build. Manage them in WhatsApp Manager.
Template Limits
- Templates per WABA: 250 while the business portfolio is unverified. Up to 6,000 once the portfolio is verified and at least one of its numbers has an approved display name. Each language version counts as its own template.
- Creation rate: at most 100 new templates per WABA per hour.
- Names: lowercase letters, digits, and underscores only, up to 512 characters. A name can exist once per language. A second template with the same name and language fails with error
100, subcode2388024("Content in This Language Already Exists"). - Deletion: deleting by name removes every language version. After you delete an approved template, its name can't be reused for 30 days. Disabled templates can't be deleted.
Separate limits govern how many templates you can send: messaging limits, pacing, and per-user marketing limits.
Archival
Meta archives a template automatically after 12 months without activity: no create, edit, send, appeal, or unarchive. You can't opt out. An archived template can't be sent, and Meta deletes it 28 days after archival unless it is unarchived first. Unarchiving restores the previous status (APPROVED if none is known) and restarts the 12-month clock.
You can also archive or unarchive templates by hand in WhatsApp Manager, or with POST /<WABA_ID>/message_templates/archive and POST /<WABA_ID>/message_templates/unarchive (an hsm_ids array of up to 100 template IDs). Meta sends a message_template_status_update webhook with ARCHIVED or UNARCHIVED for each template, plus an email when templates are archived.
Time-to-Live
If a template message can't be delivered, Meta keeps retrying for its time-to-live (TTL), then drops it. If no delivered status arrives within the TTL, treat the message as dropped. Set a custom TTL with message_send_ttl_seconds when you create or edit the template.
| Category | Default TTL | Custom range |
|---|---|---|
| Authentication | 10 minutes (30 days for templates created before October 23, 2024) | 30 to 900 seconds |
| Utility | 30 days | 30 to 43,200 seconds (12 hours) |
| Marketing | 30 days | 43,200 to 2,592,000 seconds (12 hours to 30 days), only for sends through Marketing Messages API for WhatsApp |
For authentication and utility templates, -1 sets a 30-day TTL. Keep an authentication TTL at or below the code's expiry. When Meta changes a template's category automatically, it clears the custom TTL, and you can set a new one within the new category's range.
Template Library
Meta's Template Library offers pre-written utility and authentication templates for common cases such as delivery updates, payment reminders, and verification codes. Their wording is fixed and already categorized; you fill in the parameters. In WhatsApp Manager, choose Create template → Browse templates. Through the API, browse GET /message_template_library and create with POST /<WABA_ID>/message_templates, passing library_template_name and, for templates with buttons, library_template_button_inputs. A library template you customize goes through review like any other.
Library templates show library_template_name when read back. Their parameters are type-checked at send time (address, text, amount, date, phone number, email, number), and a value outside the allowed format or length fails the send.
Management API Examples
Create Template
For an image, video, or document header, first upload a sample through
POST /v25.0/<WABA_ID>/message_template_media, then place the returned h
value in example.header_handle. Dualhook keeps Meta's app ID and resumable
upload session internal. See the
Runtime API example.
{
"name": "order_update_v1",
"language": "en_US",
"category": "UTILITY",
"components": [
{
"type": "BODY",
"text": "Hi {{1}}, your order {{2}} is now {{3}}.",
"example": {
"body_text": [["Alex", "A12345", "shipped"]]
}
}
]
}
List Templates
GET /<WABA_ID>/message_templates?fields=id,name,language,status,category,rejected_reason,components
Update Template Components
{
"components": [
{
"type": "BODY",
"text": "Hi {{1}}, your order {{2}} is now {{3}}. Track here: {{4}}",
"example": {
"body_text": [["Alex", "A12345", "shipped", "https://example.com/track/A12345"]]
}
}
]
}
Delete Template
DELETE /<WABA_ID>/message_templates?name=order_update_v1
This deletes every language version of order_update_v1. Add hsm_id=<TEMPLATE_ID> to delete one version, or send hsm_ids alone to delete up to 100 templates by ID.
For template structure details, see Template Elements. For send payloads, see Sending Template Messages.
Dualhook Boundary
- Dashboard: sync, create, edit, duplicate, and delete templates (one language or all), add a language to an existing template, unarchive an archived template, and unpause a paused template when Meta allows it. The editor sets a validity period on Utility and Authentication templates. Templates sync when you open the Templates page, and status, category, and quality rating stay current through sync and template webhooks.
- Runtime API: list, create, read, update, and delete templates on the connection's WABA, and upload media-header samples. Create and update accept
message_send_ttl_secondsfrom 30 seconds to 30 days, or-1; Meta enforces each category's range. - Not in Dualhook: archiving, Template Library creation (the Runtime API rejects
library_template_name), category review requests and appeals, template comparison, and template migration between WABAs (migrate_message_templates). Use WhatsApp Manager, Business Support for category reviews, or your own Meta app. Templates created there appear in Dualhook after the next sync and send through/messageslike any approved template.
Dualhook does not influence Meta's review, category, quality, pacing, or archival decisions.