client.webhooks to receive VZaps events via HTTP callbacks in your application.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
instance_id | string | Yes | Instance ID. |
instance_token | string | Yes | Instance token. |
client.webhooks.get(instance_id, instance_token=...)
Reads the current webhook configuration.
{ code, success, data } with webhook and subscribe (events).
client.webhooks.set(...)
Sets the callback URL and subscribed events.
{ code, success, data } with configured webhook and events.
| Field | Type | Required | Description |
|---|---|---|---|
webhook_url | string | Yes | Public URL that receives callbacks. |
events | list[str] or str | No | Subscribed events. |
Message, ReadReceipt, Connected, Disconnected, Presence, ChatPresence, HistorySync, GroupParticipantsAdd, GroupParticipantsRemove, All.
client.webhooks.search_logs(...)
Searches webhook delivery logs.
{ code, success, data } with paginated logs (content[], totals).
client.webhooks.get_log(...)
Reads one specific delivery log.
{ code, success, data } with one delivery log (status, payload, attempts, etc.).
client.webhooks.retry_log(...)
Retries a failed delivery.
{ code, success, data } confirming callback retry.
When to use webhooks
Use webhooks when:- your application already has a public URL for callbacks;
- you want to process events asynchronously in the backend;
- your integration pipeline already works with HTTP POST.

