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/777/messages
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTA3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjE0LCJleHAiOjE3NTU4NTgyMTQsImp0aSI6Ijc3NDNiMTliLWMzYTktNGYxMS05OTUwLThiZThhZTFmZWU3NSJ9.ubi-GcGSBmW886YZnV_kHOARlqED5rW_7aMBHW4FgtQ
Host: example.org
Cookie:
Query Parameters
{}=
Body
{
}
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/"0adfd7186a94175e673faf99c01c60f0"
cache-control: max-age=0, private, must-revalidate
x-request-id: a067306d-80b7-40b7-960a-20b3aa3b438b
x-runtime: 0.017455
content-length: 289
Body
{
"messages": [
{
"id": 27,
"created_at": "2025-07-23T10:23:34.892Z",
"files": [
],
"sender_full_name": "Luna Breitenberg",
"sender_id": 72,
"text": "Second message"
},
{
"id": 26,
"created_at": "2025-07-23T10:23:34.880Z",
"files": [
],
"sender_full_name": "Luna Breitenberg",
"sender_id": 72,
"text": "First message"
}
]
}