Update webhook
Update the configuration of an existing webhook
Overview
Partially updates a webhook’s configuration. Only the fields sent in the body are updated — the rest remain unchanged.Updating events
When sending theevents field, the list replaces all existing events:
Enabling or rotating HMAC signing
If you sendsigning: true, a new secret is generated and returned in this response. Use this also to rotate the secret without recreating the webhook.
Temporarily disabling
DISABLED. To reactivate:
webhookId is obtained from the Create webhook or List webhooks endpoint.Authorizations
Secret Key generated in the Hub Message Security panel
Path Parameters
Channel ID
"019E4C54B1B375A28970B605CA9B03C3"
Webhook ID
"A1B2C3D4E5F6789012345678901234AB"
Body
All fields are optional — only the fields sent are updated.
New destination URL
"https://new-url.yourcompany.com/webhooks/hubmessage"
New description
New event list — replaces all existing events
MESSAGE_RECEIVED, MESSAGE_DELIVERY, MESSAGE_STATUS, RECEIVED_STATUS, RECEIVED_AND_DELIVERY, CONNECTED, DISCONNECTED, PRESENCE_CHAT, INITIAL_DATA, BLOCK DISABLED pauses event delivery without deleting the webhook
ENABLED, DISABLED Enables or rotates the HMAC signature. Generates a new secret returned in the response.
Configures how Hub Message authenticates when calling your URL
DEFAULT, Z_API Response
Webhook updated successfully. The secret field is returned only when signing was enabled in this update.
Unique webhook ID
"A1B2C3D4E5F6789012345678901234AB"
ID of the channel this webhook belongs to
"019E4C54B1B375A28970B605CA9B03C3"
Event destination URL
"https://app.yourcompany.com/webhooks/hubmessage"
Webhook description
"Main production webhook"
Configured event types
["MESSAGE_RECEIVED", "MESSAGE_STATUS"]Current webhook status
ENABLED, DISABLED "ENABLED"
Indicates whether HMAC signing is enabled
true
Summary of configured authentication — credentials are not returned for security
Delivered payload format
DEFAULT, Z_API "DEFAULT"
Configured extra attributes
{}Creation date
"2025-01-15T10:30:00.000+0000"
Last update date
"2025-01-15T10:30:00.000+0000"
64-character hex HMAC secret — returned only when signing is enabled on create or update. Store it securely; it cannot be retrieved later.
"a3f1c2d4e5b6789012345678901234abcdef0123456789abcdef0123456789ab"