Overview
Datalab provides file storage for documents you want to process with workflows or reuse across multiple API calls. Uploaded files get a reference URL (datalab://file-xxx) that you can use in workflows.
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):