templates:syncwm_business_account_id) — set in account WhatsApp settingswm_access_token) — set in account WhatsApp settingsWHATSAPP_NOT_CONFIGURED error.| Field | Type | Description |
|---|---|---|
synced_count | integer | Number of templates synchronized |
templates | array | List of synced template objects |
| Status | Error Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Invalid or missing API token |
| 403 | INSUFFICIENT_SCOPE | Token missing templates:sync scope |
| 422 | WHATSAPP_NOT_CONFIGURED | WhatsApp Business API is not configured for this account |
| 500 | WHATSAPP_API_ERROR | Failed to sync templates from WhatsApp |
| 500 | INTERNAL_ERROR | An unexpected error occurred |
curl --location --request POST '/templates/sync' \
--header 'Authorization: Bearer <token>'{}