Skip to main content
Version: /v2

Validate a Room

This API lets you validate the provided roomId or customRoomId.
Parameters
REQUIRED

Your roomId or customRoomId.

GET
|
https://api.videosdk.live/v2/rooms/validate/${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/validate/${roomId}`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"roomId": "abc-xyzw-lmno",
"customRoomId": "demo-room",
"userId": "5f7edbb14c938bcd42944527",
"disabled": false,
"createdAt": "2022-03-24T11:12:12.619Z",
"updatedAt": "2022-03-24T11:12:12.619Z",
"id": "623c520c6b0631c41cc98e81",
"links": {
"get_room": "https://api.videosdk.live/v2/rooms/abc-xyzw-lmno",
"get_session": "https://api.videosdk.live/v2/sessions/"
}
}