Message Endpoints
List Messages
skip(integer): Number of messages to skip (default: 0)limit(integer): Maximum number of messages to return (default: 50)
Get Pinned Messages
page(integer): Page number for pagination (default: 1, 20 items per page)
Post Message
content(string, required): Message text contentreply_to_id(string, optional): ID of message being replied toparent_id(string, optional): ID of thread parent messagedata(object, optional): Additional message data (files, etc.)meta(object, optional): Message metadatatemp_id(string, optional): Temporary client-side ID for optimistic updates
Get Single Message
Get Message Data
Get Thread Replies
skip(integer): Number of replies to skip (default: 0)limit(integer): Maximum number of replies to return (default: 50)
Update Message
content(string, required): Updated message textdata(object, optional): Updated message datameta(object, optional): Updated metadata
- Users can update their own messages
- Admins and users with write access can update any message in the channel
- Updates trigger real-time socket events to all channel members
Pin/Unpin Message
is_pinned(boolean, required):trueto pin,falseto unpin
Add Reaction
name(string, required): Emoji or reaction name
Remove Reaction
name(string, required): Emoji or reaction name to remove
Delete Message
- Users can delete their own messages
- Admins and users with write access can delete any message
- Deleting a message with replies will keep the replies but remove the parent content
- Emits real-time socket events to notify all channel members
Message Object Schema
Real-time Updates
All message operations emit real-time events via WebSocket to channel members:message- New message postedmessage:update- Message editedmessage:delete- Message deletedmessage:reply- New reply in threadmessage:reaction:add- Reaction addedmessage:reaction:remove- Reaction removed
Model Mentions
Messages can mention AI models using the@model_id syntax. When a model is mentioned:
- The model automatically responds to the message
- Thread history is included in the modelβs context
- Images from thread messages are processed
- Response is posted as a new message with model metadata