Skip to main content
Version: /v2

Fetch an AI Worker Deployments - API

This API lets you fetch the list of deployments for a particular AI Worker by passing the workerId.

HTTP method and endpoint

GET

|

https://api.videosdk.live/ai/v1/ai-workers/${workerId}/deployments
Headers Parameters

values : YOURTOKENWITHOUTANYPREFIX

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 AI Worker you want to fetch the deployments for.

GET
|
https://api.videosdk.live/ai/v1/ai-workers/${workerId}/deployments
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
};
const workerId = "your_workerId";
const url= `https://api.videosdk.live/ai/v1/ai-workers/${workerId}/deployments`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"data": [
{
"workerId": "c382f5cc-7be1-46ff-9d3f-e77f0901e87a",
"status": "available",
"id": "43d89ab1-39c4-4ea3-b5f4-e62d275ec1fd",
"createdAt": "2025-06-09T02:36:12.994Z"
}
],
"pageInfo": {
"totalItems": 2,
"currentPage": 1,
"perPage": 1,
"total": 2
}
}

Got a Question? Ask us on discord