Skip to main content

List Voice Agents

Retrieve a comprehensive list of voice AI agents in your workspace. The response includes agent configurations, integrated tools, execution statistics, AI usage metrics, and creator information.

Overview

The List Voice Agents API returns detailed information about all voice agents in your workspace, including:
  • Agent basic information (name, type, category, status)
  • Agent configuration and settings
  • Integrated tools and subagents
  • Execution statistics (total, completed, running, failed)
  • AI usage metrics (tokens, requests, models used)
  • Creator information
  • Last modification date

Endpoint

GET /voice-agent/all or GET /list Base URL: https://api.tryunleashx.com/v1 Authentication: Required (Bearer token)

Request Parameters

All parameters are optional. Use them to filter the results.
ParameterTypeDescription
namestringFilter agents by name (partial match, case-insensitive). Example: name=support matches “Customer Support Agent”, “Support Bot”, etc.
statusintegerFilter by agent status. Common values: 1 = active, 2 = deleted. If not provided, deleted agents are excluded by default.
agent_typeintegerFilter by agent type (1, 2, etc.). If not provided, agents with type 3 are excluded by default.
categoryintegerFilter by category ID. Categories help organize agents by purpose (e.g., Customer Experience, Sales, Support).
fromdatedateStart date for date range filter. Must be used with todate. Format: YYYY-MM-DD.
todatedateEnd date for date range filter. Must be used with fromdate. Format: YYYY-MM-DD.
date_fieldstringWhich date field to filter on. Options: 'created' (creation date), 'updated' (update date), or 'both' (default - either field).

Request Examples

Get All Agents

curl -X GET https://api.tryunleashx.com/v1/voice-agent/all \
  -H "Authorization: Bearer YOUR_API_KEY"

Search by Name

curl -X GET "https://api.tryunleashx.com/v1/voice-agent/all?name=support" \
  -H "Authorization: Bearer YOUR_API_KEY"

Filter by Status and Category

curl -X GET "https://api.tryunleashx.com/v1/voice-agent/all?status=1&category=3" \
  -H "Authorization: Bearer YOUR_API_KEY"

Filter by Date Range

curl -X GET "https://api.tryunleashx.com/v1/voice-agent/all?fromdate=2024-01-01&todate=2024-01-31&date_field=created" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Success Response

Status Code: 200 OK
{
  "data": [
    {
      "ID": 123,
      "AGENT_NAME": "Customer Support Agent",
      "AGENT_TYPE": 1,
      "CATEGORY": 3,
      "STATUS": 1,
      "AGENT_TOKEN": "token_abc123",
      "AGENT_UID": "uid_xyz789",
      "category_description": {
        "id": 3,
        "label": "Customer Experience",
        "textColor": "#003366",
        "backgroundColor": "#E6F7FF"
      },
      "LAST_MODIFIED": "2 days ago",
      "tools_data": {
        "tools": [
          {
            "integration_id": 7,
            "integration_name": "Gmail",
            "service_name": "Gmail API",
            "is_available": true,
            "is_connected": true,
            "is_enabled": true,
            "connected_account": "[email protected]",
            "connected_account_id": "acc_123",
            "category": "Communication",
            "icon": "https://aws-url.com/icons/gmail.png",
            "integration_url": "https://gmail.com",
            "integration_type": "api",
            "auth_type": "oauth"
          }
        ],
        "subagents": [
          {
            "id": 456,
            "name": "Lead Qualification Agent",
            "token": "token_sub456",
            "agent_uid": "uid_sub456",
            "is_enabled": true
          }
        ]
      },
      "creator": {
        "user_id": 789,
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "full_name": "John Doe"
      },
      "execution_statistics": {
        "total_executions": 150,
        "completed_executions": 120,
        "running_executions": 5,
        "failed_executions": 25,
        "total_minutes": 450
      },
      "ai_usage": {
        "total_tokens_used": 50000,
        "prompt_tokens": 30000,
        "completion_tokens": 20000,
        "total_requests": 100,
        "models_used": ["gpt-4", "gpt-3.5-turbo"],
        "request_types": ["text", "call", "chat"]
      },
      "configuration": {
        // Agent configuration object
      }
    }
  ]
}

Response Fields

Agent Object

FieldTypeDescription
IDintegerUnique identifier for the agent
AGENT_NAMEstringName of the agent
AGENT_TYPEintegerType of agent (1, 2, etc.)
CATEGORYintegerCategory ID for organizing agents
STATUSintegerAgent status (1 = active, 2 = deleted)
AGENT_TOKENstringAuthentication token for the agent
AGENT_UIDstringUnique identifier for the agent
category_descriptionobjectCategory details with label and colors
LAST_MODIFIEDstringHuman-readable last modification time (e.g., “2 days ago”, “Just now”)
tools_dataobjectIntegrated tools and subagents information
creatorobjectInformation about who created the agent
execution_statisticsobjectExecution metrics and performance data
ai_usageobjectAI/LLM usage metrics
configurationobjectAgent configuration settings

