Skip to main content
POST
/
v2
/
annotation_queues
/
{queue_id}
/
records
/
export
/
url
Export Annotation Queue Records Url
curl --request POST \
  --url https://api.galileo.ai/v2/annotation_queues/{queue_id}/records/export/url \
  --header 'Content-Type: application/json' \
  --header 'Splunk-AO-API-Key: <api-key>' \
  --data '
{
  "record_selector": {
    "record_ids": [
      "<string>"
    ],
    "type": "record_ids"
  },
  "column_ids": [
    "<string>"
  ],
  "export_format": "jsonl",
  "redact": true,
  "file_name": "<string>",
  "export_computed_metrics_only": false
}
'
{
  "url": "<string>",
  "url_expires_at": "2023-11-07T05:31:56Z",
  "file_name": "<string>",
  "content_type": "<string>"
}

Authorizations

Splunk-AO-API-Key
string
header
required

Path Parameters

queue_id
string<uuid4>
required

Body

application/json

Request to export selected annotation queue records.

record_selector
AnnotationQueueRecordsByRecordIDs · object
required

Selector to specify which queue records to export (either by record IDs or filter tree)

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.

Response

Successful Response

Response for an annotation queue export written to object storage.

url
string
required
url_expires_at
string<date-time>
required
file_name
string
required
content_type
string
required