Mobile API v1

Progress and quizzes

Read learning records, record completion and manage quiz attempts.

On this page

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

mobile/v1/progress:beginQuiz

mutation · Arguments
{
  expectedTenantId?: string
  courseId: string
  activityId: string
  enrollmentId?: string
}
Response type
Result
{
  admissionId: string | null
}

mobile/v1/progress:completeActivity

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

mobile/v1/progress:history

query · Arguments
{
  expectedTenantId?: string
  limit?: number
  before?: string
}
Response type
Result
{
  items: Array<{
    kind: "completion" | "quiz_attempt"
    occurredAt: string
    courseId: string
    courseTitle: string
    activityId: string
    activityTitle: string
    scorePercent: number | null
    passed: boolean | null
  }>
  nextBefore: string | null
}

mobile/v1/progress:quizAttempts

query · Arguments
{
  expectedTenantId?: string
  activityId: string
}
Response type
Result
{
  attempts: Array<{
    scorePercent: number
    passed: boolean
    recordedAt: string
  }>
}

mobile/v1/progress:submitQuiz

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  admissionId?: string
  courseId: string
  activityId: string
  enrollmentId?: string
  responses: Array<{
    questionId: string
    optionId: string
  }>
  occurredAt?: number
}
Response type
Result
{
  clientOpId: string
  courseId: string
  activityId: string
  scorePercent: number
  passPercent: number
  passed: boolean
  recordedAt: string
  progress: {
    status: "not_started" | "in_progress" | "completed"
    progressPercent: number | null
    startedAt: string | null
    completedAt: string | null
    updatedAt: string
  }
  replayed: boolean
}

mobile/v1/progress:summary

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  courses: Array<{
    courseId: string
    enrollmentId: string
    title: string
    artwork: null | {
      url: string
      altText: string
      width: number
      height: number
      focalPoint: {
        x: number
        y: number
      }
    }
    progress: {
      status: "not_started" | "in_progress" | "completed"
      progressPercent: number | null
      startedAt: string | null
      completedAt: string | null
      updatedAt: string
    }
    counts: {
      activities: number
      completed: number
    }
  }>
}

All API modules · OpenRPC 1.3.2 JSON