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

# GET /api/v1/traces

`GET /api/v1/traces`

Get trace with feedback list

## Query parameters

- `page` integer — Page number to retrieve. Page size is fixed.
- `modelIds` string — Comma separated list of model IDs or aliases to filter traces.
- `projectId` string, uuid — Project identifier to filter traces.
- `sortBy` 'createdAt' | 'score' — Sort traces by creation time or score.
- `sortOrder` 'asc' | 'desc' — Sort order to use for the selected sortBy field.

## Response `200`

success response

- TraceListResponse
  - `results` Trace[], required
    - `id` string, uuid, required — Unique trace identifier.
    - `createdAt` string, date-time, required — ISO timestamp representing when the trace was recorded.
    - `modelId` string, required — Model identifier attached to the trace.
    - `projectId` string, uuid, nullable, required — Project identifier, null when the trace is not linked to a project.
    - `input` string, required — Prompt or message provided to the model.
    - `output` string, required — Model response captured for the trace.
    - `score` number, nullable, required — Score between 0 and 1. Null when the trace has not been scored yet.
    - `feedback` string, nullable, required — Feedback provided for the trace.
    - `addedToDataset` boolean, required — Flag indicating whether the trace is already in the dataset.
    - `processingStatus` 'none' | 'processing' | 'failed', required — Background processing status used when generating improved datapoints.
  - `total` integer, required — Total number of traces that match the current filters, across all pages.

## Other responses

- `400` — bad request
- `401` — unauthenticated
- `403` — unauthorized
- `404` — not found
- `409` — conflict
- `500` — internal server error

---

[API](https://skmtc.net/premai-io/apis/prem-studio-api.md) · [All operations](https://skmtc.net/premai-io/apis/prem-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/premai-io/prem-studio-api/revisions/2cb1f5df1b89/schema)
