Skip to main content
Version: 2.0

List Agents API Definition

The List Agents API enables you to retrieve a paginated collection of AI agents within your Vectara account, providing essential capabilities for agent discovery, management, and operational oversight. This API supports filtering by agent characteristics and status, making it ideal for administrative dashboards, deployment monitoring, and agent lifecycle management across enterprise environments.

Organizations use this API to maintain visibility into their agent ecosystem, enabling teams to track agent deployments, monitor active configurations, and coordinate agent management activities across different departments and use cases. The filtering and pagination capabilities ensure efficient operation even with large numbers of deployed agents.

List Agents Request and Response

To list agents, send a GET request to /v2/agents. You can include the following optional query parameters to filter and paginate results:

  • filter (string, optional): Regular expression pattern to match against agent names and descriptions
  • enabled (boolean, optional): Filter agents by their enabled status (true for active agents only)
  • limit (integer, optional): Maximum number of agents to return (default: 10, maximum: 100)
  • page_key (string, optional): Pagination token for retrieving subsequent pages of results

The response includes an array of agent objects and pagination metadata for accessing additional results when available.

Example Request

GET /v2/agents?filter=support.*&enabled=true&limit=25

Example Response

{
"agents": [
{
"id": "agt_customer_support_001",
"name": "Customer Support Agent",
"description": "AI agent specialized in handling customer support inquiries",
"tools": {
"available": [
{
"id": "tol_knowledge_search",
"argument_bindings": {
"max_results": 10
}
}
],
"mode": "native"
},
"model": {
"name": "gpt-4",
"parameters": {
"temperature": 0.1
}
},
"first_step": {
"type": "conversational",
"instructions": [
{
"type": "reference",
"id": "ins_customer_support_init",
"version": 2
}
],
"output_parser": {
"type": "default"
}
},
"metadata": {
"department": "customer_service"
},
"enabled": true,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
{
"id": "agt_technical_support_001",
"name": "Technical Support Specialist",
"description": "Advanced technical support agent with system diagnostic capabilities",
"tools": {
"available": [
{
"id": "tol_system_diagnostics"
},
{
"id": "tol_log_analyzer",
"argument_bindings": {
"max_lines": 1000
}
}
],
"mode": "native"
},
"model": {
"name": "gpt-4",
"parameters": {
"temperature": 0.05,
"max_tokens": 2000
}
},
"first_step": {
"type": "conversational",
"instructions": [
{
"type": "reference",
"id": "ins_technical_support_init",
"version": 1
}
],
"output_parser": {
"type": "default"
}
},
"metadata": {
"department": "technical_support",
"expertise_level": "advanced"
},
"enabled": true,
"created_at": "2024-01-12T09:15:00Z",
"updated_at": "2024-01-18T14:22:00Z"
}
],
"metadata": {
"page_key": "eyJhZ2VudF9pZCI6ImFndF90ZWNobmljYWxfc3VwcG9ydF8wMDEifQ==",
"total_count": 15
}
}

Error Responses

The API returns standard HTTP error codes with detailed error information:

HTTP CodeError CodeDescription
400invalid_requestInvalid query parameters or malformed request
401unauthorizedInvalid or missing API key
403forbiddenInsufficient permissions for listing agents
429rate_limit_exceededRequest rate limit exceeded