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

# Get AI performance metrics for a specific AI agent

> Returns performance metrics scoped to a specific AI agent for a selected time window.




## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api get /report/aiAgentPerformance/{aiAgentId}
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /report/aiAgentPerformance/{aiAgentId}:
    get:
      tags:
        - Report
      summary: Get AI performance metrics for a specific AI agent
      description: >
        Returns performance metrics scoped to a specific AI agent for a selected
        time window.
      operationId: getAiAgentPerformance
      parameters:
        - name: aiAgentId
          in: path
          required: true
          description: The AI agent ID
          schema:
            type: integer
          example: 1
        - name: lastDays
          in: query
          required: false
          description: Number of days to look back. If omitted, defaults to 7.
          schema:
            type: string
            enum:
              - '0'
              - '1'
              - '3'
              - '7'
              - '14'
              - '30'
              - '90'
              - '365'
          example: '14'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                description: Map of metric name to agent-scoped report item
                additionalProperties:
                  type: object
                  properties:
                    data:
                      description: Metric data (time-series or aggregated values)
                      additionalProperties: true
                    summary:
                      type: object
                      description: Aggregated numbers for the metric
                      additionalProperties: true
                    description:
                      type: string
                    filters:
                      type: object
                      description: >-
                        Filters applied to generate this metric, including
                        aiAgentId and optionally outputHandlingCase
                      additionalProperties: true
                  required:
                    - data
                example:
                  autoProcessing:
                    description: Number of tickets auto-processed by this AI Agent per day.
                    summary:
                      amount: 12
                      withApproval: 7
                      fullyAutonomous: 5
                    data:
                      '01.01':
                        With Approval: 1
                        Fully autonomous: 0
                      '02.01':
                        With Approval: 2
                        Fully autonomous: 2
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                      outputHandlingCase: confirm
                  automationLevel:
                    description: >-
                      Daily distribution across automation levels L0..L5 for
                      this agent.
                    data:
                      '01.01':
                        L0: 1
                        L1: 1
                        L2: 0
                        L3: 1
                        L4: 1
                        L5: 0
                      '02.01':
                        L0: 0
                        L1: 2
                        L2: 1
                        L3: 0
                        L4: 2
                        L5: 1
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  avgHandlingTimeHuman:
                    data: []
                    summary:
                      averageDurationInSeconds: 320.5
                      totalCount: 14
                      previousAverageDurationInSeconds: 355.2
                      previousTotalCount: 12
                    description: >-
                      Average handling time (seconds) for human cases (L2+L3)
                      for this agent.
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  autoProcessingShare:
                    data: []
                    summary:
                      value: 9
                      valueTotal: 28
                      previousValue: 5
                      previousValueTotal: 30
                    description: >-
                      Share of auto-processed cases (L4+L5) out of all cases
                      worked by this AI Agent.
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  autoProcessingApprovalRate:
                    data: []
                    summary:
                      value: 6
                      valueTotal: 11
                      previousValue: 4
                      previousValueTotal: 10
                    description: >-
                      Rate of auto-processing attempts that were approved for
                      this AI Agent.
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  autoProcessingSuccessRate:
                    data: []
                    summary:
                      value: 8
                      valueTotal: 12
                      previousValue: 6
                      previousValueTotal: 11
                    description: >-
                      Rate of auto-processing attempts that were successful for
                      this AI Agent.
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  approvalTimeL4:
                    data: []
                    summary:
                      averageDurationInSeconds: 210.1
                      totalCount: 7
                      previousAverageDurationInSeconds: 240
                      previousTotalCount: 6
                    description: >-
                      Average approval time (seconds) for L4 cases for this AI
                      Agent.
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  autoProcessingErrorRate:
                    data: []
                    summary:
                      value: 2
                      valueTotal: 20
                      previousValue: 3
                      previousValueTotal: 18
                    description: Share of cases with errors for this AI Agent.
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  outputHandlingCases:
                    description: Available output handling cases for this AI Agent.
                    data:
                      confirm: Adjust input parameters
                      apply: Apply text template
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
                  customerSatisfaction:
                    data: []
                    summary: []
                    description: >-
                      Customer satisfaction results for this AI Agent
                      (placeholder).
                    filters:
                      aiAgentId: 1
                      lastDays: '14'
        '400':
          description: Invalid filter parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Unauthorized
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      description: Data format of Enneo error messages
      properties:
        error:
          type: string
          example: Contract 121 could not be processed
          description: Readable error message that should be shown to the user
        details:
          type: string
          example: >-
            Uncatched null point exception in testFunction() in
            /app/src/file:212
          description: Not easily readable error message that is for the developer
        txId:
          type: string
          example: c916167c94
          description: >-
            Internal transaction id. Useful for debugging. Corresponds to the
            OpenTelemetry trace ID.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````