Skip to main content
GET
Error

Authorizations

X-API-Key
string
header
required
X-Tenant-Id
string
header
required

Path Parameters

thread_id
string
required

Thread ID

Query Parameters

cursor
string

cursor is the opaque string from a previous response's next_cursor. Omit on the first request; pass the returned cursor to fetch the next page.

filter
string

filter narrows which traces are returned for this thread, using a LangSmith filter expression evaluated against each root trace run. For example: eq(status, "success") or has(tags, "production"). See https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.

page_size
integer
default:20

page_size is the maximum number of traces to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set.

Required range: 1 <= x <= 100
project_id
string<uuid>
required

project_id is the tracing project UUID (required).

selects
enum<string>[]

selects lists which properties to include on each returned trace (repeatable query parameter). Accepts any value of the ThreadTraceSelectField enum. Properties not listed are omitted from each trace object; trace_id is always returned.

Available options:
THREAD_ID,
TRACE_ID,
OP,
PROMPT_TOKENS,
COMPLETION_TOKENS,
TOTAL_TOKENS,
START_TIME,
END_TIME,
LATENCY,
FIRST_TOKEN_TIME,
INPUTS_PREVIEW,
OUTPUTS_PREVIEW,
INPUTS,
OUTPUTS,
ERROR,
PROMPT_COST,
COMPLETION_COST,
TOTAL_COST,
PROMPT_TOKEN_DETAILS,
COMPLETION_TOKEN_DETAILS,
PROMPT_COST_DETAILS,
COMPLETION_COST_DETAILS,
NAME,
ERROR_PREVIEW

Response

items and pagination

items
object[]

items is the page of root traces in this thread. Which properties are populated on each trace depends on the selects query parameter.

next_cursor
string

next_cursor is the opaque cursor to pass as cursor on the next request. Null on the final page.

Example:

"eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ=="