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

---

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