---
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.

## 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

## Changes

> 271 revisions in range; 82 not diffed.

- **2026-08-02** `6f132f005b2a` — 1 breaking
  - api path removed without deprecation
- **2026-08-02** `9e655757ea3b` — 1 info
  - endpoint reactivated
- **2026-07-31** `3128fb112d66` — 1 info
  - endpoint added
- **2026-07-30** `d1ae9e3491f7` — 1 info
  - api path removed with deprecation
- **2026-07-30** `d1e90514e673` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/orq-ai/apis/orq-ai-api/changes/v3/traces/aggregate/post.md)

---

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