Fetch an AI Worker - API
This API lets you fetch the details of an AI Worker by passing the workerId.
HTTP method and endpoint
GET
|
https://api.videosdk.live/ai/v1/ai-workers/${workerId}Headers Parameters
REQUIRED
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 retrieve.
GET
|
https://api.videosdk.live/ai/v1/ai-workers/${workerId}
NodeJS
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}`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "c382f5cc-7be1-46ff-9d3f-e77f0901e87a",
"deploymentId": "5bf19efa-22af-41d8-8b3f-b4dbd3f8bcac",
"name": "name-ai-worker",
"description": "Description of the AI Worker",
"status": "available",
"createdAt": "2025-06-09T10:20:03.248Z",
"updatedAt": "2025-06-09T10:20:03.248Z",
"lastUsedAt": "2025-06-09T10:20:03.248Z"
}
Got a Question? Ask us on discord