---
title: "Get Analytics Summary"
method: GET
path: "/api/domains/{domain_id}/agent-desk/analytics/summary"
tags: ["agent_desk"]
---

# Get Analytics Summary

`GET /api/domains/{domain_id}/agent-desk/analytics/summary`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/domains/{domain_id}/agent-desk/analytics/summary`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Volume / outcome / latency rollup over the desk's traces.

Definitions the UI depends on:
  * ``answers`` = traces whose outcome does NOT start with ``refused``;
    ``refusals`` = the rest (``refused_spam`` / ``refused_adversarial``).
  * every latency aggregate is over ANSWERS ONLY — a refusal's duration is
    classifier time, and pooling it would flatter the p90.
  * daily buckets are ``date(created_at)`` in UTC (created_at is written
    with ``datetime.utcnow``), newest first, days with no rows omitted.

## Path parameters

- `domain_id` string, required

## Query parameters

- `days` integer

## Headers

- `x-view-as` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
