Skip to main content
Version: /v2

Fetch a Room

This API lets you fetch a particular room info by passing roomId or customRoomId as parameter.
Parameters
REQUIRED

Your roomId or customRoomId.

GET
|
https://api.videosdk.live/v2/rooms/${roomId}
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
};
const roomId = "your_roomId";
const url= `https://api.videosdk.live/v2/rooms/${roomId}`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"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": "john@videosdk.live",
"name": "John",
"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/"
}
}