---
title: "Support stats"
locale: en
url: https://tlg.builera.app/en/docs/reference/rest/stats.inbox
verified: 2026-10-24
app_version: "2.0"
generated: true
---

# Support stats

Support metrics: replies, response times, per account / member, for a date range.

Support metrics: replies, response times, per account / member, for a date range.

## Overview

| Name | Value |
| --- | --- |
| Code | `stats.inbox` |
| Scope needed | `stats.read` |
| Risk | Read |
| May need confirmation | No |
| Runs as | Answers right away |
| Needs `Idempotency-Key` | No |
| Member roles allowed | `owner`, `manager`, `agent`, `viewer` |
| In the app | Stats → Support |

## Input fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `preset` | `"today" \| "7d" \| "30d" \| "90d" \| "custom"` | Yes |   |
| `from` | `text` | No |   |
| `to` | `text` | No |   |
| `account` | `uuid` | No |   |
| `member` | `uuid` | No |   |

## Example request

```bash
curl -X POST https://tlg.builera.app/api/public/v2/ops/stats.inbox \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"preset":"today"}'
```

## Output fields (`data`)

| Field | Type | Required |
| --- | --- | --- |
| `range` | `object` | Yes |
| `m` | `object` | Yes |

## Example answer

```json
{
  "data": {
    "range": {
      "from": "text",
      "to": "text",
      "days": [
        "text"
      ],
      "tz": "text"
    },
    "m": {
      "tz": "text",
      "conversations": 1,
      "msgs_in": 1,
      "msgs_out": 1,
      "msgs_out_unverified": 1,
      "turns": 1,
      "answered": 1,
      "unanswered": 1,
      "median_s": 1,
      "p90_s": 1,
      "by_member": [
        {
          "who": "telegram",
          "user_id": "00000000-0000-4000-8000-000000000000",
          "sent": 1,
          "replies": 1,
          "median_s": 1
        }
      ],
      "by_account": [
        {
          "account_id": "00000000-0000-4000-8000-000000000000",
          "in": 1,
          "out": 1,
          "turns": 1,
          "answered": 1,
          "median_s": 1
        }
      ],
      "heatmap": [
        {
          "dow": 1,
          "hour": 1,
          "n": 1
        }
      ],
      "daily": [
        {
          "day": "text",
          "in": 1,
          "out": 1
        }
      ]
    }
  }
}
```

## Using it over MCP

Tool `stats_inbox` is listed on the profiles: Reports (`reports`). On other profiles, find it with `tools_search` and run it with `tools_run`.
