v1
latestOpenAPI 3.0.32026-07-24156161.2 MBWebhooks management
Update webhook
Update a webhook. Only the fields you send are changed.
Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).
put/webhooks/{id}
Request body
Example request
{
"name": "Delivery receipts",
"url": "https://example.com/webhooks/delivery",
"webhookTrigger": "MESSAGE_DELIVERY",
"method": "POST",
"filter": {
"stream_id": 5
},
"headers": {
"X-Token": "your-shared-secret"
},
"retries": 3,
"activated": true
}Response
The updated webhook.
Example response
{
"id": 3,
"name": "Delivery receipts",
"url": "https://example.com/webhooks/delivery",
"webhookTrigger": "MESSAGE_DELIVERY",
"method": "POST",
"filter": {
"stream_id": 5
},
"params": {
"include_message_text": true
},
"headers": {
"X-Token": "your-shared-secret"
},
"retries": 3,
"activated": true,
"createdAt": "2026-03-01 09:00:00",
"updatedAt": "2026-03-02 12:30:00"
}