Authorizations
Your project API key
Body
application/json
Response
WhatsApp webhook updated
curl --request PATCH \
--url https://app.kapso.ai/api/v1/whatsapp_configs/{whatsapp_config_id}/whatsapp_webhooks/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_webhook": {
"url": "<string>",
"secret_key": "<string>",
"events": [
"<string>"
],
"active": true,
"headers": {},
"buffer_enabled": true,
"buffer_window_seconds": 30,
"max_buffer_size": 50,
"buffer_events": [
"<string>"
],
"inactivity_minutes": 720
}
}'
{
"data": {
"id": "9e8d7c6b-5a4f-3e2d-1c0b-9a8f7e6d5c4b",
"url": "https://example.com/webhook",
"secret_key": "your-secret-key",
"events": [
"whatsapp.message.received",
"whatsapp.message.sent"
],
"active": true,
"headers": {
"X-Custom-Header": "custom-value"
},
"buffer_enabled": false,
"buffer_window_seconds": 5,
"max_buffer_size": 50,
"buffer_events": [
"whatsapp.message.received"
],
"inactivity_minutes": 60,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Updates a WhatsApp webhook’s configuration
curl --request PATCH \
--url https://app.kapso.ai/api/v1/whatsapp_configs/{whatsapp_config_id}/whatsapp_webhooks/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_webhook": {
"url": "<string>",
"secret_key": "<string>",
"events": [
"<string>"
],
"active": true,
"headers": {},
"buffer_enabled": true,
"buffer_window_seconds": 30,
"max_buffer_size": 50,
"buffer_events": [
"<string>"
],
"inactivity_minutes": 720
}
}'
{
"data": {
"id": "9e8d7c6b-5a4f-3e2d-1c0b-9a8f7e6d5c4b",
"url": "https://example.com/webhook",
"secret_key": "your-secret-key",
"events": [
"whatsapp.message.received",
"whatsapp.message.sent"
],
"active": true,
"headers": {
"X-Custom-Header": "custom-value"
},
"buffer_enabled": false,
"buffer_window_seconds": 5,
"max_buffer_size": 50,
"buffer_events": [
"whatsapp.message.received"
],
"inactivity_minutes": 60,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Your project API key
Show child attributes
WhatsApp webhook updated
Show child attributes
Was this page helpful?