*** id: 93d9ce71-4443-49f4-8a76-ea38b84b4161 title: getRecordings slug: /js/reference/video/room-session/get-recordings description: getRecordings method for the RoomSession class. max-toc-depth: 3 ---------------- ### getRecordings * **getRecordings**(): `Promise<{ recordings: RoomSessionRecording}>` - See [RoomSessionRecording documentation](/docs/browser-sdk/v3/js/reference/video/room-session-recording) for more details. Obtains a list of recordings for the current room session. To download the actual mp4 file, please use the [REST API](/docs/apis). #### Returns `Promise<{ recordings: RoomSessionRecording}>` - See [RoomSessionRecording documentation](/docs/browser-sdk/v3/js/reference/video/room-session-recording) for more details. #### Permissions * `room.recording` You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side. #### Example ```javascript const recs = await roomSession.getRecordings(); if (recs.recordings.length > 0) { console.log(recs.recordings[0].id, recs.recordings[0].duration); } ``` From your server, you can obtain the mp4 file using the [REST API](/docs/apis): ```bash curl --request GET \ --url https://.signalwire.com/api/video/room_recordings/ \ --header 'Accept: application/json' \ --header 'Authorization: Basic ' ```