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
| Field | Type | Required | Description |
|---|---|---|---|
client_id | number | No | Client 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
| Code | Case |
|---|---|
403 | client_id different from the token without BSP_CN |
409 | A synchronization is already in progress |
502 | External service unreachable |