General Documentation
WhatsApp Conversations
WhatsApp Configs
Conversation Assignments
WhatsApp Templates
WhatsApp Contacts
WhatsApp Contact Notes
WhatsApp Webhooks
Projects
Customers
WhatsApp Webhooks
Update WhatsApp webhook
Updates a WhatsApp webhook’s configuration
PATCH
/
whatsapp_configs
/
{whatsapp_config_id}
/
whatsapp_webhooks
/
{id}
Update WhatsApp webhook
Copy
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": {},
"retry_config": {
"max_attempts": 123,
"backoff_seconds": 123
}
}
}'
Copy
{
"data": {
"id": "webhook-123abc",
"url": "https://example.com/webhook",
"secret_key": "your-secret-key",
"events": [
"messages",
"status_updates",
"templates"
],
"active": true,
"headers": {
"X-Custom-Header": "custom-value"
},
"retry_config": {
"max_attempts": 3,
"backoff_seconds": 60
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Authorizations
API key required for all endpoints
Body
application/json
Response
200
application/json
WhatsApp webhook updated
The response is of type object
.
Was this page helpful?
Update WhatsApp webhook
Copy
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": {},
"retry_config": {
"max_attempts": 123,
"backoff_seconds": 123
}
}
}'
Copy
{
"data": {
"id": "webhook-123abc",
"url": "https://example.com/webhook",
"secret_key": "your-secret-key",
"events": [
"messages",
"status_updates",
"templates"
],
"active": true,
"headers": {
"X-Custom-Header": "custom-value"
},
"retry_config": {
"max_attempts": 3,
"backoff_seconds": 60
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.