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

# Get trace thread

`POST /v1/private/traces/threads/retrieve`

Get trace thread

## Request body

- TraceThreadIdentifier
  - `project_name` string
  - `project_id` string, uuid
  - `thread_id` string, required
  - `truncate` boolean

## Response `200`

Trace thread resource

- 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

## Other responses

- `404` — Not found

## Changes

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

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/traces/threads/retrieve/post.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/1a1bcfd67f99/schema)
