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

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
