Get Achievements
Authentication Required: Any authenticated user
GET /api/achievements
Learner ID to get achievements for (required for PARENT/ADMIN, defaults to authenticated user for LEARNER)
Authorization
- LEARNER: Can only access their own achievements
- PARENT: Can access their children’s achievements with learnerId param
- ADMIN: Can access any learner’s achievements
Response
Array of achievement records
Response Example
Error Codes
- 400 - learnerId is required
- 401 - Unauthorized
- 403 - Forbidden
Common Achievement Types
Achievements are automatically awarded when learners reach specific milestones:Score-Based
- FIRST_PERFECT - First quiz with 100% score
- PERFECT_STREAK_3 - Three perfect scores in a row
- HIGH_SCORE_10 - Ten quizzes with 90%+ scores
Lesson Completion
- FIRST_LESSON - Completed first lesson
- LESSONS_10 - Completed 10 lessons
- LESSONS_50 - Completed 50 lessons
- LESSONS_100 - Completed 100 lessons
Streak-Based
- STREAK_3 - Three-day learning streak
- STREAK_7 - Week-long learning streak
- STREAK_30 - Month-long learning streak
Subject Mastery
- SUBJECT_EXPLORER - Tried lessons in 3+ different subjects
- SUBJECT_MASTER - Completed 20+ lessons in a single subject
Achievements are checked and awarded automatically after each quiz submission. The system analyzes lesson history to determine which achievements have been earned.