Bulk-sync templates for a WABA from Meta into local DB
WhatsApp Templates
Bulk-sync templates for a WABA from Meta into local DB
Pulls all templates Meta has on file for the given waba_id and upserts them locally (matched by Meta template id). Walks Meta’s pagination internally (capped at 10 pages, ~250 templates per WABA).
When to call this:
- Bootstrap — once after linking a WABA, to import templates you created in Meta Business Manager.
- Periodic refresh — to pick up status changes, edits made in Meta Business Manager, or templates created outside this API.
- NOT needed after POST /templates — that endpoint already stores the template locally; only individual status changes need /sync.
Idempotent: safe to re-run. Existing rows are updated in place; new rows inserted; nothing is deleted (templates removed from Meta remain locally with their last-known status — call DELETE /templates/ to clean up).
POST
Bulk-sync templates for a WABA from Meta into local DB
Documentation Index
Fetch the complete documentation index at: https://developers.mihu.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Body
application/json
Example:
"123456789012345"