Api::V1::Tours::ChatMessagesController API

Chat messages

Get chat_messages

GET /api/v1/tours/:tour_id/chat_messages

Parameters

Name Description
token token
tour_id tour

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

GET /api/v1/tours/9/chat_messages?token=foobar141

Query Parameters

token: foobar141

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE
Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY
Content-Type: application/json; charset=utf-8
ETag: W/"2a417da13ca9ab804486c72ffd814c91"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 0ae46bed-0ecd-47c6-ae84-34cfb0e630f8
X-Runtime: 0.012539
Content-Length: 191

Status

200 OK

Body

{
  "chat_messages": [
    {
      "id": 10,
      "content": "MyText",
      "user": {
        "id": 142,
        "avatar_url": null,
        "display_name": "John D.",
        "partner": null
      },
      "created_at": "2022-06-02T17:16:45.982+02:00",
      "message_type": "text"
    }
  ]
}