POST
/v1/private/spans/searchSearch spansSearch spans
Request body
application/json
objectSpanSearchStreamRequest_Public
excludearray of stringFields to exclude from the response
Show child attributes
filtersarray of objectShow child attributes
Show array items
fieldstringkeystringoperatorstringvaluestringfrom_timestring · date-timeFilter spans created from this time (ISO-8601 format).
last_retrieved_idstring · uuidlimitinteger · int32Max number of spans to be streamed
project_idstring · uuidproject_namestringto_timestring · date-timeFilter spans created up to this time (ISO-8601 format). If not provided, defaults to current time. Must be after 'from_time'.
trace_idstring · uuidtruncatebooleanTruncate image included in either input, output or metadata
typestring{
"exclude": [
"comments"
],
"filters": [
{
"field": "string",
"key": "string",
"operator": "!=",
"value": "string"
}
],
"from_time": "2026-06-09T00:00:00Z",
"last_retrieved_id": "00000000-0000-0000-0000-000000000000",
"limit": 500,
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string",
"to_time": "2026-06-09T00:00:00Z",
"trace_id": "00000000-0000-0000-0000-000000000000",
"truncate": true,
"type": "general"
}Responses
array of string
Show array items
anyOf · 2 options
Option 1objectSpan_Public
commentsarray of objectShow child attributes
Show array items
created_atstring · date-timecreated_bystringidstring · uuidlast_updated_atstring · date-timelast_updated_bystringsource_queue_idstring · uuidtextstringrequiredcreated_atstring · date-timecreated_bystringdurationnumber · doubleDuration in milliseconds as a decimal number to support sub-millisecond precision
end_timestring · date-timeenvironmentstringerror_infoobjectShow child attributes
exception_typestringrequiredmessagestringtracebackstringrequiredfeedback_scoresarray of objectShow child attributes
Show array items
Aggregated feedback scores from all spans in this trace, averaged by score name
category_namestringcreated_atstring · date-timecreated_bystringlast_updated_atstring · date-timelast_updated_bystringnamestringrequiredreasonstringsourcestringrequiredsource_queue_idstring · uuidvaluenumberrequiredvalue_by_authorobjectidstring · uuidinputobjectShow child attributes
anyOf · 3 options
Option 1object
Option 2array of object
Option 3string
last_updated_atstring · date-timelast_updated_bystringmodelstringnamestringparent_span_idstring · uuidproject_idstring · uuidproject_namestringIf null, the default project is used
providerstringsourcestringstart_timestring · date-timerequiredtagsarray of stringShow child attributes
total_estimated_costnumbertotal_estimated_cost_versionstringtrace_idstring · uuidttftnumber · doubleTime to first token in milliseconds
typestringusageobjectOption 2objectErrorMessage_Public
codeinteger · int32detailsstringmessagestring[
{
"code": 0,
"details": "string",
"message": "string"
}
]objectErrorMessage_Public
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}