OptionalaclAccess control list for private messages (grants with read action). Only returned to resource owners (and privileged/org-admin viewers) via server-side field_redactions: [acl: :owner]; null for everyone else.
OptionalactorsResolved actor descriptors for the message sender, combining identity and display metadata. Always contains exactly one entry.
OptionalagentID of the agent user that sent this message (agi_...). null for messages sent by human users.
Optionalagent_Local agent execution mode for this message. One of cli, embedded, or null when the message was not created by a local agent execution path.
OptionalattachmentsFiles, links, tasks, media, artifacts, and actions attached to this message. Empty array if there are no attachments.
Optionalbranched_ID of the thread that was branched from this message (thr_...). null if this message has not spawned a branch thread.
OptionalcontentText content of the message. null for messages that contain only attachments.
OptionalcontextImmutable structured context captured when the message was posted. Each entry has type, optional title and content, and scalar attributes. Always present; defaults to an empty array. Context is delivered to agents as escaped XML data, not as system instructions.
Optionalcreated_When the message was posted (ISO 8601).
Optionalhas_Whether this message has at least one reply. Only present when explicitly requested or computed by the server.
Message ID (msg_...).
Optionalidempotency_Client-supplied idempotency key used to deduplicate message sends. null if the sender did not provide one.
Optionalis_Whether this message is a deletion tombstone. true only on the message_updated broadcast emitted when a message is deleted: the original content is replaced with a placeholder and the message no longer exists on the server. Always false for live messages.
Optionallegacy_Identifier of the legacy chat agent that sent this message, if applicable. null for messages sent by users or modern agent users.
OptionalmetadataArbitrary key-value metadata attached to the message. Always present; defaults to an empty object when no metadata has been set.
OptionalorgID of the organization that owns this message (org_...).
OptionalreactionsEmoji and other reactions added to this message by users. Empty array if no reactions have been added or the association is not preloaded.
Optionalrendering_Display hint for how the message should be rendered. One of "reply", "direct", or "inline". null for user-authored messages, which are always rendered as standard replies.
OptionalrepliesInline array of reply messages, each serialized as a full message object. Only present when the server has preloaded replies for this message.
Optionalreplies_Opaque pagination cursor to fetch replies posted after the current page. Only present when inline replies are included in the response.
Optionalreplies_Opaque pagination cursor to fetch replies posted before the current page. Only present when inline replies are included in the response.
Optionalreply_Total number of direct replies to this message. Only present when explicitly requested or computed by the server.
Optionalreply_The parent message this message is a reply to, expanded as a full message object when loaded. null if this is a top-level message or the association is not preloaded.
Optionalroot_ID of the root message in this reply chain (msg_...). null for a top-level message. The value is persisted when the reply is created, so callers can correlate a multi-turn session without walking parent messages.
OptionalsandboxID of the developer sandbox this message belongs to (dsb_...). null for non-sandbox messages.
OptionalteamID of the team this message is scoped to (tem_...). null if the message is not team-scoped.
OptionalthreadID of the thread this message belongs to (thr_...).
OptionaltypeOptional client-defined classification for the message (for example note or status). Free-form string up to 64 characters. The value system is reserved for platform-authored messages and cannot be set by clients. null when unset.
OptionaluserThe human user who sent this message. Returns a public ID string (usr_...) when the association is not preloaded, or an expanded user object when it is. null for messages sent by agents.
OptionalvisibilityMessage-level visibility. default is visible to anyone who can see the parent thread. private is restricted to the sender and explicit ACL read grantees.
A chat message posted in a thread, including its content, author, attachments, reactions, and optional reply metadata.