Skip to main content
POST
Sync templates

Overview

Forces template synchronization with Meta, updating statuses (PENDING, APPROVED, REJECTED) and other template information locally. Useful when you’ve created or edited a template and want to check if Meta has already updated the approval status.

Error 504

The synchronization fetches templates from Meta and can take more than a minute on WABAs with many templates. If it does not finish in time, the API answers 504 with the body below. The synchronization keeps running in the background: list the templates again in a few moments, without calling the synchronization again.
The wabaId is obtained from the List WABAs endpoint.

Authorizations

Authorization
string
header
required

Secret Key generated in the Omni Z-API Security panel

Path Parameters

wabaId
string
required

WABA ID (obtained via List WABAs)

Example:

"428083093730937"

Response

Synchronization completed successfully

data
object[]

List of synced templates

syncedCount
integer

Number of synced templates

synced
boolean

Indicates whether the synchronization was successful