Skip to main content

Sync Templates with Meta

Trigger a full template sync with Meta across every WhatsApp number linked to your account. Waplify fetches the latest template list from Meta, creates missing templates locally, updates changed ones (e.g., approval status transitions from PENDINGAPPROVED), and removes templates that were deleted on Meta.

POST /api/v1/templates/sync

Use this after submitting a template via Create Template or Create Carousel Template to refresh the approval status, or any time you suspect local state is out of date with Meta.

Request body

No body required.

Example request

curl -X POST https://server.waplify.io/api/v1/templates/sync \
-H "Authorization: Bearer wapl_your_api_key"

Success response

{
"status": "success",
"message": "Template sync completed",
"summary": {
"total_meta_templates": 12,
"synced": 12,
"created": 1,
"updated": 3,
"skipped": 8,
"deleted": 0
}
}
FieldDescription
total_meta_templatesTotal templates currently on Meta across your linked WABA numbers
syncedTemplates processed this run
createdNew templates added locally (existed on Meta but not in Waplify)
updatedExisting templates whose status, body, or components changed
skippedTemplates with no changes
deletedTemplates removed locally (no longer on Meta)

Error responses

No WhatsApp numbers linked

// 400 Bad Request
{
"error": "bad_request",
"message": "No WhatsApp accounts linked to this user"
}
When to sync
  • After you create a template and want to pick up Meta's APPROVED/REJECTED decision
  • After editing a template in the Waplify dashboard (or directly on Meta's Business Manager)
  • Periodically (e.g., once per hour) if you keep a local cache of templates