Get WhatsApp template sync status
curl --request GET \
--url https://app.kapso.ai/api/v1/whatsapp_templates/sync_status \
--header 'X-API-Key: <api-key>'
{
"sync_requests": [
{
"id": "sync-run-123abc",
"business_account_id": "111111111111111",
"status": "succeeded",
"templates_synced": 15,
"templates_created": 5,
"templates_updated": 8,
"templates_removed": 2,
"queued_at": "2024-01-15T10:00:00Z",
"started_at": "2024-01-15T10:01:00Z",
"finished_at": "2024-01-15T10:05:00Z",
"affected_whatsapp_config_ids": [
"config-111",
"config-222"
]
},
{
"id": "sync-run-456def",
"business_account_id": "222222222222222",
"status": "running",
"templates_synced": 8,
"templates_created": 3,
"templates_updated": 4,
"templates_removed": 1,
"queued_at": "2024-01-15T10:15:00Z",
"started_at": "2024-01-15T10:16:00Z",
"finished_at": null,
"affected_whatsapp_config_ids": [
"config-333"
]
},
{
"id": "sync-run-789ghi",
"business_account_id": "333333333333333",
"status": "queued",
"templates_synced": 0,
"templates_created": 0,
"templates_updated": 0,
"templates_removed": 0,
"queued_at": "2024-01-15T10:30:00Z",
"started_at": null,
"finished_at": null,
"affected_whatsapp_config_ids": [
"config-444"
]
}
],
"summary": {
"total_requests": 3,
"queued": 1,
"running": 1,
"succeeded": 1,
"failed": 0,
"last_finished_at": "2024-01-15T10:05:00Z",
"templates_removed": 3
}
}