Skip to content

PWA Webchat Events

When you use PWA Chat App & Chat Link, the platform sends webhook events for every customer interaction from the moment the link is clicked until the chat room session is closed.


Event Name (event)When It Is Sent
pwa_redirect_clickedWhen the customer opens the short chat link URL and is redirected to the PWA chat room.
pwa_session_startedWhen a PWA chat room session is successfully initialized on the customer’s browser.
pwa_message_receivedWhen the customer sends an incoming message from the PWA chat room.
pwa_message_sentWhen an agent or automation bot sends an outgoing message to the customer’s PWA chat room.
pwa_push_deliveredWhen a Web Push notification is successfully delivered to a customer’s device subscribed to PWA notifications.
pwa_session_closedWhen a PWA chat room session ends due to expiration or being closed.

{
"event": "pwa_session_started",
"tenant_id": "0195f2a0-1234-7000-8000-000000000001",
"timestamp": "2026-11-04T11:00:00Z",
"data": {
"link_id": "0195f2c0-1111-7000-8000-000000000022",
"session_id": "0195f2c1-2222-7000-8000-000000000033",
"conversation_id": "0195f2a9-0000-7000-8000-000000000045",
"contact_id": "0195f2a5-0000-7000-8000-000000000012",
"phone": "+6281234567890",
"expires_at": "2026-11-05T11:00:00Z"
}
}
FieldTypeDescription
eventstringPWA event name (pwa_redirect_clicked, pwa_session_started, pwa_message_received, pwa_message_sent, pwa_push_delivered, pwa_session_closed).
data.link_idstring (UUID)The one-time chat link ID created via /v1/webchat/links or automation step Create chat link.
data.session_idstring (UUID)The PWA chat room session ID.
data.conversation_idstring (UUID)Conversation ID in Inbox.
data.contact_idstring (UUID)The customer contact ID attached to the chat link.
data.message_idstring (UUID)Specific to pwa_message_received and pwa_message_sent: The ID of the message sent or received.