Download Document ZIPs
How to request cached ZIP archives for all or selected documents in organization, cluster, and location scopes.
Document ZIP downloads are prepared asynchronously by the background-jobs host. The first request usually returns a preparation status. When the archive is ready, the same request returns a temporary download URL.
Scope endpoints
Cluster documents:
GET /v1/document-libraries/cluster/{clusterId}/documents/zip/status
GET /v1/document-libraries/cluster/{clusterId}/documents/zip/download
POST /v1/document-libraries/cluster/{clusterId}/documents/zip/status
POST /v1/document-libraries/cluster/{clusterId}/documents/zip/downloadLocation documents:
GET /v1/document-libraries/location/{locationId}/documents/zip/status
GET /v1/document-libraries/location/{locationId}/documents/zip/download
POST /v1/document-libraries/location/{locationId}/documents/zip/status
POST /v1/document-libraries/location/{locationId}/documents/zip/downloadOrganization documents:
GET /v1/document-libraries/organization/{organizationId}/documents/zip/status
GET /v1/document-libraries/organization/{organizationId}/documents/zip/download
POST /v1/document-libraries/organization/{organizationId}/documents/zip/status
POST /v1/document-libraries/organization/{organizationId}/documents/zip/downloadAll documents
Call the GET download endpoint without folderPath, or call the POST download endpoint with {}.
POST /v1/document-libraries/location/{locationId}/documents/zip/download
Content-Type: application/json{}If the ZIP is not ready, the API returns 202 Accepted with progress fields. Poll the matching status endpoint or repeat the download request.
Folder documents
Use the GET endpoints with folderPath when only one document folder should be archived.
GET /v1/document-libraries/location/{locationId}/documents/zip/download?folderPath=permits/2026ZIP entry names use logical document folder paths. If a document is moved from permits/2026 to archive/permits/2026, new archives use the new folder path even when the stored object key remains unchanged.
Selected documents
Use the POST endpoints with documentIds when the user chooses specific files.
{
"documentIds": [
"44444444-4444-4444-4444-444444444444",
"55555555-5555-5555-5555-555555555555"
]
}Every selected document must belong to the requested scope. Equivalent selections reuse the same active or completed archive even when IDs are sent in a different order.
Response
{
"status": 3,
"progressPercent": 100,
"progressBytes": 123456,
"totalBytes": 123456,
"archiveSizeBytes": 98304,
"preparedAtUtc": "2026-05-31T12:00:00Z",
"statusUpdatedAtUtc": "2026-05-31T12:00:00Z",
"downloadUrl": "https://storage.example.test/presigned",
"expiresAt": "2026-05-31T12:15:00Z",
"fileName": "site-a-selected-documents.zip",
"error": null
}status uses the shared ZIP preparation enum: 0 none, 1 queued, 2 preparing, 3 ready, and 4 failed.
Cached ZIP outputs are removed by the configured ZIP retention cleanup. Clients should treat downloadUrl as temporary and request the archive again when it expires.
Project archives
Use POST /v1/document-libraries/project/{projectId}/zip-operations with {}, { "folderPath": "plans" }, or { "documentIds": ["…"] }, then poll the returned operation at the same library. The archive contains an exact authorized snapshot of that Project only. Polling never starts work. Current permissions and sources are checked again before publication and signed-link issuance. A changed source returns document_zip_source_changed (409); request a new operation explicitly. Deleting the Project retires its archive work and schedules cleanup.
Public share attachments
Existing public share links can prepare ZIPs without an account. Their UID, password, expiry and captured membership are unchanged. Model assets and internal viewer configuration are not attachment downloads.
POST /v1/spatial/shared/{uid}/zip-operations
Content-Type: application/json{
"password": "share-password-if-required",
"documentIds": ["44444444-4444-4444-4444-444444444444"]
}Omit password for an unprotected link. Omit documentIds for all shared attachments; an explicit list must be nonempty and wholly within the share. To download a folder, submit the shared document IDs shown in that folder, including its descendants. The server never expands the selection to private files. Logical folder paths and duplicate filenames are preserved safely in the archive.
The response is the ZIP operation shape above, with operationId. Preparation returns 202; a cached ready archive returns 200. Equivalent selections reuse the same operation. Poll every 2–5 seconds:
POST /v1/spatial/shared/{uid}/zip-operations/{operationId}
Content-Type: application/json{"password": "share-password-if-required"}The status POST only reads existing work. Passwords stay out of URLs and are never stored in the task. Every admission and status request checks current link access, password, expiry, revocation, delivery entitlements and exact selected source versions. Operations cannot be read through a different share. Responses disable caching. A missing/wrong password returns 401, unavailable share/selection/operation 404, changed source files 409, and expired/revoked links 410. Admission is limited to ten requests per minute per IP (429); polling uses the API's normal request limits.
When status is 3, open downloadUrl directly. Its attachment response streams through the browser download manager; do not fetch every source file or buffer the ZIP in browser memory. Signed URLs remain short-lived bearer links under the existing storage download policy; revocation prevents issuing new URLs.
This uses the existing document archive background worker and cache. Cancelling polling stops the client waiting; already queued server work can finish and be reused. Retry admission after a failed task or a 409 to prepare a fresh archive. No public links need to be recreated.