Skip to main content
Version: /v2

Fetch a Room - API

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

HTTP method and endpoint

GET

|

https://api.videosdk.live/v2/rooms/${roomId}
Headers Parameters

values : YOUR_TOKEN_WITHOUT_ANY_PREFIX

This will be a JWT token generate using VideoSDK ApiKey and Secret.

Note that the token will not include any prefix such as "Basic " or "Bearer ". Just pass a token as value.

You can generate a new token by refering this Guide: Generate Auth token

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",
"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/"
}
}

Got a Question? Ask us on discord