← API reference
Query / surfaces

getWorkspaceVersion

Fetch one workspace version by ID. Returns null when the workspace is not visible to the caller, and when the version is still an open draft and the caller is not its author — matching what listWorkspaceVersions would show.

Arguments

TypeID of the workspace version to fetch (prefix wsv).

Returns WorkspaceVersion

Scalar fields at a glance

workspaceIdWorkspaceID!
versionInt!
definitionString!
sourceString
↗ View the complete WorkspaceVersion type

Explore in a view

Journeys and Workspaces
View exact SDL
"""
Fetch one workspace version by ID. Returns null when the workspace is not visible to the caller, and when the version is still an open draft and the caller is not its author — matching what `listWorkspaceVersions` would show.
"""
getWorkspaceVersion(
  """TypeID of the workspace version to fetch (prefix `wsv`)."""
  id: WorkspaceVersionID!
): WorkspaceVersion @topic(names: ["surfaces"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.