Webhook events
Your webhook endpoint receives a JSON payload whenever a supported message event occurs on the channel. Use event.type to choose how your application handles the delivery.
Event types
Use the message object, including its sender and lifecycle timestamps, to determine the direction and current state of a message.received event.
Example payload
Fields such as sender, media, quoted_message, and forwarded_message are included when they apply to the message.
Payload fields
Message lifecycle fields
The message object contains timestamps that help your application update its local state:
Timestamps are ISO 8601 strings or null when that lifecycle stage has not occurred.
Handling events
Webhook deliveries can arrive more than once or out of order. Store message.id, compare event.occurred_at with the state you have already processed, and make each handler idempotent.
Use the signing instructions in Set up a webhook to verify that deliveries came from Zorvia.
