Send a message
Sends a message to a channel. Requires channelId and text. channelId must be a bare UUID (do not include the GetStream ‘messaging:’ prefix). When senderId is provided it must be a member of the channel; otherwise the authenticated user is used as the author.
Authorizations
Body
Message to send
ChannelID identifies the channel the message is sent to. Required. Must be a bare UUID and must not include the GetStream 'messaging:' prefix.
"550e8400-e29b-41d4-a716-446655440000"
Text is the body of the message. Required. Limited to 5000 characters by GetStream.
"Thanks for the update, I'll review the contract today."
SenderID optionally overrides the author of the message. When omitted, the authenticated user is used. When set it must be the UUID of a member of the channel.
"550e8400-e29b-41d4-a716-446655440001"
Response
OK
ChannelID is the channel the message belongs to (bare UUID, without the GetStream 'messaging:' prefix).
"550e8400-e29b-41d4-a716-446655440000"
IsAttachmentIncluded indicates whether the message has one or more attachments.
false
Object is the resource type discriminator, always "message".
"message"
SenderID is the UUID of the member who authored the message.
"550e8400-e29b-41d4-a716-446655440001"
Text is the body of the message. Empty when the message only carries attachments.
"Thanks for the update, I'll review the contract today."