Update webhook
Changed onUpdate a webhook. Only the fields you send are changed.
Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).
Request
- Base URLhttps://api.commpeak.com/textpeak
- URLhttps://api.commpeak.com/textpeak/webhooks/{id}
- AuthAPI key in header Authorization
Path parameters
Unique identifier of the resource.
Request body
Example request
{
"retries": 5,
"url": "https://demo.example.com/webhooks/v2/delivery"
}Response
Successful Response
Example response
{
"activated": true,
"createdAt": "2026-03-01 09:00:00",
"filter": {
"stream_id": [
5
]
},
"headers": {
"X-Token": "your-shared-secret"
},
"id": 3,
"method": "POST",
"name": "Delivery receipts",
"params": {
"include_message_text": true,
"send_bulk": false
},
"retries": 3,
"updatedAt": "2026-03-02 12:30:00",
"url": "https://demo.example.com/webhooks/delivery",
"webhookTrigger": "MESSAGE_DELIVERY"
}Changes
- breaking
added the new path request parameter
id - breaking
removed the enum value
CALL_PERMISSIONof the request property - breaking
removed the enum value
EDR_INFORMATIONof the request property - breaking
removed the enum value
GETof the request property - breaking
removed the enum value
INCOMING_MESSAGEof the request property - breaking
removed the enum value
MESSAGE_DELIVERYof the request property - breaking
removed the enum value
POSTof the request property - breaking
removed the enum value
SHORT_URL_CLICKof the request property - breaking
the
request property type changed fromobjectto no type - breaking
the
request property type changed fromobjectto no type - breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromobjectto no type for status - warning
removed the request property
/ - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
added the new
UNKNOWNenum value to theresponse property for the response status - warning
added the new
UNKNOWNenum value to theresponse property for the response status - info
api operation id
updateWebhookremoved and replaced withupdate_webhook - info
the endpoint scheme security
APIKeyHeaderwas added to the API - info
api tag
Webhooksadded - info
api tag
Webhooks managementremoved - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
the request property
became optional - info
the request property
became optional - info
the request property
became optional - info
the request property
became optional - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- breaking