Skip to main content

Sync WABA Templates

Trigger a background synchronization of WhatsApp Business API (WABA) message templates for a given phone number. This fetches the latest templates from Meta and updates your 2Chat account so that new, modified, or removed templates are reflected when you call Get WABA Templates.

info

Requires a WABA channel connected to your 2Chat account. See How to connect WABA to 2Chat.

Query parameters

ParameterDescriptionExample
phone_numberYour WABA number in E.164 format: no spaces, with leading plus sign. Required.+5215512345432

Invocation

curl --request POST \
--url 'https://api.p.2chat.io/open/waba/templates/sync?phone_number=+5215512345432' \
--header 'Content-Type: application/json' \
--header 'X-User-API-Key: your_api_key_here'

Response

The endpoint returns immediately while the synchronization runs in the background.

{
"success": true,
"is_syncing": true,
"start_time_syncing": "2026-04-10T12:08:02.318000",
"message": "Template sync started in background. Please wait."
}
FieldDescription
successtrue when the request was accepted
is_syncingtrue indicates the sync process is running
start_time_syncingISO 8601 timestamp of when the sync started (present only when a new sync was triggered)
messageHuman-readable status message

If a sync is already in progress for the same number, the endpoint returns:

{
"success": true,
"is_syncing": true,
"message": "Template sync is already in progress. Please wait."
}
caution

The synchronization runs in the background. Updated templates will be available after a few seconds when you call Get WABA Templates. If you have a large number of templates, the sync may take longer.