Skip to content

Sync from Meta

Triggers template synchronization from the Meta API. Restricted to the token’s own client unless BSP_CN is held.

Endpoint: POST /v1/templates/sync-from-meta

Body

FieldTypeRequiredDescription
client_idnumberNoClient to sync. Requires BSP_CN if it differs from the token.

Request

curl --request POST \
  --url 'https://api.chattigo.com/v1/templates/sync-from-meta' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{"client_id": 1001}'

Response

Success (200)

{
  "status": "started",
  "message": "SyncMeta operation started for client 1001",
  "clientId": 1001
}

Errors

CodeCase
403client_id different from the token without BSP_CN
409A synchronization is already in progress
502External service unreachable