Skip to main content
chat represents one conversation with one contact on one channel account. Chats are returned by Search Chats, Get Chat by Chat ID (trimmed public view), chat-management endpoints, and inside every chat-related webhook payload.
Time units differ by field naming: fields ending in Timestamp / _timestamp are epoch milliseconds; fields ending in UpdateTime / MessageTime (and replyAction.created) are epoch seconds; created, updatedAt and unsubscribed.date are ISO date-time strings.
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.
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 by status, 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.