Mobile API v1

Course catalog

List courses, enroll a learner and open the outline for an enrollment.

On this page

Call each function by its full path. A question mark marks an optional field.

mobile/v1/catalog:course

query · Arguments
{
  expectedTenantId?: string
  courseId: string
  enrollmentId?: string
  includeWebPlacement?: true
}
Response type
Result
{
  webPlacement?: string
  courseId: string
  title: string
  contentVersion: string
  enrollment: null | {
    enrollmentId: string
    progress: {
      status: "not_started" | "in_progress" | "completed"
      progressPercent: number | null
      startedAt: string | null
      completedAt: string | null
      updatedAt: string
    }
  }
  access: {
    state: "available" | "locked" | "not_enrolled" | "unavailable"
    reason: string | null
    unlockRequirement: null | {
      kind: "activity_completion" | "course_completion" | "release" | "previous_activity"
      title: string
      courseId: string
      activityId: string | null
      satisfied: boolean
      opensAt: string | null
      mode: "all" | "any" | null
      requirements: Array<{
        courseId: string
        activityId: string | null
        title: string
        satisfied: boolean
      }>
    }
  }
  counts: {
    activities: number
    completed: number
  }
  modules: Array<{
    moduleId: string
    title: string
    position: number
    activities: Array<{
      reusableScenario?: true
      activityId: string
      title: string
      position: number
      type: "text" | "video" | "document" | "link" | "embed" | "quiz" | "scorm" | "assignment" | "learning_check" | "form" | "unsupported"
      lesson: null | {
        id: string
        title: string
      }
      completionMode: "mark" | "quiz" | "scorm" | "form_submit" | "web_only" | "none"
      completed: boolean
      completedAt: string | null
      latestScorePercent: number | null
      locked: boolean
    }>
  }>
}

mobile/v1/catalog:enroll

mutation · Arguments
{
  expectedTenantId?: string
  courseId: string
}
Response type
Result
{
  courseId: string
  enrollmentId: string
  progress: {
    status: "not_started" | "in_progress" | "completed"
    progressPercent: number | null
    startedAt: string | null
    completedAt: string | null
    updatedAt: string
  }
  alreadyEnrolled: boolean
}

mobile/v1/catalog:ensureEnrollments

mutation · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  enrolledCount: number
}

mobile/v1/catalog:list

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  courses: Array<{
    courseId: string
    title: string
    categories: Array<{
      id: string
      name: string
    }>
    artwork: null | {
      url: string
      altText: string
      width: number
      height: number
      focalPoint: {
        x: number
        y: number
      }
    }
    offering: {
      type: "internal"
    } | {
      type: "commercial"
      priceCents: number
      currency: string
    }
    action: "continue" | "enroll" | "assigned_only" | "purchase" | "unavailable"
    enrollment: null | {
      enrollmentId: string
      progress: {
        status: "not_started" | "in_progress" | "completed"
        progressPercent: number | null
        startedAt: string | null
        completedAt: string | null
        updatedAt: string
      }
    }
    access: {
      state: "available" | "locked" | "not_enrolled" | "unavailable"
      reason: string | null
      unlockRequirement: null | {
        kind: "activity_completion" | "course_completion" | "release" | "previous_activity"
        title: string
        courseId: string
        activityId: string | null
        satisfied: boolean
        opensAt: string | null
        mode: "all" | "any" | null
        requirements: Array<{
          courseId: string
          activityId: string | null
          title: string
          satisfied: boolean
        }>
      }
    }
  }>
  truncated: boolean
}

mobile/v1/catalog:start

mutation · Arguments
{
  expectedTenantId?: string
  courseId: string
  enrollmentId?: string
}
Response type
Result
{
  courseId: string
  enrollmentId: string
  mode: "started" | "resumed" | "review"
  progress: {
    status: "not_started" | "in_progress" | "completed"
    progressPercent: number | null
    startedAt: string | null
    completedAt: string | null
    updatedAt: string
  }
}

All API modules · OpenRPC 1.3.2 JSON