Workspaces
Get workspace version
Determines whether the workspace should use Opik V1 (legacy workspace-scoped) or Opik V2 (project-first) navigation. The backend is the single authority for this determination, clients must never derive the version themselves.
Determination logic (priority order):
- V2 workspace allowlist (TOGGLE_V2_WORKSPACE_ALLOWLIST)
- Feature flag override (TOGGLE_FORCE_WORKSPACE_VERSION)
- Auth one-way V2 gate (authenticated mode only)
- Version 1 entity check (entities without project_id)
- Fallback on failure
In unauthenticated mode (authentication.enabled=false), auth steps are skipped. Called by the frontend on workspace load.
get/v1/private/workspaces/versions
Response
Workspace version