curl --request POST \
--url https://omni-api.sendblue.com/admin/webhooks/{webhook_id}/rotate_secret \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://omni-api.sendblue.com/admin/webhooks/{webhook_id}/rotate_secret', 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}/rotate_secret"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "881e85ab-1007-46bf-8fed-75bd85a2033c",
"url": "https://hooks.acme.com/omni",
"events": [
"message.delivered"
],
"enabled": true,
"created_at": "2026-11-23T18:04:05.000000Z",
"updated_at": "2026-11-23T18:04:05.000000Z"
}{
"id": "881e85ab-1007-46bf-8fed-75bd85a2033c",
"url": "https://hooks.acme.com/omni",
"events": [
"message.delivered"
],
"enabled": true,
"created_at": "2026-11-23T18:04:05.000000Z",
"updated_at": "2026-11-23T18:04:05.000000Z",
"secret": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Replace the signing secret and show the new value once.
Use a credential with webhooks:manage and a fresh Idempotency-Key. An equal retry returns the
current endpoint without a secret. The old secret is retired immediately. A request already
transmitted may arrive with its previous signature. An absent or foreign endpoint returns
404 not_found. Reusing a rotation key for another endpoint returns 409 idempotency_conflict.
Required permission: webhooks:manage. Accepted credentials: a signed-in administrator, an API key, the account token.
curl --request POST \
--url https://omni-api.sendblue.com/admin/webhooks/{webhook_id}/rotate_secret \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://omni-api.sendblue.com/admin/webhooks/{webhook_id}/rotate_secret', 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}/rotate_secret"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "881e85ab-1007-46bf-8fed-75bd85a2033c",
"url": "https://hooks.acme.com/omni",
"events": [
"message.delivered"
],
"enabled": true,
"created_at": "2026-11-23T18:04:05.000000Z",
"updated_at": "2026-11-23T18:04:05.000000Z"
}{
"id": "881e85ab-1007-46bf-8fed-75bd85a2033c",
"url": "https://hooks.acme.com/omni",
"events": [
"message.delivered"
],
"enabled": true,
"created_at": "2026-11-23T18:04:05.000000Z",
"updated_at": "2026-11-23T18:04:05.000000Z",
"secret": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBA"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
Headers
Response
Metadata from an equal retry.
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