---
title: "Bulk download multiple files as a zip"
method: POST
path: "/api/workspaces/{slug}/files/zip"
tags: ["Files"]
---

# Bulk download multiple files as a zip

`POST /api/workspaces/{slug}/files/zip`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/workspaces/{slug}/files/zip`
- Auth: HTTP bearer

Capped at 50 files per request and 500 MB total uncompressed. Duplicate filenames are deduped server-side (`photo.jpg`, `photo (2).jpg`).

## Path parameters

- `slug` string, required

## Request body

- object
  - `fileIds` string[], required
  - `surfaceSlug` string, required

## Response `200`

application/zip stream

## Other responses

- `400`: Bundle exceeds 500 MB
- `404`: Unknown fileId or archived file

## Changes

- **2026-11-05** `767beae124a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trydock/apis/dock-rest-api/changes/api/workspaces/:slug/files/zip/post.md)

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
