threads
Query Single Thread Stats
Alpha: The request and response contract may change; Compute aggregate stats for a single thread (turn count, latency percentiles, token/cost sums, and detail breakdowns) within a project.
get/v2/threads/{thread_id}/stats
Path parameters
thread_idstring required
Thread ID
Query parameters
selectsstring[]
selects lists which aggregate stats to compute and return (repeatable query parameter). At least one value is required. Accepts any value of SingleThreadStatsSelectField.
session_idstring uuid required
session_id is the tracing project (session) UUID (required).
Response
aggregate stats for the thread