Snapshots
List Snapshots
Get a list of available snapshot files in the snapshot directory.Export Workspace Snapshot
Export a workspace to a compressed zip archive and download it.| Field | Type | Required | Description |
|---|---|---|---|
workspace | string | Yes | Name of the workspace to export |
- On success: Returns the zip file as a binary download
- Response headers include:
Content-Disposition: attachment; filename=<workspace>_<timestamp>.zipContent-Type: application/zipX-Snapshot-Size: <size_in_bytes>
Import Workspace Snapshot
Import a workspace from an uploaded zip file or URL. Import from file upload:| Parameter | Type | Required | Description |
|---|---|---|---|
file | file | No* | Snapshot zip file to import |
url | string | No* | URL of snapshot to download and import |
force | bool | No | Overwrite existing workspace if present (default: false) |
skip_db | bool | No | Skip database import, extract files only (default: false) |
file or url is required.
Response (200):
Delete Snapshot
Delete a snapshot file by name.Legacy Endpoint
The legacy snapshot download endpoint is still available for backward compatibility:Data Source Values
When a workspace is imported, itsdata_source field is set to indicate how it was created:
| Value | Description |
|---|---|
local | Created locally via scan (default) |
cloud | Synced from cloud storage |
imported | Imported from snapshot file |
Security Considerations
Warning: Only import snapshots from trusted sources! Imported workspace data may contain:- Database records that could conflict with existing data
- File paths that reference external resources
- Configuration that may not be compatible
skip_db=true parameter if you only need the files without database import.