List all messages in chat
Messages
GET messages
Endpoint
GET /api/v1/chats/:chat_id/messages
Parameters
Name | Description |
---|---|
page | Page number |
per_page | Number of items per page |
Request
Route
GET /api/v1/chats/775/messages
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDg5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQyLCJleHAiOjE3NDUwNTY5NDIsImp0aSI6IjhjN2VkNmIzLWM1ZDQtNGFlYy1hZTQ3LTQ5M2NiN2E2OTFlMyJ9.2GzoLdSxDLI8zET_K5QvQHG4BsYQjavmgAZPzNdPx-E
Host: example.org
Cookie:
Query Parameters
{}=
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
per-page: 20
total: 2
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"dafc8360e45c424f0d3426d69d98de1e"
cache-control: max-age=0, private, must-revalidate
x-request-id: afb3950d-4321-4f39-ae93-86ac6cef71f4
x-runtime: 0.012766
content-length: 283
Body
{
"messages": [
{
"id": 27,
"created_at": "2025-03-20T10:02:22.982Z",
"files": [
],
"sender_full_name": "Nieves Paucek",
"sender_id": 72,
"text": "Second message"
},
{
"id": 26,
"created_at": "2025-03-20T10:02:22.976Z",
"files": [
],
"sender_full_name": "Nieves Paucek",
"sender_id": 72,
"text": "First message"
}
]
}