v51

OpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-01308532588.1 KB
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):

  1. V2 workspace allowlist (TOGGLE_V2_WORKSPACE_ALLOWLIST)
  2. Feature flag override (TOGGLE_FORCE_WORKSPACE_VERSION)
  3. Auth one-way V2 gate (authenticated mode only)
  4. Version 1 entity check (entities without project_id)
  5. 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

opik_version'version_1' | 'version_2'

The determined Opik navigation version for this workspace. 'version_1' = legacy workspace-scoped navigation, 'version_2' = new project-first navigation.