POST
/
whatsapp_templates
/
sync
curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_templates/sync \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_config_id": "550e8400-e29b-41d4-a716-446655440000"
}'
{
"status": "queued",
"queued_config_ids": [
"550e8400-e29b-41d4-a716-446655440000"
],
"message": "Template sync queued for 1 configuration"
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Body

application/json
whatsapp_config_id
string<uuid>

Specific WhatsApp configuration to sync templates for

Example:

"550e8400-e29b-41d4-a716-446655440000"

customer_id
string<uuid>

Customer ID to sync templates for all their production configs

Example:

"550e8400-e29b-41d4-a716-446655440001"

Response

Sync request accepted and queued

status
string

Status of the sync request

Example:

"queued"

queued_config_ids
string<uuid>[]

List of WhatsApp config IDs queued for synchronization

Example:
["config-123abc", "config-456def"]
message
string
Example:

"Template sync queued for 2 configurations"