User Profile
Parameters that describe the user, for calorie estimates, profile sync and AI Trainer prefill.
| Parameter | Type | Default | Applies to | What it does internally |
| age | number | 30 | All | An age (1 to 120) or a birth year (1900 to the current year); both are converted to a birth year. Sent to the verify call as birth_year, used for calorie (BMR) estimates and the profile sync below, and prefills the AI Trainer |
| gender | string | "male" | All | "male" or "female" (the AI Trainer also takes "other"). Used for calorie estimates, the profile sync and the AI Trainer prefill. Demo videos are picked by content_gender instead (Language & Localization) |
| height | number | 160 | All | Height in cm. Used for calorie estimates, the profile sync and the AI Trainer prefill |
| weight | number | 70 | All | Weight in kg. Used for calorie estimates, the profile sync and the AI Trainer prefill |
| lifestyle | string | "lightly_active" | Main, Personalized Plan | "sedentary", "lightly_active", "active", "moderately_active" or "very_active" (any letter case). Sent to the verify call and used by the profile sync below. React Native and React: send it in customParameters |
| body_parts | string[] | [] | AI Trainer | Prefills the trainer's target areas when the user has none yet. Values (any letter case): Full Body, Upper body, Lower body, Shoulders, Abs, Ex.oblique, Chest, Biceps, Triceps, Forearms, Traps, Lats, Lower back, Glutes, Quads, Hamstrings, Adductors, Abductors, Calves. Unknown values are dropped |
Defaults vs. provided values: the SDK tracks which of age, gender, height and weight you explicitly passed. Calorie estimates (Mifflin-St Jeor BMR) and the AI Trainer prefill only use explicitly provided values: if any of weight, height, age or gender is missing, calories fall back to a fixed default BMR instead of using the defaults above. A complete profile gives noticeably more accurate calorie numbers.
Backend profile sync: on Main, Personalized Plan and personalized assessment launches, when age (valid), height > 0, weight > 0 and a lifestyle from the list above are all provided, the SDK saves them once per user and company to the KinesteX user profile (used by personalized plans). Partial profiles are never synced, so existing server data is not overwritten with defaults.
AI Trainer: age, gender, height and weight prefill the trainer's profile step. The trainer also uses the user's BMI when it recommends fitness goals. See AI Trainer parameters.
SDK Support: Swift, Kotlin and Flutter take a UserDetails object on the create call. React Native and React take age, height, weight and gender in data. HTML/JS: top-level keys.
1let user = UserDetails(
2 age: 30,
3 height: 180, // cm
4 weight: 75, // kg
5 gender: .Male,
6 lifestyle: .Active
7)
8
9kinestex.createWorkoutView( // same user argument on every create*View method
10 workout: "Fitness Lite",
11 user: user,
12 style: nil,
13 isLoading: $isLoading,
14 onMessageReceived: { message in /* ... */ }
15)