curl --location 'https://api.weya.live/backend/api/video-agents/voices?enableInputVideo=false&gender=Female' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6891a23bc456def789bbbbbb",
"agent_name": "Asha",
"trait": "Warm",
"gender": "Female",
"languages": ["en-IN", "hi-IN"],
"provider": "…",
"is_realtime": true,
"isPremium": false,
"imageUrl": "https://…",
"audioUrls": { "en-IN": "https://…" }
}
]
}
Video Agents
Get Available Voices
List the voices you can give a video agent, for its camera mode and gender.
GET
/
api
/
video-agents
/
voices
curl --location 'https://api.weya.live/backend/api/video-agents/voices?enableInputVideo=false&gender=Female' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6891a23bc456def789bbbbbb",
"agent_name": "Asha",
"trait": "Warm",
"gender": "Female",
"languages": ["en-IN", "hi-IN"],
"provider": "…",
"is_realtime": true,
"isPremium": false,
"imageUrl": "https://…",
"audioUrls": { "en-IN": "https://…" }
}
]
}
Overview
List the voices you can use for a video agent’svoice. Agents that see the visitor’s camera (enable_input_video: true) need a realtime voice, so by default only realtime voices are returned.
Prerequisites
- An API key for your workspace
Request
true returns only realtime voices, for agents with enable_input_video: true. false returns every voice.curl --location 'https://api.weya.live/backend/api/video-agents/voices?enableInputVideo=false&gender=Female' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6891a23bc456def789bbbbbb",
"agent_name": "Asha",
"trait": "Warm",
"gender": "Female",
"languages": ["en-IN", "hi-IN"],
"provider": "…",
"is_realtime": true,
"isPremium": false,
"imageUrl": "https://…",
"audioUrls": { "en-IN": "https://…" }
}
]
}
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request –
enableInputVideoisn’ttrueorfalse, orgenderisn’tMaleorFemale. - 401 Unauthorized – Missing or invalid API key.
- 500 Internal Server Error – Unexpected server error.
Was this page helpful?

