Skip to main content
Version: /v2

Fetch Rooms

This API lets you fetch all of your rooms.
Query Parameters
OPTIONAL

defaultValue : 1

Page number for the rooms.

OPTIONAL

defaultValue : 20

Number of rooms you want per page.

GET
|
https://api.videosdk.live/v2/rooms
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
};
const url= `https://api.videosdk.live/v2/rooms?page=1&perPage=20`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"pageInfo": {
"currentPage": 1,
"perPage": 1,
"lastPage": 5,
"total": 10
},
"data": [
{
"roomId": "abcd-efgh-lmno",
"customRoomId": "final-testing",
"region": "us001",
"disabled": false,
"createdAt": "2022-03-25T04:19:32.380Z",
"updatedAt": "2022-03-25T04:19:32.380Z",
"user": {
"email": "tech@zujo.io",
"name": "Zujonow",
"discontinuedReason": null,
"id": "5f7edbb14c938bcd42944527"
},
"id": "623d42d472498060cccb51f2",
"links": {
"get_room": "https://api.videosdk.live/v2/rooms/abc-xyzw-lmno",
"get_session": "https://api.videosdk.live/v2/sessions/"
}
}
]
}