Skip to main content
A ChatMessage represents a single message in a conversation. Messages support text content, GIF attachments, file attachments, @mentions, emoji reactions, threading (replies to a parent message), and quoting.

Properties

Client-only Fields

These fields are never sent by the server. They exist only in the SDK’s local state.

Nested Types

GifData

The gif field uses this shape when a GIF is attached:

Mention

Each entry in the mentions array is one of: UserMention SpaceMention

Soft Deletion

When a user deletes their own message, the row is retained as a placeholder. userDeletedAt is set and the content, GIF, mentions, and metadata are cleared by the server. This preserves thread structure — a deleted parent message still anchors its thread replies.
Moderator-removed messages (moderationStatus: "removed") are excluded from all default API responses. They are not returned to clients.