🧭 How Users Access the Learning Path Homepage

The most common way users reach the Learning Path Homepage (LP HP) is through the catalog page. Each catalog tile includes a View button, which redirects the user to the corresponding Learning Path homepage. To support this behavior, each catalog node(LP) includes a Call to Action (CTA) with the action ID VIEW_LP. This CTA provides all the necessary metadata for redirecting the user to the correct Learning Path.
A Call to Action (CTA) object defines which actions a user can perform on a particular Learning Path. The available CTAs depend on the current learning state for that Learning Path β€” including enrollment status, completion, scores, or access eligibility.
Below is an example of the getCatalogData query, which returns a list of catalog items along with the CTAs available for each Learning Path based on the current user’s learning state.
query getCatalogData {
  getCatalogData(first: 1) {
    edges {
      node {
        cta {
          actionId
          title
          arguments {
            key
            value
          }
          metadata {
            key
            value
          }
        }
      }
    }
  }
}

πŸ“₯ Retrieving a Learning Path Object

To retrieve Learning Path data, you can use the getLearningPath query with the lpId argument provided in the VIEW_LP CTA:
query getLearningPath {
  getLearningPath(lpId: 40) {
    id
    userEnrolled
    modulesNumber
    activitiesNumber
    certificationEnabled
    infoMessage {
      type
      title
      description
      status
      cta {
        title
        actionId
        arguments {
          key
          value
        }
        metadata {
          key
          value
        }
      }
    }
    cta {
      title
      actionId
      arguments {
        key
        value
      }
      metadata {
        key
        value
      }
    }
    navigation {
      edgeId
      edgeRid
      title
      description
      navigationPath
      locked
      lockReasons
      image {
        url
      }
      attempt {
        id
        metrics {
          globalScore
          progress
          status
        }
      }
      attemptQuote {
        used
        allowed
      }
      learningContentType
      cta {
        title
        actionId
        arguments {
          key
          value
        }
        metadata {
          key
          value
        }
      }
    }
    training {
      title
      description
      duration {
        name
      }
      domain {
        name
      }
      image {
        alt
        title
        url
      }
      attempt {
        metrics {
          globalScore
          progress
          status
        }
      }
    }
  }
}
The example getLearningPath query response can be structured into distinct sections:
Using the information provided by the API, you can build the Learning Path Homepage as demonstrated in our learner area. At this point, all training content will appear locked, as the user has not yet enrolled in the Learning Path. For details on how users can be enrolled, please refer to the Learning Path Enrollment section.