Skip to main content
POST
Export Records

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

project_id
string<uuid4>
required

Body

application/json

Request schema for exporting log records (sessions, traces, spans).

root_type
enum<string>
required

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.

Available options:
session,
trace,
span
column_ids
string[] | null

Column IDs to include in the export. Applies only to CSV exports.

export_format
enum<string>
default:jsonl

Export format

Available options:
csv,
jsonl,
jsonl_flat
redact
boolean
default:true

Redact sensitive data

file_name
string | null

Optional filename for the exported file

export_computed_metrics_only
boolean
default:false

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). Not supported with export_format=jsonl_flat (returns 422); use jsonl or csv instead.

log_stream_id
string<uuid4> | null

Log stream id associated with the traces.

experiment_id
string<uuid4> | null

Experiment id associated with the traces.

metrics_testing_id
string<uuid4> | null

Metrics testing id associated with the traces.

filters
(LogRecordsIDFilter · object | LogRecordsDateFilter · object | LogRecordsNumberFilter · object | LogRecordsBooleanFilter · object | LogRecordsCollectionFilter · object | LogRecordsTextFilter · object | LogRecordsFullyAnnotatedFilter · object)[]

Filters to apply on the export

sort
LogRecordsSortClause · object | null

Sort clause for the export. Defaults to native sort (created_at, id descending).

include_code_metric_metadata
boolean
default:false

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