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.
Request body
Example request
{
"page_size": 20,
"project_id": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328"
}Response
items and pagination
Example response
{
"items": [
{
"count": 3,
"first_trace_id": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327",
"last_trace_id": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328",
"latency_p50": 0.15,
"latency_p99": 0.42,
"max_start_time": "2025-01-15T12:05:00.000Z",
"min_start_time": "2025-01-15T12:00:00.000Z",
"num_errored_turns": 1,
"start_time": "2025-01-15T12:00:00.000Z",
"thread_id": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327",
"total_cost": 0.045,
"total_tokens": 450,
"trace_id": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9328"
}
],
"next_cursor": "eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ=="
}Changes
Changed in 2 of the 48 revisions of this API.2334
- ●
removed the optional property
has_morefrom the response with the200statusresponse-optional-property-removed
- ○
the endpoint scheme security
API Key AND Tenant IDwas added to the APIapi-security-added
- ○
the endpoint scheme security
Bearer Auth AND Tenant IDwas added to the APIapi-security-added
- ○
the endpoint scheme security
API Keywas removed from the APIapi-security-removed
- ○
the endpoint scheme security
Bearer Authwas removed from the APIapi-security-removed
- ○
the endpoint scheme security
Tenant IDwas removed from the APIapi-security-removed
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ○
added the non-success response with the status
503response-non-success-status-added
- ○
added the non-success response with the status
504response-non-success-status-added
- ○
added the optional property
detailto the response with the400statusresponse-optional-property-added
- ○
added the optional property
detailto the response with the403statusresponse-optional-property-added
- ○
added the optional property
detailto the response with the422statusresponse-optional-property-added
- ○
added the optional property
instanceto the response with the400statusresponse-optional-property-added
- ○
added the optional property
instanceto the response with the403statusresponse-optional-property-added
- ○
added the optional property
instanceto the response with the422statusresponse-optional-property-added
- ○
added the optional property
items/items/num_errored_turnsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
remedyto the response with the400statusresponse-optional-property-added
- ○
added the optional property
remedyto the response with the403statusresponse-optional-property-added
- ○
added the optional property
remedyto the response with the422statusresponse-optional-property-added
- ○
added the optional property
statusto the response with the400statusresponse-optional-property-added
- ○
added the optional property
statusto the response with the403statusresponse-optional-property-added
- ○
added the optional property
statusto the response with the422statusresponse-optional-property-added
- ○
added the optional property
titleto the response with the400statusresponse-optional-property-added
- ○
added the optional property
titleto the response with the403statusresponse-optional-property-added
- ○
added the optional property
titleto the response with the422statusresponse-optional-property-added
- ○
added the optional property
typeto the response with the400statusresponse-optional-property-added
- ○
added the optional property
typeto the response with the403statusresponse-optional-property-added
- ○
added the optional property
typeto the response with the422statusresponse-optional-property-added
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
max_start_timerequest property type/format changed fromstring/tostring/date-timerequest-property-type-changed
- ▲
the
min_start_timerequest property type/format changed fromstring/tostring/date-timerequest-property-type-changed
- ●
removed the request property
limitrequest-property-removed
- ●
removed the request property
session_idrequest-property-removed
- ○
added the new optional request property
page_sizenew-optional-request-property
- ○
added the new optional request property
project_idnew-optional-request-property
- ○
added the optional property
has_moreto the response with the200statusresponse-optional-property-added
- ○
added the optional property
itemsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
next_cursorto the response with the200statusresponse-optional-property-added
This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