curl --request PATCH \
--url https://omni-api.sendblue.com/admin/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": false
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: false})
};
fetch('https://omni-api.sendblue.com/admin/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/webhooks/{webhook_id}"
payload = { "enabled": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "881e85ab-1007-46bf-8fed-75bd85a2033c",
"url": "https://hooks.acme.com/omni",
"events": [
"message.delivered"
],
"enabled": false,
"created_at": "2026-11-23T18:04:05.000000Z",
"updated_at": "2026-11-23T18:04:05.000000Z"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Change an endpoint's URL, subscriptions or enabled state.
Requires at least one field. A malformed or unknown field returns 400 invalid_request. An absent or foreign endpoint returns 404 not_found. Subscription changes affect future events. Changing the destination or disabling the endpoint fences pending delivery attempts.
Required permission: webhooks:manage. Accepted credentials: a signed-in administrator, an API key, the account token.
curl --request PATCH \
--url https://omni-api.sendblue.com/admin/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": false
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: false})
};
fetch('https://omni-api.sendblue.com/admin/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/webhooks/{webhook_id}"
payload = { "enabled": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "881e85ab-1007-46bf-8fed-75bd85a2033c",
"url": "https://hooks.acme.com/omni",
"events": [
"message.delivered"
],
"enabled": false,
"created_at": "2026-11-23T18:04:05.000000Z",
"updated_at": "2026-11-23T18:04:05.000000Z"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
Body
1 - 11 elementsThe message.sent, message.delivered, message.failed and message.received types describe those transitions. Other emitted message lifecycle changes use message.updated. A completed call emits call.completed. Other emitted call transitions use call.updated. Number acquisition, routing, campaign assignment, activation and release emit number.updated. Registration changes emit brand.updated and campaign.updated with their public resource. A top-up request, hosted link, payment, failure or recorded expiry emits top_up.updated. A clock-only expiry is visible on GET.
message.sent, message.delivered, message.failed, message.received, message.updated, call.updated, call.completed, brand.updated, campaign.updated, number.updated, top_up.updated Response
Updated endpoint.
1 - 11 elementsThe message.sent, message.delivered, message.failed and message.received types describe those transitions. Other emitted message lifecycle changes use message.updated. A completed call emits call.completed. Other emitted call transitions use call.updated. Number acquisition, routing, campaign assignment, activation and release emit number.updated. Registration changes emit brand.updated and campaign.updated with their public resource. A top-up request, hosted link, payment, failure or recorded expiry emits top_up.updated. A clock-only expiry is visible on GET.
message.sent, message.delivered, message.failed, message.received, message.updated, call.updated, call.completed, brand.updated, campaign.updated, number.updated, top_up.updated