Chat

Post a new message

Creates a new message in the chat thread and notifies all of the participants.

post/chat/{chatRoom}

Request

  • Base URL: http://bonzo.site/api/v3
  • URL: http://bonzo.site/api/v3/chat/{chatRoom}
  • Auth: HTTP bearer

Path parameters

chatRoomstring required
Example:1

Response

Success

Example response

{
  "data": [
    {
      "content": "Message content",
      "created_at": "2022-01-01T01:00:00.000000Z",
      "updated_at": "2022-01-01T01:00:00.000000Z",
      "sender": {
        "avatar_url": "https://via.placeholder.com/128x128",
        "email": "johndoe@example.com",
        "phone": "1112223333",
        "name": "John Doe"
      },
      "attachment": {
        "display_name": "my_avatar",
        "mime_type": "image/jpeg",
        "disk": "s3",
        "url": "https://via.placeholder.com/128x128",
        "additional_data": "null",
        "extension": "jpg"
      },
      "reaction": {
        "reaction": "thumb up",
        "user": {
          "name": "John Doe",
          "email": "johndoe@example.com",
          "phone": "1112223333",
          "avatar_url": "https://via.placeholder.com/128x128"
        }
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.