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

> Returns detected intents data for a specific telephony agent.
Shows distribution of customer intents identified in the agent's calls.




## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api get /report/telephonyAgentCallInsights/{agentId}
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/telephonyAgentCallInsights/{agentId}:
    get:
      tags:
        - Report
      summary: Get telephony agent call insights
      description: |
        Returns detected intents data for a specific telephony agent.
        Shows distribution of customer intents identified in the agent's calls.
      operationId: getTelephonyAgentCallInsights
      parameters:
        - name: agentId
          in: path
          required: true
          description: The ID of the telephony agent (user)
          schema:
            type: integer
          example: 3
        - 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:
                  detectedIntents:
                    type: object
                    properties:
                      data:
                        type: object
                        additionalProperties:
                          type: integer
                        description: Intent names with their counts
                        example:
                          Allgemein: 27
                          Mako: 35
                          Rechnung: 15
                          Lorem: 28
                          Ipsum: 10
                      description:
                        type: string
                        example: >-
                          Distribution of detected customer intents for this
                          agent across all calls in the selected period.
                      filters:
                        type: object
                        properties:
                          lastDays:
                            type: string
                            example: '7'
                      summary:
                        type: object
                        properties:
                          total:
                            type: integer
                            description: Total number of intents detected
                            example: 115
                          percentages:
                            type: object
                            additionalProperties:
                              type: integer
                            description: Percentage distribution of intents
                            example:
                              Allgemein: 23
                              Mako: 30
                              Rechnung: 13
                              Lorem: 24
                              Ipsum: 9
                          counts:
                            type: object
                            additionalProperties:
                              type: integer
                            description: >-
                              Absolute per-intent call counts (raw numbers
                              before percentage conversion)
                            example:
                              Allgemein: 27
                              Mako: 35
                              Rechnung: 15
                              Lorem: 28
                              Ipsum: 10
                example:
                  detectedIntents:
                    data:
                      Allgemein: 27
                      Mako: 35
                      Rechnung: 15
                      Lorem: 28
                      Ipsum: 10
                    description: >-
                      Distribution of detected customer intents for this agent
                      across all calls in the selected period.
                    filters:
                      lastDays: '7'
                    summary:
                      total: 115
                      percentages:
                        Allgemein: 23
                        Mako: 30
                        Rechnung: 13
                        Lorem: 24
                        Ipsum: 9
        '403':
          description: Unauthorized
        '404':
          description: Telephony 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

````