Download Zip
Filesystem
Download Zip
Download a workspace directory as a ZIP archive.
GET
Download Zip
Overview
Streams a ZIP archive of a workspace directory. Passpath to archive a subdirectory, or omit it to archive the entire workspace root. The response is application/zip with a Content-Disposition: attachment header; point your HTTP client at a file when calling this endpoint from the CLI.
Path Parameters
Browser session ID (UUID).
Query Parameters
Workspace-relative directory to archive. When empty/omitted, the full workspace is archived as
workspace.zip.Example Request
Response
Success Response (200)
Binary response withContent-Type: application/zip and a Content-Disposition: attachment; filename="<path>.zip" header. When path is omitted the filename is workspace.zip; otherwise slashes in the path are replaced with dashes (e.g. exports/csv becomes exports-csv.zip).
Error Responses
| Status | Description |
|---|---|
400 | Invalid path. |
401 | Unauthorized — invalid or missing API key. |
404 | Session or path not found. |
413 | Zip archive would exceed the 500 MiB server-side cap (MAX_ZIP_BYTES). |