---
title: "Get trace threads"
method: GET
path: "/v1/private/traces/threads"
tags: ["Traces"]
---

# Get trace threads

`GET /v1/private/traces/threads`

Get trace threads

## Query parameters

- `page` integer
- `size` integer
- `project_name` string
- `project_id` string, uuid
- `truncate` boolean — Truncate input, output and metadata to slim payloads
- `strip_attachments` boolean — If true, returns attachment references like [file.png]; if false, downloads and reinjects stripped attachments
- `filters` string
- `sorting` string
- `search` string — Full-text search across thread fields
- `from_time` string, date-time — Filter trace threads created from this time (ISO-8601 format).
- `to_time` string, date-time — Filter trace threads created up to this time (ISO-8601 format). If not provided, defaults to current time. Must be after 'from_time'.
- `annotation_queue_id` string, uuid — Filter threads belonging to this annotation queue and scope feedback scores/comments to it

## Response `200`

Trace threads resource

- TraceThreadPage
  - `page` integer
  - `size` integer
  - `total` integer
  - `content` TraceThread[]
    - `id` string
    - `project_id` string, uuid
    - `thread_model_id` string, uuid
    - `start_time` string, date-time
    - `end_time` string, date-time
    - `duration` number, double
    - `first_message` JsonListString
    - `last_message` JsonListString
    - `feedback_scores` FeedbackScore[]
      - `name` string, required
      - `category_name` string
      - `value` number, required
      - `reason` string
      - `source` 'ui' | 'sdk' | 'online_scoring', required
      - `source_queue_id` string, uuid
      - `created_at` string, date-time
      - `last_updated_at` string, date-time
      - `created_by` string
      - `last_updated_by` string
      - `value_by_author` object
    - `status` 'active' | 'inactive'
    - `number_of_messages` integer
    - `total_estimated_cost` number
    - `usage` object
    - `comments` Comment[]
      - `id` string, uuid
      - `text` string, required
      - `source_queue_id` string, uuid
      - `created_at` string, date-time
      - `last_updated_at` string, date-time
      - `created_by` string
      - `last_updated_by` string
    - `tags` string[]
    - `last_updated_at` string, date-time
    - `last_updated_by` string
    - `created_by` string
    - `created_at` string, date-time
    - `environment` string
  - `sortableBy` string[]

## Changes

- **2026-06-30** `20a1a33446d1` — 2 info
  - added the optional property `content/items/feedback_scores/items/value_by_author/additionalProperties/author` to the response with the `200` status
  - added the optional property `content/items/feedback_scores/items/value_by_author/additionalProperties/source_queue_id` to the response with the `200` status
- **2026-06-19** `580e3bc69e8a` — 3 info
  - added the new optional `query` request parameter `annotation_queue_id`
  - added the optional property `content/items/comments/items/source_queue_id` to the response with the `200` status
  - added the optional property `content/items/feedback_scores/items/source_queue_id` to the response with the `200` status
- **2026-05-08** `b9100cf75dd3` — 1 info
  - added the optional property `content/items/environment` to the response with the `200` status
- **2026-05-04** `d606e84c75e4` — 6 warning
  - deleted the `query` request parameter `annotation_queue_id`
  - removed the optional property `content/items/comments/items/source_queue_id` from the response with the `200` status
  - removed the optional property `content/items/environment` from the response with the `200` status
  - removed the optional property `content/items/feedback_scores/items/source_queue_id` from the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/traces/threads/get.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/0739fa5022ca/schema)
