/v1/private/experiments/items/bulkRecord experiment items in bulkRecord experiment items in bulk with traces, spans, and feedback scores. Maximum request size is 4MB.
Request body
application/json
dataset_namestringrequiredexperiment_idstring · uuidOptional experiment ID. If provided, items will be added to the existing experiment and experimentName will be ignored. If not provided or experiment with that ID doesn't exist, a new experiment will be created with the given experimentName
experiment_namestringrequireditemsarray of objectrequiredShow child attributes
Show array items
dataset_item_idstring · uuidrequiredevaluate_task_resultobjectShow child attributes
anyOf · 3 options
feedback_scoresarray of objectShow child attributes
Show array items
category_namestringcreated_atstring · date-timecreated_bystringlast_updated_atstring · date-timelast_updated_bystringnamestringrequiredreasonstringsourcestringrequiredsource_queue_idstring · uuidvaluenumberrequiredvalue_by_authorobjectspansarray of objectShow child attributes
Show array items
end_timestring · date-timeenvironmentstringerror_infoobjectShow child attributes
exception_typestringrequiredmessagestringtracebackstringrequiredidstring · uuidlast_updated_atstring · date-timemodelstringnamestringparent_span_idstring · uuidproviderstringsourcestringstart_timestring · date-timerequiredtagsarray of stringShow child attributes
total_estimated_costnumbertotal_estimated_cost_versionstringttftnumber · doubleTime to first token in milliseconds
typestringusageobjecttraceobjectPlease provide either none, only one of evaluate_task_result or trace, but never both
Show child attributes
end_timestring · date-timeenvironmentstringidstring · uuidlast_updated_atstring · date-timenamestringproject_namestringIf null, the default project is used
sourcestringstart_timestring · date-timerequiredtagsarray of stringShow child attributes
thread_idstringttftnumber · doubleTime to first token in milliseconds
project_namestringProject for traces auto-created from items that provide evaluate_task_result (i.e. without an explicit trace). If null, the default project is used; relying on this fallback is deprecated, please provide project_name explicitly.
{
"dataset_name": "string",
"experiment_id": "00000000-0000-0000-0000-000000000000",
"experiment_name": "string",
"items": [
{
"dataset_item_id": "00000000-0000-0000-0000-000000000000",
"evaluate_task_result": {},
"feedback_scores": [
{
"category_name": "string",
"name": "string",
"reason": "string",
"source": "online_scoring",
"source_queue_id": "00000000-0000-0000-0000-000000000000",
"value": 0
}
],
"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",
"provider": "string",
"source": "evaluator",
"start_time": "2026-06-09T00:00:00Z",
"tags": [
"string"
],
"total_estimated_cost": 0,
"total_estimated_cost_version": "string",
"ttft": 0,
"type": "general",
"usage": {
"additionalProp1": 0
}
}
],
"trace": {
"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": {},
"name": "string",
"output": {},
"project_name": "string",
"source": "evaluator",
"start_time": "2026-06-09T00:00:00Z",
"tags": [
"string"
],
"thread_id": "string",
"ttft": 0
}
}
],
"project_name": "string"
}Responses
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}