> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mrassistant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List All Agents Stats

> List all agents across all tenants with statistics.

**Returns per agent:**
- Agent details
- Call counts and minutes
- Average call duration
- Average sentiment score
- Last activity



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json get /admin/agents
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /admin/agents:
    get:
      tags:
        - admin
      summary: List All Agents Stats
      description: |-
        List all agents across all tenants with statistics.

        **Returns per agent:**
        - Agent details
        - Call counts and minutes
        - Average call duration
        - Average sentiment score
        - Last activity
      operationId: list_all_agents_stats_admin_agents_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            default: 100
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: tenant_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: Filter by tenant
            title: Tenant Id
          description: Filter by tenant
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentStatistics'
                title: Response List All Agents Stats Admin Agents Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AgentStatistics:
      properties:
        agent_id:
          type: string
          title: Agent Id
        agent_name:
          type: string
          title: Agent Name
        tenant_id:
          type: string
          title: Tenant Id
        tenant_name:
          type: string
          title: Tenant Name
        status:
          type: string
          title: Status
        total_calls:
          type: integer
          title: Total Calls
        total_minutes:
          type: number
          title: Total Minutes
        avg_call_duration:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Call Duration
        avg_sentiment:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Sentiment
        last_call_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Call At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - agent_id
        - agent_name
        - tenant_id
        - tenant_name
        - status
        - total_calls
        - total_minutes
        - avg_call_duration
        - avg_sentiment
        - last_call_at
        - created_at
      title: AgentStatistics
      description: Agent statistics for admin view.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````