---
title: "Aggregate traces"
method: POST
path: "/v3/traces/aggregate"
tags: ["Traces"]
---

# Aggregate traces

`POST /v3/traces/aggregate`

Aggregate trace metrics using the structured trace filter contract. This API remains supported; POST /v3/telemetry/query offers the same aggregate shape in a neutral multi-signal envelope.

## Request body

- AggregateTracesRequest
  - `from` string, date-time
  - `to` string, date-time
  - `filters` TraceFilter[]
    - `field` string
    - `op` string
    - `values` string[]
  - `group_by` string[]
  - `compute` TraceCompute[]
    - `metric` string
    - `op` string
  - `limit` integer
  - `filter_operator` string

## Response `200`

OK

- AggregateTracesResponse
  - `object` string
  - `data` TraceAggregateRow[]
    - `group` object
    - `metrics` object

---

[API](https://skmtc.net/orq-ai/apis/orq-ai-api.md) · [All operations](https://skmtc.net/orq-ai/apis/orq-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orq-ai/orq-ai-api/revisions/3fa1f1bf59d5/schema)
