curl --location 'https://api.weya.live/backend/api/agents?page=1&limit=10&search=sales' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": {
"agents": [
{
"_id": "687b1c2ab7c7d3f123456789",
"agent_name": "Sales Agent",
"gender": "Female",
"conversationType": "single_prompt",
"channel_type": "voice",
"latest_version": 3,
"createdAt": "2026-07-20T10:15:30.000Z",
"updatedAt": "2026-07-22T08:00:00.000Z"
}
],
"pagination": {
"total": 15,
"page": 1,
"limit": 10,
"totalPages": 2,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
Agents
Get Agents
Retrieve your AI agents with pagination and search.
GET
/
api
/
agents
curl --location 'https://api.weya.live/backend/api/agents?page=1&limit=10&search=sales' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": {
"agents": [
{
"_id": "687b1c2ab7c7d3f123456789",
"agent_name": "Sales Agent",
"gender": "Female",
"conversationType": "single_prompt",
"channel_type": "voice",
"latest_version": 3,
"createdAt": "2026-07-20T10:15:30.000Z",
"updatedAt": "2026-07-22T08:00:00.000Z"
}
],
"pagination": {
"total": 15,
"page": 1,
"limit": 10,
"totalPages": 2,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
Overview
List the agents created by the user who owns the API key, newest first. By default the list contains voice agents and leaves out multi-stage agents; use the query parameters below to change that.Prerequisites
- An API key for your workspace
Request
curl --location 'https://api.weya.live/backend/api/agents?page=1&limit=10&search=sales' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Fetched successfully",
"errorMessage": null,
"data": {
"agents": [
{
"_id": "687b1c2ab7c7d3f123456789",
"agent_name": "Sales Agent",
"gender": "Female",
"conversationType": "single_prompt",
"channel_type": "voice",
"latest_version": 3,
"createdAt": "2026-07-20T10:15:30.000Z",
"updatedAt": "2026-07-22T08:00:00.000Z"
}
],
"pagination": {
"total": 15,
"page": 1,
"limit": 10,
"totalPages": 2,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
The agents on this page, with summary fields only. Use Get Agent By ID for an agent’s full configuration.
Error Handling
- 401 Unauthorized – Missing or invalid API key.
- 500 Internal Server Error – Unexpected server error.
Use the returned agent ID with:
GET /api/agents/{id}to retrieve the agent’s full configuration.PATCH /api/agents/{id}to update an agent.DELETE /api/agents/{id}to remove an agent.
Was this page helpful?

