Chat & Messaging
Chat & Messaging
1:1 DMs, group chat, reactions, and message history
Overview
The Chat resource provides real-time messaging with support for 1:1 direct messages, group conversations, message reactions, editing, threading, and read receipts.
All chat methods are available on r.chat.
Methods
List conversations
Returns: PaginatedResponse<Conversation>
Get a conversation
Get community conversation
Start a DM
Get or create a direct message conversation with another user. If a DM already exists, it returns the existing conversation.
Create a group
Send a message
Input fields:
Reply to a message
List messages
Messages are returned newest first.
Returns: PaginatedResponse<Message>
React to a message
Reactions toggle: if you already reacted with the same type, it is removed. If you reacted with a different type, it is replaced.
Edit a message
Only the sender can edit their own messages.
Delete a message
Only the sender can delete their own messages.
Delete a conversation
Only the creator can delete a conversation.
Read receipts
Mark as read
Mark a conversation as read up to a specific message: