> ## 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 telephony AI agent call insights

> Returns hourly breakdown of call outcomes for a specific telephony AI agent.
Shows how calls were handled throughout the day (0-23 hours).




## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api get /report/telephonyAiAgentCallInsights/{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/telephonyAiAgentCallInsights/{aiAgentId}:
    get:
      tags:
        - Report
      summary: Get telephony AI agent call insights
      description: >
        Returns hourly breakdown of call outcomes for a specific telephony AI
        agent.

        Shows how calls were handled throughout the day (0-23 hours).
      operationId: getTelephonyAiAgentCallInsights
      parameters:
        - name: aiAgentId
          in: path
          required: true
          description: The ID of the telephony AI agent
          schema:
            type: integer
          example: 5
        - name: lastDays
          in: query
          required: false
          description: Number of days to look back
          schema:
            type: string
            enum:
              - '0'
              - '1'
              - '3'
              - '7'
              - '14'
              - '30'
              - '90'
              - '365'
            default: '7'
          example: '7'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  callsAnsweredByHour:
                    type: object
                    properties:
                      data:
                        type: object
                        additionalProperties:
                          type: object
                          properties:
                            AI Bot finished:
                              type: integer
                            Handed over to human:
                              type: integer
                            Declined/Missed:
                              type: integer
                            Short call (<10s):
                              type: integer
                        description: Hourly breakdown (0-23) of call outcomes
                        example:
                          '0':
                            AI Bot finished: 2
                            Handed over to human: 5
                            Declined/Missed: 0
                            Short call (<10s): 1
                          '1':
                            AI Bot finished: 3
                            Handed over to human: 4
                            Declined/Missed: 0
                            Short call (<10s): 1
                          '8':
                            AI Bot finished: 2
                            Handed over to human: 7
                            Declined/Missed: 8
                            Short call (<10s): 0
                      description:
                        type: string
                        example: >-
                          Hourly breakdown of call outcomes showing how calls
                          were handled by AI throughout the day.
                      filters:
                        type: object
                        properties:
                          lastDays:
                            type: string
                            example: '7'
                      summary:
                        type: object
                        properties:
                          aiBotFinished:
                            type: integer
                            description: Total calls finished by AI bot
                            example: 53
                          handedOver:
                            type: integer
                            description: Total calls handed over to human
                            example: 113
                          declinedMissed:
                            type: integer
                            description: Total declined/missed calls
                            example: 96
                          shortCall:
                            type: integer
                            description: Total short calls (<10s)
                            example: 18
                example:
                  callsAnsweredByHour:
                    data:
                      '0':
                        AI Bot finished: 2
                        Handed over to human: 5
                        Declined/Missed: 0
                        Short call (<10s): 1
                      '1':
                        AI Bot finished: 3
                        Handed over to human: 4
                        Declined/Missed: 0
                        Short call (<10s): 1
                      '2':
                        AI Bot finished: 3
                        Handed over to human: 2
                        Declined/Missed: 0
                        Short call (<10s): 1
                      '8':
                        AI Bot finished: 2
                        Handed over to human: 7
                        Declined/Missed: 8
                        Short call (<10s): 0
                      '12':
                        AI Bot finished: 3
                        Handed over to human: 3
                        Declined/Missed: 8
                        Short call (<10s): 1
                      '20':
                        AI Bot finished: 1
                        Handed over to human: 9
                        Declined/Missed: 0
                        Short call (<10s): 1
                      '23':
                        AI Bot finished: 3
                        Handed over to human: 5
                        Declined/Missed: 0
                        Short call (<10s): 1
                    description: >-
                      Hourly breakdown of call outcomes showing how calls were
                      handled by AI throughout the day.
                    filters:
                      lastDays: '7'
                    summary:
                      aiBotFinished: 53
                      handedOver: 113
                      declinedMissed: 96
                      shortCall: 18
        '403':
          description: Unauthorized
        '404':
          description: Telephony AI agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '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

````