List messages

GET/chat-rooms/:roomId/messages

List the room's messages using cursor-based pagination. Only room members can access it.

AuthLogin required

Path parameters

roomIdstringrequired

Chat room ID.

Query parameters

limitnumber

Number of messages to fetch (max 100). Default 50.

cursorstring

The nextCursor from a previous response; pages backwards through history.

Response

FieldTypeDescription
messagesMessage[]Array of messages (newest first)
nextCursorstring | nullCursor for the next page, or null.
Request
curl https://api.4s.link/chat-rooms/ROOM_ID/messages \
-H "Authorization: Bearer 4s_at_..."
Example response
{
"messages": [
{
"id": "m1a2b3c4-...",
"type": "USER",
"content": "よろしくお願いします",
"imageUrl": null,
"createdAt": "2026-08-18T00:00:00.000Z",
"user": { "id": "a1b2c3d4-...", "slug": "taro", "firstName": "太郎", "lastName": "山田", "avatarUrl": "https://.../avatar.png" }
}
],
"nextCursor": "m0z9y8x7-..."
}