Query thread stats
GET 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.
Self-hosted deployments require LangSmith v0.17 or later.
Body
select lists the aggregate statistics to compute and return. At least one value is required.
1THREAD_COUNT, TRACE_COUNT, TOTAL_TOKENS, TOTAL_COST, ERROR_RATE, STREAMING_RATE, LATENCY_P50, LATENCY_P99, MEDIAN_TOKENS, FIRST_TOKEN_P50, FIRST_TOKEN_P99, PROMPT_TOKENS, COMPLETION_TOKENS, PROMPT_COST, COMPLETION_COST, PROMPT_TOKEN_DETAILS, COMPLETION_TOKEN_DETAILS, PROMPT_COST_DETAILS, COMPLETION_COST_DETAILS, THREAD_FEEDBACK_STATS filter is a deprecated, unscoped LangSmith filter expression evaluated
against trace root runs. Kept for compatibility with deployments that
serve this endpoint via the legacy ClickHouse backend (no SmithDB query
service configured); prefer trace_filter, tree_filter, or
thread_filter otherwise, since those require SmithDB.
"eq(status, \"error\")"
Response
aggregate thread statistics

