Authorizations
Body
application/json
Response
OK
curl --request PATCH \
--url https://api.kapso.ai/platform/v1/whatsapp/phone_numbers/{phone_number_id}/webhooks/{webhook_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_webhook": {
"buffer_enabled": true,
"buffer_window_seconds": 5,
"max_buffer_size": 20,
"buffer_events": [
"whatsapp.message.received"
]
}
}'{
"data": {
"id": "9e8d7c6b-5a4f-3e2d-1c0b-9a8f7e6d5c4b",
"url": "https://api.acme.com/webhooks/whatsapp",
"events": [
"whatsapp.message.received"
],
"active": true,
"secret_key": "wh_sec_3kfj9dmfkg8s2",
"headers": {},
"buffer_enabled": true,
"buffer_window_seconds": 5,
"max_buffer_size": 20,
"buffer_events": [
"whatsapp.message.received"
],
"inactivity_minutes": 60,
"project_id": "1d6ca0a3-91c2-4f13-8a94-28ddb0d5f2f3",
"phone_number_id": "1234567890",
"created_at": "2025-07-14T15:00:00Z",
"updated_at": "2025-07-16T09:00:00Z"
}
}curl --request PATCH \
--url https://api.kapso.ai/platform/v1/whatsapp/phone_numbers/{phone_number_id}/webhooks/{webhook_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_webhook": {
"buffer_enabled": true,
"buffer_window_seconds": 5,
"max_buffer_size": 20,
"buffer_events": [
"whatsapp.message.received"
]
}
}'{
"data": {
"id": "9e8d7c6b-5a4f-3e2d-1c0b-9a8f7e6d5c4b",
"url": "https://api.acme.com/webhooks/whatsapp",
"events": [
"whatsapp.message.received"
],
"active": true,
"secret_key": "wh_sec_3kfj9dmfkg8s2",
"headers": {},
"buffer_enabled": true,
"buffer_window_seconds": 5,
"max_buffer_size": 20,
"buffer_events": [
"whatsapp.message.received"
],
"inactivity_minutes": 60,
"project_id": "1d6ca0a3-91c2-4f13-8a94-28ddb0d5f2f3",
"phone_number_id": "1234567890",
"created_at": "2025-07-14T15:00:00Z",
"updated_at": "2025-07-16T09:00:00Z"
}
}Show child attributes
OK
Show child attributes
Was this page helpful?