/
LE
legend
/
Legend API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Checked 12h ago · Updated 12h ago
View markdown
legend
Legend API
patch
Edit a chat message
427ccfd67e8d
latest
OpenAPI 3.1.0
2026-08-12
245
240
1.0 MB
app
1
arena
36
attachments
6
bug-reports
1
capital
1
chase-orders
3
chat
38
get
Get suggested new users to chat with
get
List messages in a chat room
post
Send a message to a chat room (creates room lazily if needed)
post
Get multiple messages by IDs
post
Forward a chat message to another room with an optional comment
delete
Soft delete a message
patch
Edit a chat message
patch
Pin or unpin a message
get
Get all pinned messages in a room
get
Search chat messages by text
post
Toggle a reaction on a message (add if not exists, remove if exists)
post
Toggle like on a message
get
List chat rooms the user is a member of
post
Create a new group chat room
get
Search sendable DM, group, and clan rooms by room or member name
get
List pending DM message requests
get
Get the global chat room
get
Get a user's chat room by ID
patch
Update a group chat room (name, image)
post
Atomically create group chat and send first message
post
Get or create a DM room with another user
post
Get presigned URL for group chat image upload
post
Add a member to a group chat
delete
Leave a group chat
delete
Remove a member from a group chat
post
Ban a member from a group chat
post
Unban a member from a group chat
get
List the user IDs currently banned from a group chat
patch
Update a member role in a group chat
post
Transfer ownership of a group chat to another member
post
Accept or decline a message request for a room
patch
Mute or unmute notifications for a chat room
post
Pin a chat room to the top of the current user’s list
post
Unpin a chat room for the current user
post
Archive a chat room for the current user
post
Unarchive a chat room for the current user
post
Hide a chat room ("delete for me", or for everyone on a DM)
post
Mark all messages in a chat room as read
clans
29
copy-trading
14
deposits
1
favorites
3
fills
1
following
13
friends
1
notifications
2
paper
1
portfolio
9
positions
8
posts
14
price-alerts
3
pusher
2
reports
1
search
4
season
2
telegram-account
2
tokens
3
trade-protection
2
trading
2
trailing-stops
4
transfers
1
user
31
users
1
withdrawals
1
x-account
4
chat
Edit a chat message
patch
/v1/chat/messages/{messageId}
Path parameters
messageId
string
uuid
required
Request body
object
required
content
string
nullable
Response
Successful response
ChatMessage
required
id
string
required
client_id
string
required
room_id
string
required
user_id
string
required
content
string
nullable
required
type
'text'
|
'audio'
|
'system'
required
created_at
string
required
user
PublicUser
required
attachments
ChatAttachment[]
required
reactions
object[]
{"stackTrail":"components:schemas:ChatMessage:properties:system_payload:anyOf","oasType":"schema","type":"unknown","nullable":true}
user_role
'owner'
|
'admin'
|
'member'
nullable
deleted_at
string
nullable
edited_at
string
nullable
pinned_at
string
nullable
pinned_by
PublicUser
mentioned_users
PublicUser[]
mentioned_symbols
string[]
link_preview
LinkPreview
quoted_post
BasePost
trading_metadata
object
nullable
reply_to_id
string
nullable
reply_to
ReplyToMessage
forwarded_from_id
string
nullable
forwarded_from
ForwardedFromMessage