Skip to main content
POST
/
v1
/
chats
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "<string>",
  "participants": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "lastMessage": {
    "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"
    ]
  },
  "unreadCount": 123,
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
type
enum<string>
required
Available options:
direct,
group
participants
string<uuid>[]
required
metadata
object

Response

201 - application/json

Chat created successfully

id
string<uuid>
type
string
participants
string<uuid>[]
lastMessage
object
unreadCount
integer
metadata
object
createdAt
string<date-time>
updatedAt
string<date-time>