# Retrieve team metrics

Returns real-time activity metrics for admins in the specified team. For each admin, the response includes counts of open, idle, and snoozed conversations.

This endpoint requires the realtime_monitoring feature to be enabled for your workspace.

Endpoint: GET /teams/{team_id}/metrics
Version: Preview
Security: bearerAuth

## Header parameters:

  - `Intercom-Version` (string)
    Intercom API version.By default, it's equal to the version set in the app package.
    Enum: "1.0", "1.1", "1.2", "1.3", "1.4", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "2.15", "Preview"

## Path parameters:

  - `team_id` (string, required)
    The unique identifier of the team to retrieve metrics for. Use GET /teams to list available team IDs.
    Example: "42"

## Query parameters:

  - `idle_threshold` (integer)
    The number of seconds after which an open conversation is considered idle. Clamped to the range 1–86400. Defaults to 1800 (30 minutes).
    Example: 1800

## Response 200 fields (application/json):

  - `type` (string)
    Example: "team_metric.list"

  - `data` (array)

  - `data.type` (string)
    Example: "team_metric"

  - `data.admin_id` (string)
    The unique identifier for the admin.
    Example: "123"

  - `data.open` (integer)
    The number of open conversations assigned to the admin.
    Example: 5

  - `data.idle` (integer)
    The number of idle conversations assigned to the admin. A conversation is idle when it has been open and waiting for an admin reply longer than the idle_threshold.
    Example: 2

  - `data.snoozed` (integer)
    The number of snoozed conversations assigned to the admin.
    Example: 1

## Response 401 fields (application/json):

  - `type` (string, required)
    The type is error.list
    Example: "error.list"

  - `request_id` (string,null)
    Example: "f93ecfa8-d08a-4325-8694-89aeb89c8f85"

  - `errors` (array, required)
    An array of one or more error objects

  - `errors.code` (string, required)
    A string indicating the kind of error, used to further qualify the HTTP response code
    Example: "unauthorized"

  - `errors.message` (string,null)
    Optional. Human readable description of the error.
    Example: "Access Token Invalid"

  - `errors.field` (string,null)
    Optional. Used to identify a particular field or query parameter that was in error.
    Example: "email"


