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
redact
boolean
default:true

Redact sensitive data

file_name
string | null

Optional filename for the exported file

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).

Response

Successful Response