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/813/messages
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTI3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDAxLCJleHAiOjE3NjYyMTg0MDEsImp0aSI6ImE1ZDJmNzZkLWM2MzItNDQxOC05MWQ2LWNkZjg1NWUwYmFjOCJ9.t6TcfMBQyTtSreJcQ8A0uuPTz6unFJ5Fhw4bieWEBlY
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/"24c03704c5bc7e2ead57389fb6fe504b"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7142da7d-d6f2-44c5-bde5-d181fab69dd0
x-runtime: 0.019303
content-length: 283
Body
{
"messages": [
{
"id": 27,
"created_at": "2025-11-20T08:13:21.263Z",
"files": [
],
"sender_full_name": "Allan Strosin",
"sender_id": 72,
"text": "Second message"
},
{
"id": 26,
"created_at": "2025-11-20T08:13:21.254Z",
"files": [
],
"sender_full_name": "Allan Strosin",
"sender_id": 72,
"text": "First message"
}
]
}