/
LE
legend
/
Legend API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Subscribe
legend
Legend API
post
Send a message to a chat room (creates room lazily if needed)
v5
latest
OpenAPI 3.1.0
2026-08-08
241
232
1010.2 KB
chat
Send a message to a chat room (creates room lazily if needed)
post
/v1/chat/messages
Request body
object
required
messageType
'text'
|
'audio'
required
content
string
nullable
clientMessageId
string
required
attachmentIds
string[]
replyToId
string
uuid
type
'duel'
|
'group'
|
'swap'
|
'dm'
|
'post'
|
'clan'
required
roomId
string
channelName
string
user1Id
string
user2Id
string
name
string
memberIds
string[]
groupId
string
tokenId
string
duelId
string
postId
string
clanId
string
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