Webhooks
Update Webhook
Update a webhook subscription’s URL, subscribed events, signing secret, or active status without recreating it.
PATCH
Update a webhook
Updates a registered webhook subscription. You can change the delivery
url, add or remove events, rotate the signing secret, or toggle is_active to temporarily pause delivery. Only the fields you include are updated, omitted fields keep their current values. The subscription’s id does not change, so consumers can continue to reference the same webhook ID after the update.
When to use this
- URL change: your consumer service moved to a new host or path.
- Adding events: you started building a feature that needs an additional event type and want it delivered to the existing endpoint.
- Removing events: your consumer no longer cares about a particular event and you want to stop the unnecessary deliveries.
- Secret rotation: your signing secret leaked, expired, or you are on a periodic rotation cadence.
- Temporary pause: you want to stop receiving events without losing the subscription. Set
is_activetofalse, then back totruelater. If you do not plan to re-enable, use Delete Webhook instead.
Rotating the signing secret
When you pass a newsecret value, DialNexa starts signing with the new secret on the very next delivery. There is no overlap period during which both the old and new secrets are accepted. To rotate safely:
- Update your consumer service to accept both the old and new secret during a transition window.
- Send the new secret to DialNexa through this endpoint.
- Confirm new deliveries are being verified with the new secret.
- Remove the old secret from your consumer service.
Path parameters
| Parameter | Description |
|---|---|
id | The webhook ID, for example whk_c9v3nz8rq4pm. |
Body parameters
| Field | Description |
|---|---|
url | New delivery URL. |
events | Full new list of subscribed event types. Replaces the existing list. |
secret | New signing secret. Rotation takes effect immediately. |
is_active | Toggle the subscription on or off. |
Errors
404 Not Foundis returned when the webhook does not exist.400 Bad Requestis returned when the URL is malformed or an event type is unknown.
Request
Response
Related endpoints
- List Webhooks: review every webhook on the workspace.
- Delete Webhook: permanently remove a subscription.
- Webhook secrets: verification format.
- Webhook retries and failures: how DialNexa handles delivery failures.
Authorizations
Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Update a webhook