POST
/v1/private/spans/batchCreate spansCreate spans
Request body
application/json
objectSpanBatch_Write
spansarray of objectrequiredShow child attributes
Show array items
end_timestring · date-timeenvironmentstringerror_infoobjectShow child attributes
exception_typestringrequiredmessagestringtracebackstringrequiredidstring · uuidinputobjectShow child attributes
anyOf · 3 options
Option 1object
Option 2array of object
Option 3string
last_updated_atstring · date-timemodelstringnamestringparent_span_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{
"spans": [
{
"end_time": "2026-06-09T00:00:00Z",
"environment": "string",
"error_info": {
"exception_type": "string",
"message": "string",
"traceback": "string"
},
"id": "00000000-0000-0000-0000-000000000000",
"input": {},
"last_updated_at": "2026-06-09T00:00:00Z",
"metadata": {},
"model": "string",
"name": "string",
"output": {},
"parent_span_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
}
}
]
}