class ThreadsGET with body payload — no resources created. Returns aggregate statistics for
threads in a tracing project. The response includes the thread counts, run
counts, latency percentiles, rates, token totals, and cost totals requested in
select. Set stride to return the statistics as a time series in buckets.
Self-hosted deployments require LangSmith v0.17 or later.
Retrieve all traces belonging to a specific thread within a project.
Self-hosted deployments require LangSmith v0.16 or later.
GET with body payload — no resources created. Returns the threads in a tracing project matching the query passed as the request payload. Results are filtered by the given time range and optional filters, with cursor-based pagination.
On deployments that support v2 filter syntax, use trace_filter to require a
matching trace in the thread. It evaluates root-run fields (for example,
status:error) and supported trace-wide aggregates. For example,
total_tokens:>100 uses the token total for that trace, not just its root run.
Use tree_filter (for example, run_type:tool) to require a matching run
anywhere in the thread. These filters can match in different traces within the
same thread. Use thread_filter for conditions on the complete thread summary,
such as turn_count:>2. All supplied filters must match. On deployments that
route queries to the legacy backend, v2 filter expressions return HTTP 501. Use
legacy function-style filters
instead and omit trace_filter, tree_filter, and thread_filter.
ai_search cannot be combined with sem_filter. With full AI search enabled,
ai_search translates natural language into query filters and time bounds and
cannot be combined with explicit filter expressions. Otherwise, ai_search
retains legacy semantic-only behavior. Use sem_filter for semantic-only
matching combined with structured filters. AI search requires organization
consent. When semantic matching is needed, Accept: text/event-stream is
required; requests without it return 406. AI search is unavailable on
deployments that route queries to the v1 backend and returns 501 there.
Self-hosted deployments require LangSmith v0.16 or later.
Compute aggregate stats for a single thread (turn count, latency percentiles, token/cost sums, and detail breakdowns) within a project.
Self-hosted deployments require LangSmith v0.16 or later.