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/772/messages
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDg2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDY4LCJleHAiOjE3NjM1NDI0NjgsImp0aSI6ImFjNTFiM2Q2LWNkYWMtNGFmOC05NzNiLTRmYmNlY2Y0MDMwNyJ9.XC2cu1xmzGfNicxMjUj2_hkRTRlhAbDvwfXxC39uFek
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/"d8530a8274f6be17be200f050dbf609c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6fbc7ab3-1d2c-40c0-8ee2-6c16ebe574cb
x-runtime: 0.012499
content-length: 291
Body
{
"messages": [
{
"id": 27,
"created_at": "2025-10-20T08:54:28.289Z",
"files": [
],
"sender_full_name": "Joaquin Romaguera",
"sender_id": 72,
"text": "Second message"
},
{
"id": 26,
"created_at": "2025-10-20T08:54:28.283Z",
"files": [
],
"sender_full_name": "Joaquin Romaguera",
"sender_id": 72,
"text": "First message"
}
]
}