Returned by: Search Chats · Get Chat by Chat ID · Update Chat Properties · Update CRM Data · Webhook events
Example chat object
Identity & contact
Channel
Status & routing
Last message
Bot session
botState holds the active or most recent bot session; previousBotSession holds the one before it (same shape). Both can be null, and may carry additional bot-specific keys.
Reply action
The pending action that runs when the contact replies to a template message.null when no reply action is armed. Set by template defaults or the Send Template Message replyAction parameter.
Template subscription & bulk
CRM
Lifecycle
Deprecated fields
These may still appear in responses but should not be used in new code.Show deprecated fields
Show deprecated fields
Get Chat by ID returns a trimmed view. Get Chat by Chat ID returns only the public subset of these fields (no
_id, labels, crmData or displayName; botState narrowed to its id) plus lastMessageTimestamp (milliseconds). Use Search Chats for the complete record.Chat status values
Used bystatus, template chatStatus, replyAction.chatStatus and newChatStatus on system messages. The statuses[] filter of Search Chats takes the names, not the numbers.
More enums and the ID cheat sheet: Enums & Common Fields.