Skip to main content
POST
/
whatsapp
/
businesses
/
{wabaId}
/
templates
/
sync
Sync templates
curl --request POST \
  --url https://api.hubmessage.io/whatsapp/businesses/{wabaId}/templates/sync \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "1900296177408890",
      "name": "confirm_account",
      "status": "APPROVED",
      "category": "AUTHENTICATION",
      "language": "en_US",
      "parameter_format": "POSITIONAL",
      "message_send_ttl_seconds": 600,
      "components": [
        {
          "type": "BODY",
          "text": "Your verification code is *{{1}}*. For your security, do not share it.",
          "add_security_recommendation": true,
          "example": {
            "body_text": [
              [
                "123456"
              ]
            ]
          }
        }
      ]
    }
  ],
  "syncedCount": 2,
  "synced": true
}

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.
The wabaId is obtained from the List WABAs endpoint.

Authorizations

Authorization
string
header
required

Secret Key generated in the Hub Message 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