Export Records
Authorizations
Path Parameters
Body
Request schema for exporting log records (sessions, traces, spans).
The root-level type of a logged step hierarchy.
Maps fine-grained StepType values to the three top-level categories used throughout the platform: session, trace, and span.
session, trace, span Column IDs to include in the export. Applies only to CSV exports.
Export format
csv, jsonl Redact sensitive data
Optional filename for the exported file
When true, export only enabled scorer metrics with computed values (success or roll_up). For session exports, omit entire sessions unless every enabled metric at session, trace, or span level is ready (success, roll_up, or not_applicable).
Log stream id associated with the traces.
Experiment id associated with the traces.
Metrics testing id associated with the traces.
Filters to apply on the export
- LogRecordsIDFilter
- LogRecordsDateFilter
- LogRecordsNumberFilter
- LogRecordsBooleanFilter
- LogRecordsCollectionFilter
- LogRecordsTextFilter
- LogRecordsFullyAnnotatedFilter
Sort clause for the export. Defaults to native sort (created_at, id descending).
If True, include per-row scorer metadata (the dict returned alongside the score by code-based scorers via the (score, metadata) tuple-return contract) on each MetricSuccess in the export. Off by default to keep payloads small for callers that don't need it.
Response
Successful Response