iachat/swagger
Pranav 0917e1a646
feat: Add an API to support querying metrics by ChannelType (#13255)
This API gives you how many conversations exist per channel, broken down
by status in a given time period. The max time period is capped to 6
months for now.

**Input Params:**
- **since:** Unix timestamp (seconds) - start of date range
- **until:** Unix timestamp (seconds) - end of date range


**Response Payload:**

```json
{
  "Channel::Sms": {
    "resolved": 85,
    "snoozed": 10,
    "open": 5,
    "pending": 5,
    "total": 100
  },
  "Channel::Email": {
    "resolved": 72,
    "snoozed": 15,
    "open": 13,
    "pending": 13,
    "total": 100
  },
  "Channel::WebWidget": {
    "resolved": 90,
    "snoozed": 7,
    "open": 3,
    "pending": 3,
    "total": 100
  }
}
```

**Definitons:**
resolved = Number of conversations created within the selected time
period that are currently marked as resolved.
snoozed = Number of conversations created within the selected time
period that are currently marked as snoozed.
pending = Number of conversations created within the selected time
period that are currently marked as pending.
open = Number of conversations created within the selected time period
that are currently open.
total = Total number of conversations created within the selected time
period, across all statuses.
2026-01-12 23:18:47 -08:00
..
definitions feat: Add an API to support querying metrics by ChannelType (#13255) 2026-01-12 23:18:47 -08:00
parameters feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
paths feat: Add an API to support querying metrics by ChannelType (#13255) 2026-01-12 23:18:47 -08:00
tag_groups feat: Add an API to support querying metrics by ChannelType (#13255) 2026-01-12 23:18:47 -08:00
index.html chore: Add API documentation for teams (#2221) 2021-05-05 20:39:00 +05:30
index.yml chore: add audit-logs swagger (#12001) 2025-07-22 13:42:31 +04:00
swagger.json feat: Add an API to support querying metrics by ChannelType (#13255) 2026-01-12 23:18:47 -08:00