Skip to main content

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

The UploadedFileMetadata object contains:

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

The expires_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:
See Pipelines for more details.

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.