---
title: "Query trace summaries — one row per trace with span count, error count, root span info, and proper trace-level pagination."
method: GET
path: "/otel/trace-summaries"
tags: ["Traces"]
---

# Query trace summaries — one row per trace with span count, error count, root span info, and proper trace-level pagination.

`GET /otel/trace-summaries`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/trace-summaries`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer, required
- `trace_id` string
- `service_name` string
- `status` string
- `min_duration_ms` number, double
- `start_time` string
- `end_time` string
- `environment_id` integer
- `deployment_id` integer
- `attributes` string
- `name_pattern` string
- `sort_by` string
- `sort_order` string
- `include_total` boolean
- `limit` integer
- `offset` integer

## Response `200`

Trace summaries

- TraceSummariesResponse
  - `data` TraceSummary[], required
    - `deployment_environment` string, nullable: The deployment environment from the root span's resource attributes (e.g. "production").
    - `duration_ms` number, double, required
    - `error_count` integer, required
    - `kind` 'UNSPECIFIED' | 'INTERNAL' | 'SERVER' | 'CLIENT' | 'PRODUCER' | 'CONSUMER', required: Span kind.
    - `root_span_name` string, required
    - `service_name` string, required
    - `span_count` integer, required
    - `start_time` string, date-time, required
    - `status_code` 'UNSET' | 'OK' | 'ERROR', required: Span status code.
    - `trace_id` string, required
  - `total` integer, nullable: Total traces matching the filters, ignoring pagination. Omitted when the request passed `include_total=false`, in which case the caller asked not to pay for the count — treat its absence as "unknown", not as zero.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 3 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-09-07** `cdc1afae1752`: 1 info
  - added the new optional `query` request parameter `attributes`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/trace-summaries/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
