curl --location 'https://api.weya.live/backend/api/video-agents/6891a23bc456def789123456' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": {
"_id": "6891a23bc456def789123456",
"agent_name": "Sales Video Agent",
"gender": "Female",
"avatar": "6891a23bc456def789aaaaaa",
"voice": "6891a23bc456def789bbbbbb",
"enable_input_video": false,
"selectedLanguage": ["en-IN"],
"systemMessage": "You are a professional AI sales representative.",
"startMessage": "Hello! Welcome to Example Store. How can I help you today?",
"rag": { "vectorDBCollection": "kb_sales_1a2b3c" },
"callSetting": { "callTimeout": 10, "voiceSpeed": 1 },
"createdAt": "2026-07-21T09:30:00.000Z",
"updatedAt": "2026-07-21T10:12:45.000Z"
}
}
Video Agents
Get Video Agent By ID
Retrieve the full configuration of one of your video agents.
GET
/
api
/
video-agents
/
{id}
curl --location 'https://api.weya.live/backend/api/video-agents/6891a23bc456def789123456' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": {
"_id": "6891a23bc456def789123456",
"agent_name": "Sales Video Agent",
"gender": "Female",
"avatar": "6891a23bc456def789aaaaaa",
"voice": "6891a23bc456def789bbbbbb",
"enable_input_video": false,
"selectedLanguage": ["en-IN"],
"systemMessage": "You are a professional AI sales representative.",
"startMessage": "Hello! Welcome to Example Store. How can I help you today?",
"rag": { "vectorDBCollection": "kb_sales_1a2b3c" },
"callSetting": { "callTimeout": 10, "voiceSpeed": 1 },
"createdAt": "2026-07-21T09:30:00.000Z",
"updatedAt": "2026-07-21T10:12:45.000Z"
}
}
Overview
Retrieve a video agent’s full configuration: instructions, greeting, avatar, voice, languages, knowledge base and conversation settings. The agent must have been created by the user who owns the API key.Prerequisites
- An API key for your workspace
- The video agent’s ID, from Get Video Agents
Request
curl --location 'https://api.weya.live/backend/api/video-agents/6891a23bc456def789123456' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": {
"_id": "6891a23bc456def789123456",
"agent_name": "Sales Video Agent",
"gender": "Female",
"avatar": "6891a23bc456def789aaaaaa",
"voice": "6891a23bc456def789bbbbbb",
"enable_input_video": false,
"selectedLanguage": ["en-IN"],
"systemMessage": "You are a professional AI sales representative.",
"startMessage": "Hello! Welcome to Example Store. How can I help you today?",
"rag": { "vectorDBCollection": "kb_sales_1a2b3c" },
"callSetting": { "callTimeout": 10, "voiceSpeed": 1 },
"createdAt": "2026-07-21T09:30:00.000Z",
"updatedAt": "2026-07-21T10:12:45.000Z"
}
}
The video agent’s full configuration. The fields are the ones described in Create Video Agent.
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request –
Invalid video agent ID format. - 401 Unauthorized – Missing or invalid API key.
- 404 Not Found –
Video agent not found: it doesn’t exist, was deleted, or wasn’t created by the user who owns the API key. - 429 Too Many Requests – More than 1,000 video agent requests in 15 minutes from your IP address.
- 500 Internal Server Error – Unexpected server error.
Was this page helpful?

