Skip to main content
Version: /v2

Fetch All Resources - Beta API

This API lets you fetch all Resources.

HTTP method and endpoint

GET

|

https://api.videosdk.live/v2/resource
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

Query Parameters
OPTIONAL

defaultValue : 1

Page number for the resources

OPTIONAL

defaultValue : 20

Number of resources you want per page.

GET
|
https://api.videosdk.live/v2/resource
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
};
const url= `https://api.videosdk.live/v2/resource?page=1&perPage=20`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"pageInfo": {
"currentPage": 1,
"perPage": 20,
"lastPage": 1,
"total": 2
},
"data": [
{
"id": "abcdef9879288c1f48339f64",
"status": "released",
"type": "recording",
"mode": "video-and-audio",
"quality": "med",
"composerIds": [
"abcdef9879288c1f48339f54"
],
"webhookUrl": "https://example.com/"
}
]
}

Got a Question? Ask us on discord