Skip to navigation

List Spans

View as MarkdownOpen in Claude

Path parameters

workspacestringRequired

Query parameters

sortenumOptionalDefaults to -started_at
Allowed values:
modeenumOptionalDefaults to detailed

Response mode. summary omits payloads and raw attributes; preview includes input and output truncated to 300 characters; detailed returns full payloads and raw attributes.

Allowed values:
pageintegerOptional>=1Defaults to 1
Page number.
page_sizeintegerOptional1-1000Defaults to 10
Page size.
filterobjectOptional

Filter spans by session_id, trace_id, parent_span_id, project, evaluation_name, test_case_name, source, kind, status, model, tool_name, provider, agent_id, agent_name, and started_at. Every field takes one exact value, except started_at, which takes gte and lte. Use attributes for AND-combined stored span key/value pairs, e.g. {“attributes”:{“label.source”:“relay”,“label.task”:“pick-place”}}.

Response

Successful Response
datalist of objects
paginationobject or nullOptional
Pagination information.
sortstring or nullOptional
The field on which the results are sorted.
filtermap from strings to any or nullOptional
Filtering information.

Errors

422
Unprocessable Entity Error