---
title: "Trace Stats"
method: GET
path: "/api/v1/traces/stats"
tags: ["sessions"]
---

# Trace Stats

`GET /api/v1/traces/stats`

## Query parameters

- `proxy_id` string, uuid, nullable
- `from` string, date-time, nullable
- `to` string, date-time, nullable

## Headers

- `Authorization` string, nullable

## Response `200`

Successful Response

- TraceStatsResponse
  - `total_calls` integer, required
  - `total_tokens` integer, required
  - `avg_latency_ms` number, nullable, required
  - `blocked_calls` integer, required
  - `redacted_calls` integer, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-27** `9efbf54a37d4` — 1 info
  - endpoint added
- **2026-08-25** `e63bfe8e38b4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/xenovia/apis/controlplane/changes/api/v1/traces/stats/get.md)

---

[API](https://skmtc.dev/xenovia/apis/controlplane.md) · [All operations](https://skmtc.dev/xenovia/apis/controlplane/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xenovia/controlplane/revisions/9efbf54a37d4/schema)
