v34

latestOpenAPI 3.1.0raw.githubusercontent.com2026-01-2166128239.1 KB
workspace

Copy Workspace Data

Copy documents from source workspace to target workspace.

Requires:

  • User must have access to source workspace (RLS enforced)
  • Target workspace must exist and user must have access
  • Workspace-Key header with source workspace key (optional for public workspaces, required for private)
  • Target-Workspace-Key header with target workspace key (required)

Copies:

  • Document metadata (title, doc_date, shared status, etc.)
  • MinIO encrypted files (downloaded to server memory, re-encrypted, uploaded)
  • Qdrant vectors (with updated doc_ext_id and chunk_ext_id references)
post/api/workspace/{workspace_ext_id}/copy

Path parameters

workspace_ext_idstring required

Headers

workspace-keystring
target-workspace-keystring

Request body

target_workspace_ext_idstring required
itemsstring[] required

List of document external IDs to copy (e.g., ['doc-a1b2c3d4', 'doc-e5f6g7h8'])

Response

Successful Response

detailstring required
documents_copiedinteger