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

---

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