v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Chats

Create

Send a chat message from a user to another user.

post/public/api/chats

Headers

Acceptstring

e.g. application/json

Request body

sender_idstring
recipient_idstring
textstring
attachmentsstring

Example request

{
  "sender_id": "54ab03c6546847ee0d30086a",
  "recipient_id": "54ab03c6546847ee0d30086b",
  "text": "Hello, how are you?",
  "attachments": "https://assets.yoobic.com/image/upload/v1/file.jpg"
}

Response

Created

sender_idstring
recipient_idstring
textstring
attachmentsstring
created_datestring

Example response

{
  "sender_id": "54ab03c6546847ee0d30086a",
  "recipient_id": "54ab03c6546847ee0d30086b",
  "text": "Hello, how are you?",
  "attachments": "https://assets.yoobic.com/image/upload/v1/file.jpg",
  "created_date": "2025-12-29T10:00:00.000Z"
}