Overview
Objects provide a way to store and manage files, data, and other resources that can be shared across Devboxes or made publicly available. The 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.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.Completing Object Upload
Finalize an object upload after the content has been uploaded to the provided URL.Deleting Objects
Remove an object permanently from your account storage.Deleting an object is permanent and cannot be undone. Any Devboxes or applications relying on this object will no longer be able to access it.
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
-
Optimize content types: Set accurate content types for proper handling
text/csv
for CSV filesapplication/json
for JSON dataimage/png
for PNG images
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