client.Webhooks to receive VZaps events via HTTP callbacks in your application.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
InstanceID | string | Yes | Instance ID. |
InstanceToken | string | Yes | Instance token. |
Webhooks.Get(ctx, instanceID, options)
Reads the current webhook configuration.
{ code, success, data } with webhook and subscribe (events).
Webhooks.Set(ctx, req)
Sets the callback URL and subscribed events.
{ code, success, data } with configured webhook and events.
| Field (JSON) | Go field | Required | Description |
|---|---|---|---|
webhook_url | WebhookURL | Yes | Public URL that receives callbacks. |
events | Events | No | Subscribed events. |
Message, ReadReceipt, Connected, Disconnected, Presence, ChatPresence, HistorySync, GroupParticipantsAdd, GroupParticipantsRemove, All.
Webhooks.SearchLogs(ctx, req)
Searches webhook delivery logs.
{ code, success, data } with paginated logs (content[], totals).
For advanced filters such as status, use client.Request() with the search endpoint body from the API reference.
Webhooks.GetLog(ctx, req)
Reads one specific delivery log.
{ code, success, data } with one delivery log (status, payload, attempts, etc.).
Webhooks.RetryLog(ctx, req)
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.

