ConversationUnread event fires each time the unread state of a conversation changes — for example, when a new inbound message marks a conversation as unread, or when a user reads a conversation and the count returns to zero. Use it to drive notification badges, sync read/unread state to external helpdesk tools, or trigger follow-up workflows when conversations go unattended.
Payload
| Field | Type | Description |
|---|---|---|
type | string | Always "ConversationUnreadWebhook" |
locationId | string | Sub-account ID where the conversation lives |
id | string | Unique identifier of the conversation |
contactId | string | ID of the contact associated with the conversation |
unreadCount | number | Current number of unread messages in the conversation; 0 means the conversation has been read |
inbox | boolean | Whether the conversation is currently in the inbox view |
starred | boolean | Whether the conversation has been starred by a user |
deleted | boolean | Whether the conversation has been deleted |
Example payload
Related
- Inbound Message — fires when a contact sends a message, which typically increments the unread count
- Outbound Message — fires when a user sends a message to a contact
- Conversations API — query conversations and messages programmatically
.png?fit=max&auto=format&n=EQK5eX9kTD8NzWwA&q=85&s=878008bf159fcc4964d0c0d508b6e400)