---
title: "Get Operator Statistics"
method: GET
path: "/v1/metrics/conversations/external/stats"
tags: ["Conversations"]
---

# Get Operator Statistics

`GET /v1/metrics/conversations/external/stats`

Retrieve an operator's (or all operators') attention statistics within a date range.

## Query parameters

- `startAt` string, date, required
- `endAt` string, date, required
- `operatorId` integer

## Response `200`

Statistics retrieved successfully

- OperatorStatsResponse
  - `_id` integer — Identifier of the queried operator or aggregation
  - `total` integer — Total cases within the date range
  - `actual` integer — Cases currently in the queue
  - `attended` integer — Attended cases
  - `expired` integer — Cases that expired without attention
  - `lastMessageOperator` integer — Conversations whose last message was sent by the operator
  - `lastMessageUser` integer — Conversations whose last message was sent by the user
  - `lastMessageBot` integer — Conversations whose last message was sent by the bot
  - `notAttended` integer — Unattended cases
  - `avgReplyTime` number — Average reply time, in seconds
  - `avgOperatorResponseTime` number — Average operator response time, in seconds
  - `transfered` integer — Cases transferred to another operator or team
  - `avgConversationTime` number — Average conversation duration, in seconds
  - `operator` OperatorStatsOperator
    - `id` integer
    - `names` string
    - `email` string
    - `companyId` integer

## Other responses

- `401` — Unauthorized - Invalid authentication credentials
- `422` — Unprocessable entity - Validation error
- `500` — Internal server error

---

[API](https://skmtc.net/jelou/apis/jelou-api.md) · [All operations](https://skmtc.net/jelou/apis/jelou-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jelou/jelou-api/revisions/845ce127d94a/schema)
