Send a new message in an experience chat, DM, or group chat channel. Supports text content, attachments, polls, and replies.
Required permissions:
chat:message:createA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Parameters for CreateMessage
The unique identifier of the channel or experience to send the message in. For example, 'exp_xxxxx' or 'feed_xxxxx'.
The body of the message in Markdown format. For example, 'Hello world'.
A list of file attachments to include with the message, such as images or videos.
A poll to attach to this message, allowing recipients to vote on options.
The unique identifier of the message this is replying to, creating a threaded reply.
A successful response
A message sent within an experience chat, direct message, or group chat.
Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.
The message content formatted as Markdown. Null if the message has no text content.
"Hey, are you available for a **quick call**?"
The timestamp when this message was originally created.
"2023-12-01T05:00:00.401Z"
The timestamp when this message was last modified.
"2023-12-01T05:00:00.401Z"
A poll attached to this message. Null if the message does not contain a poll.
The unique identifier of the message this post is replying to. Null if this is not a reply.
Whether the message content has been edited after it was originally sent.
Whether this message is pinned to the top of the channel for easy access.
The classification of this message: regular, system, or automated.
regular, system, automated The user who authored this message.
The number of unique views this message has received. Null if view tracking is not enabled for this channel.
42
Aggregated reaction counts on this message, filtered to a specific reaction type.
Aggregated reaction counts on this message, filtered to a specific reaction type.