Overview
Datalab provides file storage for documents you want to process with pipelines or reuse across multiple API calls. Uploaded files get a reference URL (datalab://file-xxx) that you can use in pipelines.
Upload Files
Upload one or more files to Datalab storage:Upload Result
TheUploadedFileMetadata object contains:
| Field | Type | Description |
|---|---|---|
file_id | int | Unique file ID |
original_filename | str | Original filename |
content_type | str | MIME type |
reference | str | Datalab reference URL (datalab://file-xxx) |
upload_status | str | Status: "pending", "completed", "failed" |
file_size | int | File size in bytes |
created | str | Upload timestamp |
List Files
List all uploaded files with pagination:Pagination
Get File Metadata
Get details for a specific file:Get Download URL
Generate a presigned URL to download a file:Expiration Options
Theexpires_in parameter accepts values from 60 to 86400 seconds (1 minute to 24 hours):
Delete File
Delete an uploaded file:Using Files in Pipelines
File references can be used as input to pipelines:Async Usage
Example: Batch Upload and Process
Supported File Types
See Supported File Types for a complete list of supported formats.Next Steps
File Upload Recipe
Step-by-step guide for uploading and managing files via the API.
Pipelines
Chain processors into versioned, reusable pipelines.
Conversion SDK
Convert documents to Markdown, HTML, JSON, or chunks.
API Limits
Understand rate limits and file size constraints.