v5
latestOpenAPI 3.1.02026-08-025631,1012.8 MBCollections
Export Collection
Export collection documents to JSON, CSV, or Parquet format.
**Export Formats:**
- **JSON**: Line-delimited JSON (JSONL) format. Good for streaming.
- **CSV**: Comma-separated values. Best for spreadsheets.
- **PARQUET**: Columnar format (default). Best for data pipelines.
**Vector Export:**
Vectors are large and exported separately. When `include_vectors=True`,
a separate file is created for vectors with document_id mapping.
**Field Selection:**
Use `select_fields` to export only specific fields, reducing file size.
**Filtering:**
Apply filters to export a subset of documents.
**Response:**
Returns presigned download URLs valid for 1 hour.
**Limits:**
- Large exports may take time. Consider using `sample_size` for testing.
- Vector exports significantly increase processing time.
post/v1/collections/{collection_identifier}/export
Path parameters
collection_identifierstring required
The ID or name of the collection to export
The ID or name of the collection to export
Request body
Example request
{
"select_fields": [
"document_id",
"metadata.title",
"metadata.category"
],
"filters": {
"AND": [
{
"field": "name",
"operator": "eq",
"value": "John"
},
{
"field": "age",
"operator": "gte",
"value": 30
}
],
"OR": [
{
"field": "status",
"operator": "eq",
"value": "active"
},
{
"field": "role",
"operator": "eq",
"value": "admin"
}
],
"NOT": [
{
"field": "department",
"operator": "eq",
"value": "HR"
},
{
"field": "location",
"operator": "eq",
"value": "remote"
}
],
"case_sensitive": true
}
}Response
Successful Response
Example response
{
"document_count": 10000,
"download_url": "https://s3.amazonaws.com/bucket/org_xxx/ns_xxx/api_collections_export/col_xxx/v1/documents.parquet?...",
"exported_at": "2024-01-15T10:30:00Z",
"file_size_bytes": 5242880,
"format": "parquet",
"s3_path": "s3://bucket/org_xxx/ns_xxx/api_collections_export/col_xxx/v1/documents.parquet"
}