Skip to main content
POST
/
v1
/
chats
/
{id}
/
messages
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "chatId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "senderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "content": "<string>",
  "type": "<string>",
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "readBy": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}

Path Parameters

id
string<uuid>
required

Body

application/json
content
string
required
type
enum<string>
required
Available options:
text,
image,
file
metadata
object

Response

201 - application/json

Message sent successfully

id
string<uuid>
chatId
string<uuid>
senderId
string<uuid>
content
string
type
string
metadata
object
createdAt
string<date-time>
readBy
string<uuid>[]