Documentation Index
Fetch the complete documentation index at: https://mintlify.com/diced/zipline/llms.txt
Use this file to discover all available pages before exploring further.
Export Server Data
GET /api/server/export
Export all server data including users, files, URLs, settings, and metrics.
Request
Exclude metrics from export (reduces file size significantly). Any value enables this option.
Return only entity counts instead of full export. Set to
"true" to enable.Full export with metrics
Export without metrics
Get export counts only
Response (Counts Only)
Whencounts=true:
Example Response
Response (Full Export)
Returns a JSON file with the following structure:Version information
Export request metadata
Exported data
The export includes metadata only. Actual file contents must be backed up separately from your datasource (S3 bucket, local storage, etc.).
Import Server Data
POST /api/server/import/v4
Import data from a Zipline v4 export file.
Request
Complete Zipline v4 export object
Import configuration options
Import full export
Import and merge with current user
Response
Count of successfully imported entities
Example Response
Import Behavior
Conflict Handling
The import process skips entities that already exist:- Users: Skipped if username or ID already exists
- OAuth Providers: Skipped if provider + oauthId combination exists
- Quotas: Skipped if user already has a quota
- Passkeys: Skipped if passkey name already exists for user
- Folders: Skipped if folder name already exists for user
- Files: Skipped if file name already exists
- Tags: Skipped if tag name + user + createdAt combination exists
- URLs: Skipped if code already exists for user
- Invites: Skipped if invite code already exists for inviter
User Merging
WhenmergeCurrentUser is set:
- Files, URLs, folders, and tags from the specified user ID are imported under your current user
- User profile data (avatar, totpSecret, view settings) are merged
- Useful for migrating your personal data between instances
Data Relationships
The import preserves relationships:- Folder parent-child hierarchies
- File-folder associations
- Tag-file associations
- User ownership of all entities
Rate Limiting
This endpoint is rate-limited to 1 request per 5 seconds due to the intensive nature of imports.Body Size Limit
Import endpoint accepts up to 24GB request body to support large exports.Errors
- 403 Forbidden: Not a SUPERADMIN
- 400 Bad Request: Invalid export format
- 429 Too Many Requests: Rate limit exceeded
Backup Strategy
Export Format Versions
- v4: Current format (Zipline v3+)
- v3: Legacy format (deprecated)