Category Description Object

FieldTypeDescription
idintegerCategory ID
labelstringCategory label (e.g., “Customer Experience”)
textColorstringText color hex code for UI display
backgroundColorstringBackground color hex code for UI display

Tools Data Object

FieldTypeDescription
toolsarrayArray of integrated tool objects
subagentsarrayArray of subagent objects

Tool Object

FieldTypeDescription
integration_idintegerUnique identifier for the integration
integration_namestringName of the integration (e.g., “Gmail”)
service_namestringService name (e.g., “Gmail API”)
is_availablebooleanWhether the integration is available
is_connectedbooleanWhether the integration is connected to an account
is_enabledbooleanWhether the tool is enabled for this agent
connected_accountstring or nullConnected account name/email
connected_account_idstring or nullConnected account identifier
categorystringIntegration category (e.g., “Communication”)
iconstringURL to the integration icon
integration_urlstringURL to the integration service
integration_typestringType of integration (e.g., “api”)
auth_typestringAuthentication type (e.g., “oauth”, “noAuth”)

Subagent Object

FieldTypeDescription
idintegerSubagent ID
namestringSubagent name
tokenstringSubagent authentication token
agent_uidstringSubagent unique identifier
is_enabledbooleanWhether the subagent is enabled

Creator Object

FieldTypeDescription
user_idintegerUser ID of the creator
first_namestringCreator’s first name
last_namestringCreator’s last name
emailstringCreator’s email address
full_namestringCreator’s full name or “Unknown User”

Execution Statistics Object

FieldTypeDescription
total_executionsintegerTotal number of executions
completed_executionsintegerNumber of successfully completed executions
running_executionsintegerNumber of currently running executions
failed_executionsintegerNumber of failed executions
total_minutesintegerTotal execution duration in minutes (rounded)

AI Usage Object

FieldTypeDescription
total_tokens_usedintegerTotal tokens used across all models
prompt_tokensintegerTotal prompt tokens consumed
completion_tokensintegerTotal completion tokens generated
total_requestsintegerTotal number of AI requests made
models_usedarrayList of AI models used (e.g., [“gpt-4”, “gpt-3.5-turbo”])
request_typesarrayList of request types (e.g., [“text”, “call”, “chat”])

Filtering Details

Name Filter

When you provide a name parameter, the API performs a case-insensitive partial match search:
  • name=support matches: “Customer Support Agent”, “Support Bot”, “Technical Support”
  • The search looks for the term anywhere in the agent name

Status Filter

  • status=1 - Returns only active agents
  • status=2 - Returns only deleted agents
  • If not provided, deleted agents (status 2) are excluded by default

Agent Type Filter

  • If agent_type is provided, only agents of that type are returned
  • If not provided, agents with type 3 are excluded by default

Category Filter

Categories help organize agents by purpose. Common categories include:
  • Customer Experience
  • Sales
  • Support
  • Marketing
  • Operations

Date Range Filter

You can filter agents by creation or update date:
  • Created Date Only: date_field=created
  • Updated Date Only: date_field=updated
  • Either Date (Default): date_field=both
Both fromdate and todate must be provided for date filtering to work.

Sorting

Results are sorted by creation date in descending order (most recently created agents first).

Best Practices

  1. Use Filters: Apply filters to reduce result set size and improve response time
  2. Pagination: For large workspaces, consider implementing pagination on the client side
  3. Cache Results: Cache agent lists when appropriate, as they don’t change frequently
  4. Error Handling: Always check response status and handle errors appropriately
  5. Statistics: Execution and AI usage statistics are aggregated efficiently in the response

Performance Considerations

  • Statistics are aggregated efficiently in bulk queries
  • Results are processed in parallel for better performance
  • Large result sets may take longer to process
  • Consider using filters to limit the number of agents returned

Example Use Cases

Get All Active Agents

curl -X GET "https://api.tryunleashx.com/v1/voice-agent/all?status=1" \
  -H "Authorization: Bearer YOUR_API_KEY"

Find Support Agents Created This Month

curl -X GET "https://api.tryunleashx.com/v1/voice-agent/all?name=support&fromdate=2024-01-01&todate=2024-01-31&date_field=created" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get Agents in Customer Experience Category

curl -X GET "https://api.tryunleashx.com/v1/voice-agent/all?category=3" \
  -H "Authorization: Bearer YOUR_API_KEY"

Notes

  • Deleted agents (status = 2) are excluded by default unless explicitly requested
  • Agent type 3 is excluded by default unless explicitly filtered
  • Last modified date considers updates to agent, configuration, tools, and denied words
  • Tools and subagents are only included if they are active (status = 1)
  • Execution duration is accumulated across all status groups and converted to minutes
  • Category descriptions are automatically parsed from stored data
  • Create Voice Agent: Create a new voice agent
  • Update Voice Agent: Modify an existing agent
  • Delete Voice Agent: Remove an agent
  • Get Agent Activity Logs: View detailed execution logs for an agent