GET
/v1/private/spans/{id}Get span by idGet span by id
Parameters
idstring · uuidpathrequiredstrip_attachmentsbooleanqueryIf true, returns attachment references like [file.png]; if false, downloads and reinjects attachment content from S3 (default: false for backward compatibility)
Responses
objectSpan_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
typestringusageobject{
"comments": [
{
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"id": "00000000-0000-0000-0000-000000000000",
"last_updated_at": "2026-06-09T00:00:00Z",
"last_updated_by": "string",
"source_queue_id": "00000000-0000-0000-0000-000000000000",
"text": "string"
}
],
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"duration": 0,
"end_time": "2026-06-09T00:00:00Z",
"environment": "string",
"error_info": {
"exception_type": "string",
"message": "string",
"traceback": "string"
},
"feedback_scores": [
{
"category_name": "string",
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"last_updated_at": "2026-06-09T00:00:00Z",
"last_updated_by": "string",
"name": "string",
"reason": "string",
"source": "online_scoring",
"source_queue_id": "00000000-0000-0000-0000-000000000000",
"value": 0,
"value_by_author": {
"additionalProp1": {
"author": "string",
"category_name": "string",
"last_updated_at": "2026-06-09T00:00:00Z",
"reason": "string",
"source": "online_scoring",
"source_queue_id": "string",
"span_id": "string",
"span_type": "string",
"value": 0
}
}
}
],
"id": "00000000-0000-0000-0000-000000000000",
"input": [
{}
],
"last_updated_at": "2026-06-09T00:00:00Z",
"last_updated_by": "string",
"metadata": [
{}
],
"model": "string",
"name": "string",
"output": [
{}
],
"parent_span_id": "00000000-0000-0000-0000-000000000000",
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string",
"provider": "string",
"source": "evaluator",
"start_time": "2026-06-09T00:00:00Z",
"tags": [
"string"
],
"total_estimated_cost": 0,
"total_estimated_cost_version": "string",
"trace_id": "00000000-0000-0000-0000-000000000000",
"ttft": 0,
"type": "general",
"usage": {
"additionalProp1": 0
}
}objectSpan_Public
commentsarray of objectShow child attributes
created_atstring · date-timecreated_bystringdurationnumber · doubleDuration in milliseconds as a decimal number to support sub-millisecond precision
end_timestring · date-timeenvironmentstringfeedback_scoresarray of objectShow child attributes
idstring · uuidlast_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
typestringusageobject{
"comments": [
{
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"id": "00000000-0000-0000-0000-000000000000",
"last_updated_at": "2026-06-09T00:00:00Z",
"last_updated_by": "string",
"source_queue_id": "00000000-0000-0000-0000-000000000000",
"text": "string"
}
],
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"duration": 0,
"end_time": "2026-06-09T00:00:00Z",
"environment": "string",
"error_info": {
"exception_type": "string",
"message": "string",
"traceback": "string"
},
"feedback_scores": [
{
"category_name": "string",
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"last_updated_at": "2026-06-09T00:00:00Z",
"last_updated_by": "string",
"name": "string",
"reason": "string",
"source": "online_scoring",
"source_queue_id": "00000000-0000-0000-0000-000000000000",
"value": 0,
"value_by_author": {
"additionalProp1": {
"author": "string",
"category_name": "string",
"last_updated_at": "2026-06-09T00:00:00Z",
"reason": "string",
"source": "online_scoring",
"source_queue_id": "string",
"span_id": "string",
"span_type": "string",
"value": 0
}
}
}
],
"id": "00000000-0000-0000-0000-000000000000",
"input": [
{}
],
"last_updated_at": "2026-06-09T00:00:00Z",
"last_updated_by": "string",
"metadata": [
{}
],
"model": "string",
"name": "string",
"output": [
{}
],
"parent_span_id": "00000000-0000-0000-0000-000000000000",
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string",
"provider": "string",
"source": "evaluator",
"start_time": "2026-06-09T00:00:00Z",
"tags": [
"string"
],
"total_estimated_cost": 0,
"total_estimated_cost_version": "string",
"trace_id": "00000000-0000-0000-0000-000000000000",
"ttft": 0,
"type": "general",
"usage": {
"additionalProp1": 0
}
}