List messages
GET
/chat-rooms/:roomId/messagesList the room's messages using cursor-based pagination. Only room members can access it.
| Auth | Login required |
|---|
Path parameters
roomIdstringrequiredChat room ID.
Query parameters
limitnumberNumber of messages to fetch (max 100). Default 50.
cursorstringThe nextCursor from a previous response; pages backwards through history.
Response
| Field | Type | Description |
|---|---|---|
messages | Message[] | Array of messages (newest first) |
nextCursor | string | null | Cursor 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-..."}