Fetch a Session - API
This API lets you fetch the details of a Deployment Session by passing the sessionId.
HTTP method and endpoint
GET
|
https://api.videosdk.live/ai/v1/ai-deployment-sessions/${sessionId}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 Session.
GET
|
https://api.videosdk.live/ai/v1/ai-deployment-sessions/${sessionId}
NodeJS
import fetch from 'node-fetch';
const options = {
	method: "GET",
	headers: {
		"Authorization": "$YOUR_TOKEN",
		"Content-Type": "application/json",
	},
};
const sessionId = "your_sessionId";
const url= `https://api.videosdk.live/ai/v1/ai-deployment-sessions/${sessionId}`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
  "sessionId": "788d0173-fa9c-404b-a2cf-69d38a1fe952",
  "status": "completed",
  "deploymentId": "2f5f787c-0396-4ae0-929c-f5853628267a",
  "tag": "v1.0",
  "start": "2025-06-18T11:15:07.275Z",
  "end": "2025-06-18T11:16:03.575Z",
  "duration": 56,
  "createdAt": "2025-06-18T11:15:07.276Z",
  "updatedAt": "2025-06-18T11:16:03.575Z"
}
Got a Question? Ask us on discord