---
title: "List Traces"
method: GET
path: "/api/v1/public/traces"
tags: ["Traces"]
---

# List Traces

`GET /api/v1/public/traces`

## Request

- Base URL: `https://app.traceroot.ai`
- URL: `https://app.traceroot.ai/api/v1/public/traces`
- Auth: HTTP bearer

List recent traces for the caller's project (newest first).

Offline-evaluation traces are excluded by default; pass
``include_evaluations=true`` to include them.

## Query parameters

- `limit` integer: Items per page
- `start_after` string, date-time, nullable: Only traces that started at or after this time (inclusive, ISO 8601)
- `end_before` string, date-time, nullable: Only traces that started before this time (exclusive, ISO 8601)
- `include_evaluations` boolean: Include traces produced by offline-evaluation runs. Excluded by default so evaluation runs do not appear in the production trace list.
- `name` string, nullable: Filter by trace name (substring match)
- `user_id` string, nullable: Filter by the user id recorded on the trace
- `search_query` string, nullable: Search across trace_id, name, session_id, user_id
- `project_id` string, nullable: Target project for the request. Required when authenticating with a user session token (a user credential is only meaningful scoped to a project); for an API key it is optional and, if given, must match the key's project.

## Response `200`

Successful Response

- PublicTraceListResponse: Paginated list of traces for the public API.
  - `data` PublicTraceListItem[], required
    - `duration_ms` number, nullable, required
    - `error_count` integer, required
    - `input` string, nullable, required
    - `metadata_map` object
    - `name` string, required
    - `output` string, nullable, required
    - `project_id` string, required
    - `session_id` string, nullable, required
    - `span_count` integer, required
    - `total_cost` number, nullable
    - `total_input_tokens` integer, nullable
    - `total_output_tokens` integer, nullable
    - `trace_id` string, required
    - `trace_start_time` string, date-time, required
    - `trace_url` string, required
    - `user_id` string, nullable, required
  - `meta` PaginationMeta, required: Pagination metadata for list responses.
    - `limit` integer, required
    - `page` integer, required
    - `total` integer, required

## Other responses

- `400`: Invalid filters parameter
- `401`: Authentication failed
- `422`: Validation Error
- `500`: Failed to list traces
- `503`: Authentication service unavailable

---

[API](https://skmtc.dev/traceroot/apis/traceroot-public-api.md) - [All operations](https://skmtc.dev/traceroot/apis/traceroot-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traceroot/apis/traceroot-public-api/revisions/ce6aef96c0d6?raw)
