Call each function by its full path. A question mark marks an optional field.
mobile/v1/catalog:course
{
expectedTenantId?: string
courseId: string
enrollmentId?: string
includeWebPlacement?: true
}Response type
{
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
{
expectedTenantId?: string
courseId: string
}Response type
{
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
{
expectedTenantId?: string
}Response type
{
enrolledCount: number
}mobile/v1/catalog:list
{
expectedTenantId?: string
}Response type
{
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
{
expectedTenantId?: string
courseId: string
enrollmentId?: string
}Response type
{
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
}
}