Skills Productivity Managing Training Modules with MindTickle API

Managing Training Modules with MindTickle API

v20260423
mindtickle-hello-world
This guide provides a minimal working example demonstrating core MindTickle API functionality. It shows how to programmatically create structured training modules (including videos and quizzes), assign them to specific teams or users with deadlines, and track user progress and overall completion rates using analytics endpoints. It is ideal for integrating Learning Management System (LMS) functionality into internal corporate tools and automating onboarding processes.
Get Skill
120 downloads
Overview

MindTickle Hello World

Overview

Minimal working examples demonstrating core MindTickle API functionality.

Instructions

Step 1: Create Training Module

const module = await client.modules.create({
  title: 'Q1 Product Update Training',
  type: 'course',
  description: 'Learn about new product features for Q1',
  tags: ['product', 'q1-2026'],
  content: [
    { type: 'video', url: 'https://videos.example.com/q1-update.mp4', title: 'Overview' },
    { type: 'quiz', questions: [
      { text: 'What is the key new feature?', type: 'multiple_choice',
        options: ['Feature A', 'Feature B', 'Feature C'], correct: 0 }
    ]}
  ]
});
console.log(`Module created: ${module.id}`);

Step 2: Assign to Sales Reps

await client.assignments.create({
  module_id: module.id,
  assignees: { type: 'team', team_ids: ['team_sales_west', 'team_sales_east'] },
  due_date: '2026-04-15',
  reminder: { enabled: true, days_before: [7, 3, 1] }
});

Step 3: Track Completion

const progress = await client.analytics.moduleProgress(module.id);
progress.users.forEach(u =>
  console.log(`${u.name}: ${u.completion}% | Score: ${u.quiz_score || 'N/A'}`)
);
console.log(`Overall: ${progress.completion_rate}% complete`);

Error Handling

ErrorCauseSolution
Auth errorInvalid credentialsCheck MINDTICKLEAPIKEY
Not foundInvalid endpointVerify API URL
Rate limitToo many requestsImplement backoff

Resources

Next Steps

See mindtickle-local-dev-loop.

Info
Category Productivity
Name mindtickle-hello-world
Version v20260423
Size 1.98KB
Updated At 2026-04-28
Language