Overview
Storage Objects provide a way to store and manage files, data, and other resources that can be shared across Devboxes or made publicly available. The Storage Objects API supports uploading, downloading, listing, and managing access to stored content.Key Features
- File Storage: Upload and store files of various types and sizes
- Public/Private Access: Control whether objects are publicly accessible or private
- Download URLs: Generate secure, time-limited download URLs for objects
- Cross-Devbox Sharing: Access objects from multiple Devboxes within your account
Creating Objects
Upload a new object to store files or data that can be accessed by your Devboxes.Uploading Text Content
Uploading a File
Uploading and mounting an Archive Object
You can mount an archive object to a Devbox to make it available to the Devbox’s filesystem.Archive objects are automatically extracted to the specified path.
- .gz
- .tar
- .tgz
- .tar.gz
Retrieving Objects
Get details about a specific object, including its metadata and access information.Listing Objects
Retrieve a list of all objects in your account with optional filtering and pagination.Listing Public Objects
Browse objects that have been made publicly accessible.Generating Download URLs
Create secure, time-limited URLs for downloading object content.Deleting Objects
Remove an object permanently from your account storage.Best Practices
Storage Guidelines
-
Use descriptive names: Choose clear, meaningful names for your objects
- ✅
training-data-2024.csv - ❌
data1.csv
- ✅
-
Set appropriate access levels: Use public objects only when necessary
- Private: Sensitive data, internal files
- Public: Shared resources, documentation
- Manage object lifecycle: Regularly review and clean up unused objects
Common Use Cases
-
Training Data: Store datasets for AI model training
-
Configuration Files: Share config files across Devboxes
-
Assets and Resources: Store images, documents, and other files
-
Backup and Snapshots: Store backup data and snapshots
