Get User Achievements
Retrieve all achievements (locked and unlocked) for a user, including progress towards each milestone.Path Parameters
MongoDB ObjectId of the user
This endpoint does not require authentication. Achievements are publicly viewable.
Response
Indicates if the request was successful
Achievements data object
Available Achievements
🎯 Primera Rutina
Requirement: Complete 1 workoutUnlock your first achievement by completing your very first training session.
🔥 Racha de 7 días
Requirement: 7-day streakTrain for 7 consecutive days without missing a day.
💪 Dedicación
Requirement: 10 workouts completedComplete a total of 10 workout sessions.
👑 Guerrero
Requirement: 50 workouts completedReach the milestone of 50 completed workout sessions.
🌟 Leyenda
Requirement: 30-day streakMaintain a training streak for an entire month (30 consecutive days).
🏆 Incansable
Requirement: 100 exercises completedComplete 100 individual exercises across all your workouts.
📅 Consistente
Requirement: Maximum streak ≥ 28 daysDemonstrate consistency by achieving at least a 4-week training streak.
Example Request
Example Response
Achievement Logic
Achievements are evaluated based on the user’sfitnessStats field:
first_workout - Primera Rutina
first_workout - Primera Rutina
Condition:
user.fitnessStats.totalWorkouts >= 1Unlocked automatically after completing the first workout session.week_streak - Racha de 7 días
week_streak - Racha de 7 días
Condition:
user.fitnessStats.currentStreak >= 7Requires training for 7 consecutive days. The streak breaks if a day is missed.ten_workouts - Dedicación
ten_workouts - Dedicación
Condition:
user.fitnessStats.totalWorkouts >= 10Unlocked after completing 10 total workout sessions (not necessarily consecutive).fifty_workouts - Guerrero
fifty_workouts - Guerrero
Condition:
user.fitnessStats.totalWorkouts >= 50Major milestone requiring 50 completed workouts.month_streak - Leyenda
month_streak - Leyenda
Condition:
user.fitnessStats.currentStreak >= 30Requires maintaining a 30-day consecutive training streak.hundred_exercises - Incansable
hundred_exercises - Incansable
Condition:
user.fitnessStats.totalExercises >= 100Unlocked after completing 100 individual exercises across all workouts.consistency - Consistente
consistency - Consistente
Condition:
user.fitnessStats.maxStreak >= 28Based on the user’s all-time maximum streak. Must have achieved at least a 28-day streak at some point.Integration with Notifications
When an achievement is unlocked, the system automatically sends a push notification to the user if they have notifications enabled.
/api/entrenamientos/registrar endpoint.
Error Responses
User not found
Display Recommendations
Related Endpoints
User Statistics
View the statistics that determine achievement unlocks
Register Workout
Complete workouts to unlock achievements
User Profile
Get complete user profile with achievements