Query Threads
Alpha: The request and response contract may change; Query threads within a project (session), with cursor-based pagination. Returns threads matching the given time range and optional filter.
Body
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 narrows which threads are returned, using a LangSmith filter expression evaluated against each thread's root run.
For example: has(tags, "production") or eq(status, "error").
See https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.
max_start_time is the inclusive upper bound on thread activity (RFC3339 date-time).
min_start_time is the inclusive lower bound on thread activity (RFC3339 date-time).
page_size is the maximum number of threads to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set. The response may contain fewer threads than page_size even when has_more is true.
1 <= x <= 10020
project_id is the tracing project UUID.
"0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328"
Response
items and pagination
has_more is true when another page of threads exists after this one.
true
items is the page of thread summaries, sorted by the thread's most recent activity.
next_cursor is the opaque cursor to pass as cursor on the next request when has_more is true. Omitted on the final page.
"eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ=="

