Skip to main content

Post a chat message

POST 

/api/rooms/:roomId/messages

Saves a chat message to the room history and returns the stored message with the sender's identity and display name. Live delivery to connected peers goes over the LiveKit data channel, not this call. text is trimmed and cut to 500 characters. A client-generated id (6 to 64 letters, digits, _ or -) makes retries safe: posting an existing id in the same room returns the stored message; without one, the server generates an id. The room creator and members whose role has the chat permission (every role) may call it. Guests send guestId and name.

Empty text returns 400.

Request​

Responses​

Stored message.