/v1/private/traces/searchSearch tracesSearch traces
Request body
application/json
excludearray of stringFields to exclude from the response
Show child attributes
filtersarray of objectShow child attributes
Show array items
fieldstringkeystringoperatorstringvaluestringfrom_timestring · date-timeFilter traces created from this time (ISO-8601 format).
last_retrieved_idstring · uuidlimitinteger · int32Max number of traces to be streamed
project_idstring · uuidproject_namestringstrip_attachmentsbooleanIf true, returns attachment references like [file.png]; if false, downloads and reinjects stripped attachments
to_timestring · date-timeFilter traces created up to this time (ISO-8601 format). If not provided, defaults to current time. Must be after 'from_time'.
truncatebooleanTruncate input, output and metadata to slim payloads
{
"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",
"strip_attachments": false,
"to_time": "2026-06-09T00:00:00Z",
"truncate": true
}Responses
Show array items
anyOf · 2 options
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_typestringrequiredmessagestringtracebackstringrequiredexperimentobjectExperiment reference with ID, name, dataset ID, and dataset item ID
Show child attributes
dataset_idstring · uuidrequiredDataset ID
dataset_item_idstring · uuidrequiredDataset Item ID
idstring · uuidrequiredExperiment ID
namestringrequiredExperiment name
feedback_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_authorobjectguardrails_validationsarray of objectShow child attributes
Show array items
checksarray of objectShow child attributes
Show array items
namestringresultstringspan_idstring · uuidhas_tool_spansbooleanidstring · uuidinputobjectShow child attributes
anyOf · 3 options
last_updated_atstring · date-timelast_updated_bystringllm_span_countinteger · int32namestringproject_idstring · uuidprovidersarray of stringList of unique provider names from all spans in this trace, sorted alphabetically
Show child attributes
sourcestringspan_countinteger · int32span_feedback_scoresarray of objectAggregated feedback scores from all spans in this trace, averaged by score name
Show child attributes
start_timestring · date-timerequiredtagsarray of stringShow child attributes
thread_idstringtotal_estimated_costnumberttftnumber · doubleTime to first token in milliseconds
usageobjectvisibility_modestringcodeinteger · int32detailsstringmessagestring[
{
"code": 0,
"details": "string",
"message": "string"
}
]codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}