---
title: "Get inbox response-time stats"
method: GET
path: "/v1/analytics/inbox/response-time"
tags: ["Inbox Analytics"]
---

# Get inbox response-time stats

`GET /v1/analytics/inbox/response-time`

Time-to-first-response stats. Pairs each received message with the
next sent message in the same conversation and reports the delta
as both summary statistics and a fixed-bucket histogram suited
for the analytics page's TTR chart.

`sampleSize` reflects only conversations that received AND got a
reply in the window — received-but-never-answered conversations
are excluded. Compare against /v1/analytics/inbox/volume's
`summary.received` to compute reply rate.

Max date range is 365 days.

## Query parameters

- `fromDate` string, date, required
- `toDate` string, date
- `profileId` string
- `platform` string
- `accountId` string

## Response `200`

Response-time summary + histogram

- object
  - `success` boolean
  - `from` string, date
  - `to` string, date, nullable
  - `summary` object
    - `sampleSize` integer
    - `medianSeconds` integer
    - `p90Seconds` integer
    - `p99Seconds` integer
    - `meanSeconds` integer
    - `fastestSeconds` integer
    - `slowestSeconds` integer
  - `histogram` object[]
    - `bucket` string — Human label (0-1m, 1-5m, 5-15m, 15-60m, 1-4h, 4-24h, 1d+)
    - `lowerSeconds` integer
    - `upperSeconds` integer, nullable — null on the open-ended last bucket
    - `count` integer

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `500` — Internal server error

---

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