Skip to main content
POST
/
whatsapp
/
businesses
/
{wabaId}
/
templates
/
sync
Sincronizar 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": "pt_BR",
      "parameter_format": "POSITIONAL",
      "message_send_ttl_seconds": 600,
      "components": [
        {
          "type": "BODY",
          "text": "Seu código de verificação é *{{1}}*. Para sua segurança, não o compartilhe.",
          "add_security_recommendation": true,
          "example": {
            "body_text": [
              [
                "123456"
              ]
            ]
          }
        },
        {
          "type": "BUTTONS",
          "buttons": [
            {
              "type": "URL",
              "text": "Copiar código",
              "url": "https://www.whatsapp.com/otp/code/?otp_type=COPY_CODE&code=otp{{1}}",
              "example": [
                "https://www.whatsapp.com/otp/code/?otp_type=COPY_CODE&code=otp123456"
              ]
            }
          ]
        }
      ]
    }
  ],
  "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 gerada no painel de Segurança do Hub Message

Path Parameters

wabaId
string
required

ID do WABA (obtido via Listar WABAs)

Example:

"428083093730937"

Response

Sincronização realizada com sucesso

data
object[]

Lista de templates sincronizados

syncedCount
integer

Quantidade de templates sincronizados

synced
boolean

Indica se a sincronização foi realizada com sucesso