Create or Update Webhook
Webhooks
Create Webhook
Create a new webhook endpoint, or update an existing webhook by passing its id.
POST
Create or Update Webhook
Create a webhook endpoint for your Wachat account.
Webhooks can listen to all instances or only one specific
To receive events from all instances, omit
using your webhook secret.
apiInstanceName.
Supported events:
instanceName.
Delivery Headers
Every webhook delivery includes these headers:X-Wachat-Signature is an HMAC-SHA256 signature of:
The webhook URL must use HTTPS. The secret is returned when creating/updating a webhook. Store it securely.
Authorizations
Authenticate your integration payloads by injecting your premium secure Wachat Account API Private Secret Key inside standard Authorization Bearer header vectors.
Body
application/json
HTTPS endpoint that will receive Wachat webhook deliveries.
Example:
"https://example.com/wachat/webhook"
Existing webhook id. Include this to update a webhook.
Example:
12
Example:
"Production webhook"
Available options:
*, messages.upsert, messages.update, contacts.update, chats.update, qrcode.updated, connection.update Example:
["messages.upsert", "connection.update"]Optional API instance name. Omit this to receive events for all instances in the account.
Example:
"t1_mq9r2jov_jakarta_store"
Example:
true
Optional custom webhook secret. If omitted, Wachat generates one.
Example:
"whsec_your_custom_secret"
