# Reports

Ticket, response and resolution numbers for any period, by space, member or channel.

## Overview

The metrics tool answers one period (up to 366 days) in one call: tickets created, closed and open at the period end, the median and 90th percentile of first-response and resolution time in seconds, reopenings, and closed tickets in which the AI agent took part versus members only. It groups by day, week, space, member, channel, tag or classification option, and filters by space, member, channel and status. It counts only the tickets the member may see, never Spam or imported history.

## Do it in the app

1. Open Tickets and use the counters and filters for the current numbers.
2. For a set period and team reports, ask your agent: it reads the metrics and writes a summary.
3. Compare periods by member or channel to see where work piles up.

## Or let your agent do it

```text
Report last month’s tickets by member: created, closed, open, and the median first-response time. Summarize what stands out.
```

**MCP tools:** `get_ticket_metrics`, `count_tickets_by_tag`, `count_tickets_by_classification`

Or through REST:

```bash
curl https://api.rabt.systems/v1/tickets/metrics?from=<start>&to=<end>&group_by=member \
  -H "Authorization: Bearer rbk_test_…"
```

> **Recommendation:** For a period longer than 366 days, make one request per month and add the counts. Medians and percentiles never add up: show them per period.

> **Limits:** No SLA, targets or business hours: times are calendar seconds. No customer satisfaction scores. No file export, no scheduled or emailed reports and no saved dashboards.
