Skip to main content
POST
/
v2
/
projects
/
{project_id}
/
export_records
Export Records
curl --request POST \
  --url https://api.galileo.ai/v2/projects/{project_id}/export_records \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '{
  "column_ids": [
    "input",
    "output",
    "created_at"
  ],
  "export_format": "jsonl",
  "filters": [
    {
      "case_sensitive": true,
      "name": "input",
      "operator": "eq",
      "type": "text",
      "value": "example input"
    }
  ],
  "log_stream_id": "00000000-0000-0000-0000-000000000000",
  "root_type": "trace",
  "sort": {
    "ascending": false,
    "name": "created_at",
    "sort_type": "column"
  }
}'
"<any>"

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
Available options:
session,
trace,
span
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
Filters · array

Filters to apply on the export

  • LogRecordsIDFilter
  • LogRecordsDateFilter
  • LogRecordsNumberFilter
  • LogRecordsBooleanFilter
  • LogRecordsTextFilter
sort
object

Sort clause for the export

column_ids
string[] | null

Column IDs to include in export

export_format
enum<string>

Export format

Available options:
csv,
jsonl
redact
boolean
default:true

Redact sensitive data

Response

Successful Response

The response is of type any.

I