Skip to content

Session Webhook Data DTO Reference

The NjoguAmos\Waha\Dto\SessionWebhookData contains webhook configuration.

urlstring

The webhook URL.

php
$webhook->url; // "https://example.com/webhook"

eventsarray

An array of events that trigger the webhook.

php
$webhook->events; // ["message", "session.status"]

hmacSessionWebhookHmacData|null

The HMAC secret configuration for webhook signature verification.

php
$webhook->hmac; // Instance of SessionWebhookHmacData

retriesSessionWebhookRetryData|null

The retry policy configuration for failed webhook deliveries.

php
$webhook->retries; // Instance of SessionWebhookRetryData

customHeadersSessionWebhookCustomHeaderData[]|null

An array of custom headers to include in the webhook request.

php
$webhook->customHeaders; // Array of SessionWebhookCustomHeaderData objects

Released under the MIT License.