← API reference
Query / surfaces

getJourneyVersion

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

Arguments

TypeID of the journey version to fetch (prefix jnv).

Returns JourneyVersion

Scalar fields at a glance

journeyIdJourneyID!
versionInt!
definitionString!
sourceXMLString
↗ View the complete JourneyVersion type

Explore in a view

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

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