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

# Conversation Metrics

> Get conversation metrics by report type. Use `type=account` for account summary or `type=agent` with `user_id` for agent metrics.



## OpenAPI

````yaml /openapi/application.json get /api/v2/accounts/{account_id}/reports/conversations
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v2/accounts/{account_id}/reports/conversations:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - in: query
        name: type
        schema:
          type: string
          enum:
            - account
            - agent
        required: true
        description: Type of report
        example: sample
      - in: query
        name: user_id
        schema:
          type: string
        required: false
        description: Required when `type=agent`.
        example: sample
    get:
      tags:
        - Reports
      summary: Conversation Metrics
      description: >-
        Get conversation metrics by report type. Use `type=account` for account
        summary or `type=agent` with `user_id` for agent metrics.
      operationId: get-conversation-metrics
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    description: Account conversation metrics
                    properties:
                      open:
                        type: number
                      unattended:
                        type: number
                      unassigned:
                        type: number
                  - type: array
                    description: Agent conversation metrics
                    items:
                      $ref: '#/components/schemas/agent_conversation_metrics'
              example:
                open: 1
                unattended: 1
                unassigned: 1
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Forbidden
        '404':
          description: reports not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    agent_conversation_metrics:
      type: object
      properties:
        id:
          type: number
        name:
          type: string
        email:
          type: string
        thumbnail:
          type: string
        availability:
          type: string
        metric:
          type: object
          properties:
            open:
              type: number
            unattended:
              type: number
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.