Fetch a Deployment - API
This API lets you fetch the details of a deployment by passing the deploymentId and tag.
HTTP method and endpoint
GET
|
https://api.videosdk.live/ai/v1/ai-deployments/${deploymentId}/${tag}Headers Parameters
REQUIRED
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
The ID of the deployment you want to retrieve.
REQUIRED
The tag of the deployment you want to retrieve.
GET
|
https://api.videosdk.live/ai/v1/ai-deployments/${deploymentId}/${tag}
NodeJS
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
};
const deploymentId = "your_deploymentId";
const url= `https://api.videosdk.live/ai/v1/ai-deployments/${deploymentId}/${tag}`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "c382f5cc-7be1-46ff-9d3f-e77f0901e87a",
"name": "ai-deployment-name",
"tag": "v1.0",
"description": "Description of the AI Deployment",
"status": "available",
"createdAt": "2025-06-09T10:20:03.248Z"
}
Got a Question? Ask us on discord