Chat

Search chat thread

Searches for a message in the chat thread.

post/chat/{chatRoom}/search

Request

  • Base URL: http://bonzo.site/api/v3
  • URL: http://bonzo.site/api/v3/chat/{chatRoom}/search
  • 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"
        }
      }
    }
  ],
  "links": {
    "first": "https://example.com?page=1",
    "last": "https://example.com?page=3",
    "next": "https://example.com?page=2"
  },
  "meta": {
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "active": false
      },
      {
        "url": "https://example.com?page=1",
        "label": 1,
        "active": true
      },
      {
        "url": "https://example.com?page=2",
        "label": 2,
        "active": false
      },
      {
        "url": "https://example.com?page=2",
        "label": "Next »",
        "active": false
      }
    ],
    "path": "https://example.com"
  }
}

Changes

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