チャットルーム詳細
GET
/chat-rooms/:idチャットルームの詳細とメンバー一覧を返します。ルームのメンバーのみアクセスできます。
| 認証 | 要ログイン |
|---|
パスパラメータ
idstring必須チャットルーム ID。
リクエスト
curl https://api.4s.link/chat-rooms/ID \-H "Authorization: Bearer 4s_at_..."
レスポンス例
{"id": "r1a2b3c4-...","type": "GROUP","name": "Project Team","members": [{"id": "rm1a2b3-...","status": "JOINED","user": { "id": "a1b2c3d4-...", "slug": "taro", "firstName": "太郎", "lastName": "山田", "avatarUrl": "https://.../avatar.png" }}],"lastMessage": { "id": "m1a2b3c4-...", "content": "よろしくお願いします", "createdAt": "2026-08-18T00:00:00.000Z" },"unreadCount": 0}