Chat
Mark messages as read
PUT
/chat-rooms/:roomId/readMark the room's messages as read, resetting the unread count to zero.
| Auth | Login required |
|---|
Path parameters
roomIdstringrequiredChat room ID.
Response
| Field | Type | Description |
|---|---|---|
chatRoomId | string | Chat room ID. |
lastReadAt | string | The time marked as read (ISO 8601). |
unreadCount | number | Unread count after marking as read. |
Request
curl https://api.4s.link/chat-rooms/ROOM_ID/read \-X PUT \-H "Authorization: Bearer 4s_at_..."
Example response
{"chatRoomId": "r1a2b3c4-...","lastReadAt": "2026-08-18T00:00:00.000Z","unreadCount": 0}