---
title: "Fetch Traces"
method: GET
path: "/traces/"
tags: ["Traces"]
---

# Fetch Traces

`GET /traces/`

Fetch multiple traces by known IDs.

Point lookup endpoint. Accepts either repeated query params
(`?trace_id=a&trace_id=b`) or a comma-separated single param
(`?trace_ids=a,b`). Results are deduplicated. Returns `400` when
no IDs are supplied. Use `POST /traces/query` for filter-based
retrieval.

## Query parameters

- `trace_id` string[], nullable
- `trace_ids` string, nullable

## Response `200`

Successful Response

- TracesResponse
  - `count` integer — Total number of matching traces in the window.
  - `traces` TraceOutput[], nullable — List of traces in the canonical `Traces` shape. For the map-shaped payload keyed by `trace_id`, call `POST /tracing/spans/query` with `focus="trace"`.
    - `spans` object, nullable
    - `trace_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

> 359 revisions in range; 46 could not be searched.

- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/traces/get.md)

---

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