@thebriangao/totem 1.4.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dev.vars.example +5 -0
- package/.dockerignore +5 -0
- package/.env.example +29 -20
- package/CHANGELOG.md +99 -1
- package/CONTRIBUTING.md +48 -116
- package/Dockerfile +46 -12
- package/README.md +172 -498
- package/SECURITY.md +36 -59
- package/TOOLS.md +448 -311
- package/WHOOP.md +497 -2659
- package/assets/brand/SOURCES.md +38 -0
- package/assets/brand/totem.png +0 -0
- package/assets/brand/totem.svg +13 -0
- package/assets/fonts/Manrope-OFL.txt +93 -0
- package/assets/fonts/manrope-latin.woff2 +0 -0
- package/dist/build_info.js +5 -0
- package/dist/build_info.js.map +1 -0
- package/dist/cli/app.js +675 -0
- package/dist/cli/app.js.map +1 -0
- package/dist/cli/auth.js +297 -0
- package/dist/cli/auth.js.map +1 -0
- package/dist/cli/auth_flow.js +268 -0
- package/dist/cli/auth_flow.js.map +1 -0
- package/dist/cli/browser_login.js +368 -0
- package/dist/cli/browser_login.js.map +1 -0
- package/dist/cli/clients.js +403 -0
- package/dist/cli/clients.js.map +1 -0
- package/dist/cli/deploy_record.js +96 -0
- package/dist/cli/deploy_record.js.map +1 -0
- package/dist/cli/index.js +39 -575
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/links.js +28 -0
- package/dist/cli/links.js.map +1 -0
- package/dist/cli/logo.js +63 -0
- package/dist/cli/logo.js.map +1 -0
- package/dist/cli/setup.js +1157 -1017
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/spawn.js +80 -0
- package/dist/cli/spawn.js.map +1 -0
- package/dist/cli/sys.js +219 -0
- package/dist/cli/sys.js.map +1 -0
- package/dist/cli/ui.js +712 -463
- package/dist/cli/ui.js.map +1 -1
- package/dist/cli/update.js +425 -282
- package/dist/cli/update.js.map +1 -1
- package/dist/cloudflare/token_store.js +48 -0
- package/dist/cloudflare/token_store.js.map +1 -0
- package/dist/cloudflare/worker.js +155 -0
- package/dist/cloudflare/worker.js.map +1 -0
- package/dist/data/behaviors.js +2733 -617
- package/dist/data/behaviors.js.map +1 -1
- package/dist/data/endpoint_catalog.js +2681 -0
- package/dist/data/endpoint_catalog.js.map +1 -0
- package/dist/data/exercises.js +373 -4859
- package/dist/data/exercises.js.map +1 -1
- package/dist/data/garments.js +19 -0
- package/dist/data/garments.js.map +1 -0
- package/dist/data/sports.js +219 -208
- package/dist/data/sports.js.map +1 -1
- package/dist/lib/activity_list.js +123 -0
- package/dist/lib/activity_list.js.map +1 -0
- package/dist/lib/activity_records.js +195 -0
- package/dist/lib/activity_records.js.map +1 -0
- package/dist/lib/activity_results.js +44 -0
- package/dist/lib/activity_results.js.map +1 -0
- package/dist/lib/activity_types.js +164 -0
- package/dist/lib/activity_types.js.map +1 -0
- package/dist/lib/brand.js +63 -0
- package/dist/lib/brand.js.map +1 -0
- package/dist/lib/clock.js +24 -0
- package/dist/lib/clock.js.map +1 -0
- package/dist/lib/coach_session.js +345 -0
- package/dist/lib/coach_session.js.map +1 -0
- package/dist/lib/concurrency.js.map +1 -1
- package/dist/lib/dates.js +19 -0
- package/dist/lib/dates.js.map +1 -1
- package/dist/lib/env_file.js +195 -0
- package/dist/lib/env_file.js.map +1 -0
- package/dist/lib/health_plans_write.js +44 -0
- package/dist/lib/health_plans_write.js.map +1 -0
- package/dist/lib/heart_rate.js +34 -0
- package/dist/lib/heart_rate.js.map +1 -0
- package/dist/lib/highlight.js +81 -0
- package/dist/lib/highlight.js.map +1 -0
- package/dist/lib/install_links.js +47 -0
- package/dist/lib/install_links.js.map +1 -0
- package/dist/lib/instant.js +50 -0
- package/dist/lib/instant.js.map +1 -0
- package/dist/lib/journal_behaviors.js +382 -0
- package/dist/lib/journal_behaviors.js.map +1 -0
- package/dist/lib/lift_catalog.js +218 -0
- package/dist/lib/lift_catalog.js.map +1 -0
- package/dist/lib/lift_history.js +66 -0
- package/dist/lib/lift_history.js.map +1 -0
- package/dist/lib/lift_sets.js +146 -0
- package/dist/lib/lift_sets.js.map +1 -0
- package/dist/lib/lift_tool.js +20 -0
- package/dist/lib/lift_tool.js.map +1 -0
- package/dist/lib/profile_settings.js +101 -0
- package/dist/lib/profile_settings.js.map +1 -0
- package/dist/lib/screen_content.js +44 -0
- package/dist/lib/screen_content.js.map +1 -0
- package/dist/lib/timezone.js +48 -6
- package/dist/lib/timezone.js.map +1 -1
- package/dist/lib/walk.js +6 -1
- package/dist/lib/walk.js.map +1 -1
- package/dist/lib/weight_readings.js +61 -0
- package/dist/lib/weight_readings.js.map +1 -0
- package/dist/projections/activities.js +193 -0
- package/dist/projections/activities.js.map +1 -0
- package/dist/projections/alarm_schedule.js +102 -0
- package/dist/projections/alarm_schedule.js.map +1 -0
- package/dist/projections/coach.js +203 -0
- package/dist/projections/coach.js.map +1 -0
- package/dist/projections/community.js +165 -0
- package/dist/projections/community.js.map +1 -0
- package/dist/projections/health_features.js +167 -0
- package/dist/projections/health_features.js.map +1 -0
- package/dist/projections/hormonal_insights.js +239 -0
- package/dist/projections/hormonal_insights.js.map +1 -0
- package/dist/projections/journal_v2.js +157 -0
- package/dist/projections/journal_v2.js.map +1 -0
- package/dist/projections/lift_cards.js +115 -0
- package/dist/projections/lift_cards.js.map +1 -0
- package/dist/projections/lift_exercise_v2.js +131 -0
- package/dist/projections/lift_exercise_v2.js.map +1 -0
- package/dist/projections/lift_library_v2.js +67 -0
- package/dist/projections/lift_library_v2.js.map +1 -0
- package/dist/projections/lift_sessions.js +211 -0
- package/dist/projections/lift_sessions.js.map +1 -0
- package/dist/projections/memory.js +95 -0
- package/dist/projections/memory.js.map +1 -0
- package/dist/projections/milestones.js +119 -0
- package/dist/projections/milestones.js.map +1 -0
- package/dist/projections/profile_v2.js +150 -0
- package/dist/projections/profile_v2.js.map +1 -0
- package/dist/projections/settings_v2.js +153 -0
- package/dist/projections/settings_v2.js.map +1 -0
- package/dist/projections/sleep.js +4 -21
- package/dist/projections/sleep.js.map +1 -1
- package/dist/projections/v2/calendar.js +43 -0
- package/dist/projections/v2/calendar.js.map +1 -0
- package/dist/projections/v2/core_common.js +86 -0
- package/dist/projections/v2/core_common.js.map +1 -0
- package/dist/projections/v2/core_home.js +136 -0
- package/dist/projections/v2/core_home.js.map +1 -0
- package/dist/projections/v2/core_sleep_need.js +23 -0
- package/dist/projections/v2/core_sleep_need.js.map +1 -0
- package/dist/projections/v2/day.js +92 -0
- package/dist/projections/v2/day.js.map +1 -0
- package/dist/projections/v2/heart_rate.js +54 -0
- package/dist/projections/v2/heart_rate.js.map +1 -0
- package/dist/projections/v2/history.js +140 -0
- package/dist/projections/v2/history.js.map +1 -0
- package/dist/projections/v2/now.js +39 -0
- package/dist/projections/v2/now.js.map +1 -0
- package/dist/projections/v2/recovery.js +77 -0
- package/dist/projections/v2/recovery.js.map +1 -0
- package/dist/projections/v2/sleep.js +218 -0
- package/dist/projections/v2/sleep.js.map +1 -0
- package/dist/projections/v2/strain.js +39 -0
- package/dist/projections/v2/strain.js.map +1 -0
- package/dist/projections/v2/stress.js +92 -0
- package/dist/projections/v2/stress.js.map +1 -0
- package/dist/projections/v2/trend.js +205 -0
- package/dist/projections/v2/trend.js.map +1 -0
- package/dist/projections/weekly_plan.js +66 -0
- package/dist/projections/weekly_plan.js.map +1 -0
- package/dist/projections/weight_readings.js +57 -0
- package/dist/projections/weight_readings.js.map +1 -0
- package/dist/projections/workout.js +37 -15
- package/dist/projections/workout.js.map +1 -1
- package/dist/schemas/activities.js +123 -0
- package/dist/schemas/activities.js.map +1 -0
- package/dist/schemas/alarm_schedule.js +62 -0
- package/dist/schemas/alarm_schedule.js.map +1 -0
- package/dist/schemas/coach.js +76 -8
- package/dist/schemas/coach.js.map +1 -1
- package/dist/schemas/community.js +70 -0
- package/dist/schemas/community.js.map +1 -0
- package/dist/schemas/health.js +36 -0
- package/dist/schemas/health.js.map +1 -0
- package/dist/schemas/hormonal_insights.js +90 -0
- package/dist/schemas/hormonal_insights.js.map +1 -0
- package/dist/schemas/journal.js +4 -0
- package/dist/schemas/journal.js.map +1 -1
- package/dist/schemas/journal_v2.js +106 -0
- package/dist/schemas/journal_v2.js.map +1 -0
- package/dist/schemas/memory.js +42 -0
- package/dist/schemas/memory.js.map +1 -0
- package/dist/schemas/milestones.js +39 -0
- package/dist/schemas/milestones.js.map +1 -0
- package/dist/schemas/profile_v2.js +60 -0
- package/dist/schemas/profile_v2.js.map +1 -0
- package/dist/schemas/settings_v2.js +56 -0
- package/dist/schemas/settings_v2.js.map +1 -0
- package/dist/schemas/sleep.js +8 -1
- package/dist/schemas/sleep.js.map +1 -1
- package/dist/schemas/strength.js +10 -1
- package/dist/schemas/strength.js.map +1 -1
- package/dist/schemas/strength_v2.js +190 -0
- package/dist/schemas/strength_v2.js.map +1 -0
- package/dist/schemas/v2/calendar.js +8 -0
- package/dist/schemas/v2/calendar.js.map +1 -0
- package/dist/schemas/v2/core_common.js +42 -0
- package/dist/schemas/v2/core_common.js.map +1 -0
- package/dist/schemas/v2/day.js +73 -0
- package/dist/schemas/v2/day.js.map +1 -0
- package/dist/schemas/v2/now.js +25 -0
- package/dist/schemas/v2/now.js.map +1 -0
- package/dist/schemas/v2/recovery.js +35 -0
- package/dist/schemas/v2/recovery.js.map +1 -0
- package/dist/schemas/v2/sleep.js +44 -0
- package/dist/schemas/v2/sleep.js.map +1 -0
- package/dist/schemas/v2/strain.js +16 -0
- package/dist/schemas/v2/strain.js.map +1 -0
- package/dist/schemas/v2/stress.js +20 -0
- package/dist/schemas/v2/stress.js.map +1 -0
- package/dist/schemas/v2/trend.js +42 -0
- package/dist/schemas/v2/trend.js.map +1 -0
- package/dist/schemas/weekly_plan.js +31 -0
- package/dist/schemas/weekly_plan.js.map +1 -0
- package/dist/schemas/weight.js +28 -0
- package/dist/schemas/weight.js.map +1 -0
- package/dist/scripts/build_behaviors.js +114 -0
- package/dist/scripts/build_behaviors.js.map +1 -0
- package/dist/scripts/cognito_bootstrap.js +9 -277
- package/dist/scripts/cognito_bootstrap.js.map +1 -1
- package/dist/scripts/gen_activity_catalogs.js +104 -0
- package/dist/scripts/gen_activity_catalogs.js.map +1 -0
- package/dist/server-admin.js +156 -0
- package/dist/server-admin.js.map +1 -0
- package/dist/server-http.js +270 -48
- package/dist/server-http.js.map +1 -1
- package/dist/server.js +136 -23
- package/dist/server.js.map +1 -1
- package/dist/tools/annotations.js +15 -0
- package/dist/tools/annotations.js.map +1 -0
- package/dist/tools/define.js +31 -0
- package/dist/tools/define.js.map +1 -0
- package/dist/tools/register.js +59 -94
- package/dist/tools/register.js.map +1 -1
- package/dist/tools/resources.js +70 -0
- package/dist/tools/resources.js.map +1 -0
- package/dist/tools/slim_schema.js +90 -0
- package/dist/tools/slim_schema.js.map +1 -0
- package/dist/tools/v2/activity_delete.js +63 -17
- package/dist/tools/v2/activity_delete.js.map +1 -1
- package/dist/tools/v2/activity_edit.js +396 -0
- package/dist/tools/v2/activity_edit.js.map +1 -0
- package/dist/tools/v2/activity_log.js +152 -0
- package/dist/tools/v2/activity_log.js.map +1 -0
- package/dist/tools/v2/calendar.js +19 -21
- package/dist/tools/v2/calendar.js.map +1 -1
- package/dist/tools/v2/coach_ask.js +74 -110
- package/dist/tools/v2/coach_ask.js.map +1 -1
- package/dist/tools/v2/coach_history.js +120 -0
- package/dist/tools/v2/coach_history.js.map +1 -0
- package/dist/tools/v2/community.js +124 -0
- package/dist/tools/v2/community.js.map +1 -0
- package/dist/tools/v2/cycle.js +63 -15
- package/dist/tools/v2/cycle.js.map +1 -1
- package/dist/tools/v2/cycle_log.js +289 -32
- package/dist/tools/v2/cycle_log.js.map +1 -1
- package/dist/tools/v2/day.js +126 -24
- package/dist/tools/v2/day.js.map +1 -1
- package/dist/tools/v2/health.js +116 -0
- package/dist/tools/v2/health.js.map +1 -0
- package/dist/tools/v2/hr_zones_set.js +134 -34
- package/dist/tools/v2/hr_zones_set.js.map +1 -1
- package/dist/tools/v2/journal.js +75 -17
- package/dist/tools/v2/journal.js.map +1 -1
- package/dist/tools/v2/journal_log.js +306 -65
- package/dist/tools/v2/journal_log.js.map +1 -1
- package/dist/tools/v2/lift_exercise.js +125 -22
- package/dist/tools/v2/lift_exercise.js.map +1 -1
- package/dist/tools/v2/lift_exercise_set.js +291 -0
- package/dist/tools/v2/lift_exercise_set.js.map +1 -0
- package/dist/tools/v2/lift_library.js +51 -12
- package/dist/tools/v2/lift_library.js.map +1 -1
- package/dist/tools/v2/lift_log.js +309 -72
- package/dist/tools/v2/lift_log.js.map +1 -1
- package/dist/tools/v2/lift_sessions.js +248 -0
- package/dist/tools/v2/lift_sessions.js.map +1 -0
- package/dist/tools/v2/lift_template.js +232 -0
- package/dist/tools/v2/lift_template.js.map +1 -0
- package/dist/tools/v2/memory.js +45 -0
- package/dist/tools/v2/memory.js.map +1 -0
- package/dist/tools/v2/memory_set.js +107 -0
- package/dist/tools/v2/memory_set.js.map +1 -0
- package/dist/tools/v2/milestones.js +50 -0
- package/dist/tools/v2/milestones.js.map +1 -0
- package/dist/tools/v2/now.js +49 -0
- package/dist/tools/v2/now.js.map +1 -0
- package/dist/tools/v2/preferences.js +51 -0
- package/dist/tools/v2/preferences.js.map +1 -0
- package/dist/tools/v2/preferences_set.js +388 -0
- package/dist/tools/v2/preferences_set.js.map +1 -0
- package/dist/tools/v2/profile.js +54 -22
- package/dist/tools/v2/profile.js.map +1 -1
- package/dist/tools/v2/profile_update.js +167 -55
- package/dist/tools/v2/profile_update.js.map +1 -1
- package/dist/tools/v2/raw.js +91 -34
- package/dist/tools/v2/raw.js.map +1 -1
- package/dist/tools/v2/recovery.js +37 -23
- package/dist/tools/v2/recovery.js.map +1 -1
- package/dist/tools/v2/sleep.js +52 -16
- package/dist/tools/v2/sleep.js.map +1 -1
- package/dist/tools/v2/smart_alarm.js +54 -20
- package/dist/tools/v2/smart_alarm.js.map +1 -1
- package/dist/tools/v2/smart_alarm_set.js +264 -86
- package/dist/tools/v2/smart_alarm_set.js.map +1 -1
- package/dist/tools/v2/strain.js +15 -15
- package/dist/tools/v2/strain.js.map +1 -1
- package/dist/tools/v2/stress.js +17 -15
- package/dist/tools/v2/stress.js.map +1 -1
- package/dist/tools/v2/trend.js +56 -20
- package/dist/tools/v2/trend.js.map +1 -1
- package/dist/tools/v2/weekly_plan.js +30 -0
- package/dist/tools/v2/weekly_plan.js.map +1 -0
- package/dist/tools/v2/weekly_plan_set.js +134 -0
- package/dist/tools/v2/weekly_plan_set.js.map +1 -0
- package/dist/tools/v2/weight.js +56 -0
- package/dist/tools/v2/weight.js.map +1 -0
- package/dist/tools/v2/weight_log.js +188 -0
- package/dist/tools/v2/weight_log.js.map +1 -0
- package/dist/tools/v2/workouts.js +159 -25
- package/dist/tools/v2/workouts.js.map +1 -1
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/dist/whoop/bff.js +94 -0
- package/dist/whoop/bff.js.map +1 -0
- package/dist/whoop/client.js +392 -18
- package/dist/whoop/client.js.map +1 -1
- package/dist/whoop/cognito.js +106 -79
- package/dist/whoop/cognito.js.map +1 -1
- package/dist/whoop/connect_page.js +165 -0
- package/dist/whoop/connect_page.js.map +1 -0
- package/dist/whoop/consent_font.js +287 -0
- package/dist/whoop/consent_font.js.map +1 -0
- package/dist/whoop/consent_logos.js +22 -0
- package/dist/whoop/consent_logos.js.map +1 -0
- package/dist/whoop/consent_page.js +291 -0
- package/dist/whoop/consent_page.js.map +1 -0
- package/dist/whoop/constants.js +5 -1
- package/dist/whoop/constants.js.map +1 -1
- package/dist/whoop/device.js +4 -4
- package/dist/whoop/device.js.map +1 -1
- package/dist/whoop/errors.js +85 -4
- package/dist/whoop/errors.js.map +1 -1
- package/dist/whoop/init_timezone.js +57 -17
- package/dist/whoop/init_timezone.js.map +1 -1
- package/dist/whoop/installation.js +15 -10
- package/dist/whoop/installation.js.map +1 -1
- package/dist/whoop/json_out.js +52 -6
- package/dist/whoop/json_out.js.map +1 -1
- package/dist/whoop/oauth_provider.js +81 -78
- package/dist/whoop/oauth_provider.js.map +1 -1
- package/dist/whoop/token_lock.js +331 -0
- package/dist/whoop/token_lock.js.map +1 -0
- package/dist/whoop/token_manager.js +536 -42
- package/dist/whoop/token_manager.js.map +1 -1
- package/dist/whoop/token_store.js +303 -36
- package/dist/whoop/token_store.js.map +1 -1
- package/dist/whoop/units.js +28 -0
- package/dist/whoop/units.js.map +1 -0
- package/package.json +29 -13
- package/scripts/build-mcpb.mjs +72 -0
- package/scripts/embed-consent-font.mjs +34 -0
- package/scripts/readme-media.ts +195 -0
- package/scripts/tools-md.ts +89 -0
- package/scripts/whoop-md.ts +119 -0
- package/src/build_info.ts +4 -0
- package/src/cli/app.ts +696 -0
- package/src/cli/auth.ts +350 -0
- package/src/cli/auth_flow.ts +356 -0
- package/src/cli/browser_login.ts +402 -0
- package/src/cli/clients.ts +467 -0
- package/src/cli/deploy_record.ts +100 -0
- package/src/cli/index.ts +41 -583
- package/src/cli/links.ts +43 -0
- package/src/cli/logo.ts +64 -0
- package/src/cli/setup.ts +1147 -979
- package/src/cli/spawn.ts +88 -0
- package/src/cli/sys.ts +267 -0
- package/src/cli/ui.ts +778 -436
- package/src/cli/update.ts +436 -274
- package/src/cloudflare/runtime.d.ts +27 -0
- package/src/cloudflare/token_store.ts +57 -0
- package/src/cloudflare/worker.ts +174 -0
- package/src/data/behaviors.ts +2760 -622
- package/src/data/endpoint_catalog.ts +2695 -0
- package/src/data/exercises.ts +379 -4861
- package/src/data/garments.ts +28 -0
- package/src/data/sports.ts +239 -211
- package/src/lib/activity_list.ts +150 -0
- package/src/lib/activity_records.ts +213 -0
- package/src/lib/activity_results.ts +51 -0
- package/src/lib/activity_types.ts +176 -0
- package/src/lib/brand.ts +71 -0
- package/src/lib/clock.ts +16 -0
- package/src/lib/coach_session.ts +434 -0
- package/src/lib/dates.ts +18 -0
- package/src/lib/env_file.ts +191 -0
- package/src/lib/health_plans_write.ts +53 -0
- package/src/lib/heart_rate.ts +42 -0
- package/src/lib/highlight.ts +71 -0
- package/src/lib/install_links.ts +61 -0
- package/src/lib/instant.ts +54 -0
- package/src/lib/journal_behaviors.ts +453 -0
- package/src/lib/lift_catalog.ts +258 -0
- package/src/lib/lift_history.ts +75 -0
- package/src/lib/lift_sets.ts +164 -0
- package/src/lib/lift_tool.ts +25 -0
- package/src/lib/profile_settings.ts +102 -0
- package/src/lib/screen_content.ts +40 -0
- package/src/lib/timezone.ts +44 -8
- package/src/lib/walk.ts +4 -1
- package/src/lib/weight_readings.ts +82 -0
- package/src/projections/activities.ts +199 -0
- package/src/projections/alarm_schedule.ts +98 -0
- package/src/projections/coach.ts +218 -0
- package/src/projections/community.ts +187 -0
- package/src/projections/health_features.ts +191 -0
- package/src/projections/hormonal_insights.ts +277 -0
- package/src/projections/journal_v2.ts +173 -0
- package/src/projections/lift_cards.ts +131 -0
- package/src/projections/lift_exercise_v2.ts +147 -0
- package/src/projections/lift_library_v2.ts +77 -0
- package/src/projections/lift_sessions.ts +250 -0
- package/src/projections/memory.ts +100 -0
- package/src/projections/milestones.ts +133 -0
- package/src/projections/profile_v2.ts +166 -0
- package/src/projections/settings_v2.ts +179 -0
- package/src/projections/sleep.ts +7 -21
- package/src/projections/v2/calendar.ts +48 -0
- package/src/projections/v2/core_common.ts +95 -0
- package/src/projections/v2/core_home.ts +177 -0
- package/src/projections/v2/core_sleep_need.ts +37 -0
- package/src/projections/v2/day.ts +162 -0
- package/src/projections/v2/heart_rate.ts +73 -0
- package/src/projections/v2/history.ts +153 -0
- package/src/projections/v2/now.ts +59 -0
- package/src/projections/v2/recovery.ts +120 -0
- package/src/projections/v2/sleep.ts +281 -0
- package/src/projections/v2/strain.ts +63 -0
- package/src/projections/v2/stress.ts +111 -0
- package/src/projections/v2/trend.ts +242 -0
- package/src/projections/weekly_plan.ts +79 -0
- package/src/projections/weight_readings.ts +57 -0
- package/src/projections/workout.ts +36 -17
- package/src/schemas/activities.ts +136 -0
- package/src/schemas/alarm_schedule.ts +70 -0
- package/src/schemas/coach.ts +98 -8
- package/src/schemas/community.ts +77 -0
- package/src/schemas/health.ts +36 -0
- package/src/schemas/hormonal_insights.ts +108 -0
- package/src/schemas/journal.ts +4 -0
- package/src/schemas/journal_v2.ts +112 -0
- package/src/schemas/memory.ts +48 -0
- package/src/schemas/milestones.ts +48 -0
- package/src/schemas/profile_v2.ts +63 -0
- package/src/schemas/settings_v2.ts +63 -0
- package/src/schemas/sleep.ts +9 -1
- package/src/schemas/strength.ts +10 -1
- package/src/schemas/strength_v2.ts +210 -0
- package/src/schemas/v2/calendar.ts +8 -0
- package/src/schemas/v2/core_common.ts +50 -0
- package/src/schemas/v2/day.ts +79 -0
- package/src/schemas/v2/now.ts +25 -0
- package/src/schemas/v2/recovery.ts +38 -0
- package/src/schemas/v2/sleep.ts +46 -0
- package/src/schemas/v2/strain.ts +16 -0
- package/src/schemas/v2/stress.ts +20 -0
- package/src/schemas/v2/trend.ts +45 -0
- package/src/schemas/weekly_plan.ts +36 -0
- package/src/schemas/weight.ts +53 -0
- package/src/scripts/build_behaviors.ts +116 -0
- package/src/scripts/cognito_bootstrap.ts +10 -249
- package/src/scripts/gen_activity_catalogs.ts +121 -0
- package/src/server-admin.ts +171 -0
- package/src/server-http.ts +290 -53
- package/src/server.ts +130 -26
- package/src/tools/annotations.ts +25 -0
- package/src/tools/define.ts +53 -0
- package/src/tools/register.ts +64 -94
- package/src/tools/resources.ts +92 -0
- package/src/tools/slim_schema.ts +102 -0
- package/src/tools/v2/activity_delete.ts +61 -23
- package/src/tools/v2/activity_edit.ts +378 -0
- package/src/tools/v2/activity_log.ts +154 -0
- package/src/tools/v2/calendar.ts +22 -21
- package/src/tools/v2/coach_ask.ts +83 -119
- package/src/tools/v2/coach_history.ts +140 -0
- package/src/tools/v2/community.ts +137 -0
- package/src/tools/v2/cycle.ts +78 -20
- package/src/tools/v2/cycle_log.ts +291 -40
- package/src/tools/v2/day.ts +126 -25
- package/src/tools/v2/health.ts +114 -0
- package/src/tools/v2/hr_zones_set.ts +132 -45
- package/src/tools/v2/journal.ts +78 -23
- package/src/tools/v2/journal_log.ts +321 -69
- package/src/tools/v2/lift_exercise.ts +135 -27
- package/src/tools/v2/lift_exercise_set.ts +272 -0
- package/src/tools/v2/lift_library.ts +57 -21
- package/src/tools/v2/lift_log.ts +325 -83
- package/src/tools/v2/lift_sessions.ts +255 -0
- package/src/tools/v2/lift_template.ts +229 -0
- package/src/tools/v2/memory.ts +54 -0
- package/src/tools/v2/memory_set.ts +110 -0
- package/src/tools/v2/milestones.ts +59 -0
- package/src/tools/v2/now.ts +61 -0
- package/src/tools/v2/preferences.ts +61 -0
- package/src/tools/v2/preferences_set.ts +403 -0
- package/src/tools/v2/profile.ts +56 -26
- package/src/tools/v2/profile_update.ts +151 -60
- package/src/tools/v2/raw.ts +89 -36
- package/src/tools/v2/recovery.ts +44 -25
- package/src/tools/v2/sleep.ts +57 -18
- package/src/tools/v2/smart_alarm.ts +62 -24
- package/src/tools/v2/smart_alarm_set.ts +240 -90
- package/src/tools/v2/strain.ts +19 -16
- package/src/tools/v2/stress.ts +22 -17
- package/src/tools/v2/trend.ts +58 -20
- package/src/tools/v2/weekly_plan.ts +38 -0
- package/src/tools/v2/weekly_plan_set.ts +132 -0
- package/src/tools/v2/weight.ts +61 -0
- package/src/tools/v2/weight_log.ts +193 -0
- package/src/tools/v2/workouts.ts +156 -26
- package/src/version.ts +5 -0
- package/src/whoop/bff.ts +84 -0
- package/src/whoop/client.ts +448 -18
- package/src/whoop/cognito.ts +110 -99
- package/src/whoop/connect_page.ts +183 -0
- package/src/whoop/consent_font.ts +289 -0
- package/src/whoop/consent_logos.ts +24 -0
- package/src/whoop/consent_page.ts +326 -0
- package/src/whoop/constants.ts +5 -1
- package/src/whoop/device.ts +4 -4
- package/src/whoop/errors.ts +89 -4
- package/src/whoop/init_timezone.ts +57 -16
- package/src/whoop/installation.ts +16 -7
- package/src/whoop/json_out.ts +51 -6
- package/src/whoop/oauth_provider.ts +84 -91
- package/src/whoop/token_lock.ts +345 -0
- package/src/whoop/token_manager.ts +580 -53
- package/src/whoop/token_store.ts +341 -32
- package/src/whoop/units.ts +35 -0
- package/wrangler.jsonc +17 -0
- package/assets/banner.svg +0 -38
- package/dist/data/endpoints.js +0 -320
- package/dist/data/endpoints.js.map +0 -1
- package/dist/lib/format.js +0 -22
- package/dist/lib/format.js.map +0 -1
- package/dist/lib/stats.js +0 -32
- package/dist/lib/stats.js.map +0 -1
- package/dist/projections/calendar.js +0 -33
- package/dist/projections/calendar.js.map +0 -1
- package/dist/projections/communities.js +0 -105
- package/dist/projections/communities.js.map +0 -1
- package/dist/projections/cycle.js +0 -81
- package/dist/projections/cycle.js.map +0 -1
- package/dist/projections/hr_zones.js +0 -35
- package/dist/projections/hr_zones.js.map +0 -1
- package/dist/projections/journal.js +0 -56
- package/dist/projections/journal.js.map +0 -1
- package/dist/projections/leaderboard.js +0 -37
- package/dist/projections/leaderboard.js.map +0 -1
- package/dist/projections/lift_exercise.js +0 -22
- package/dist/projections/lift_exercise.js.map +0 -1
- package/dist/projections/lift_history.js +0 -133
- package/dist/projections/lift_history.js.map +0 -1
- package/dist/projections/lift_library.js +0 -71
- package/dist/projections/lift_library.js.map +0 -1
- package/dist/projections/lift_progression.js +0 -138
- package/dist/projections/lift_progression.js.map +0 -1
- package/dist/projections/lift_prs.js +0 -20
- package/dist/projections/lift_prs.js.map +0 -1
- package/dist/projections/live_hr.js +0 -19
- package/dist/projections/live_hr.js.map +0 -1
- package/dist/projections/live_state.js +0 -23
- package/dist/projections/live_state.js.map +0 -1
- package/dist/projections/live_stress.js +0 -11
- package/dist/projections/live_stress.js.map +0 -1
- package/dist/projections/performance_assessment.js +0 -15
- package/dist/projections/performance_assessment.js.map +0 -1
- package/dist/projections/profile.js +0 -59
- package/dist/projections/profile.js.map +0 -1
- package/dist/projections/recovery.js +0 -131
- package/dist/projections/recovery.js.map +0 -1
- package/dist/projections/sleep_need.js +0 -32
- package/dist/projections/sleep_need.js.map +0 -1
- package/dist/projections/smart_alarm.js +0 -45
- package/dist/projections/smart_alarm.js.map +0 -1
- package/dist/projections/strain.js +0 -128
- package/dist/projections/strain.js.map +0 -1
- package/dist/projections/stress.js +0 -86
- package/dist/projections/stress.js.map +0 -1
- package/dist/projections/today.js +0 -129
- package/dist/projections/today.js.map +0 -1
- package/dist/projections/trend.js +0 -149
- package/dist/projections/trend.js.map +0 -1
- package/dist/projections/workouts.js +0 -37
- package/dist/projections/workouts.js.map +0 -1
- package/dist/schemas/calendar.js +0 -12
- package/dist/schemas/calendar.js.map +0 -1
- package/dist/schemas/communities.js +0 -51
- package/dist/schemas/communities.js.map +0 -1
- package/dist/schemas/compare.js +0 -15
- package/dist/schemas/compare.js.map +0 -1
- package/dist/schemas/leaderboard.js +0 -25
- package/dist/schemas/leaderboard.js.map +0 -1
- package/dist/schemas/live.js +0 -26
- package/dist/schemas/live.js.map +0 -1
- package/dist/schemas/performance.js +0 -12
- package/dist/schemas/performance.js.map +0 -1
- package/dist/schemas/profile.js +0 -39
- package/dist/schemas/profile.js.map +0 -1
- package/dist/schemas/recovery.js +0 -27
- package/dist/schemas/recovery.js.map +0 -1
- package/dist/schemas/settings.js +0 -26
- package/dist/schemas/settings.js.map +0 -1
- package/dist/schemas/sleep_need.js +0 -15
- package/dist/schemas/sleep_need.js.map +0 -1
- package/dist/schemas/smart_alarm.js +0 -36
- package/dist/schemas/smart_alarm.js.map +0 -1
- package/dist/schemas/strain.js +0 -24
- package/dist/schemas/strain.js.map +0 -1
- package/dist/schemas/stress.js +0 -16
- package/dist/schemas/stress.js.map +0 -1
- package/dist/schemas/today.js +0 -38
- package/dist/schemas/today.js.map +0 -1
- package/dist/schemas/trend.js +0 -50
- package/dist/schemas/trend.js.map +0 -1
- package/dist/schemas/womens_health.js +0 -23
- package/dist/schemas/womens_health.js.map +0 -1
- package/dist/tools/v2/activity_create.js +0 -64
- package/dist/tools/v2/activity_create.js.map +0 -1
- package/dist/tools/v2/behavior_impact.js +0 -36
- package/dist/tools/v2/behavior_impact.js.map +0 -1
- package/dist/tools/v2/communities.js +0 -60
- package/dist/tools/v2/communities.js.map +0 -1
- package/dist/tools/v2/compare.js +0 -67
- package/dist/tools/v2/compare.js.map +0 -1
- package/dist/tools/v2/endpoints.js +0 -28
- package/dist/tools/v2/endpoints.js.map +0 -1
- package/dist/tools/v2/hidden_metric.js +0 -28
- package/dist/tools/v2/hidden_metric.js.map +0 -1
- package/dist/tools/v2/hr_zones.js +0 -24
- package/dist/tools/v2/hr_zones.js.map +0 -1
- package/dist/tools/v2/journal_autopop.js +0 -19
- package/dist/tools/v2/journal_autopop.js.map +0 -1
- package/dist/tools/v2/journal_catalog.js +0 -44
- package/dist/tools/v2/journal_catalog.js.map +0 -1
- package/dist/tools/v2/leaderboard.js +0 -79
- package/dist/tools/v2/leaderboard.js.map +0 -1
- package/dist/tools/v2/lift_catalog.js +0 -47
- package/dist/tools/v2/lift_catalog.js.map +0 -1
- package/dist/tools/v2/lift_custom_exercise.js +0 -108
- package/dist/tools/v2/lift_custom_exercise.js.map +0 -1
- package/dist/tools/v2/lift_history.js +0 -39
- package/dist/tools/v2/lift_history.js.map +0 -1
- package/dist/tools/v2/lift_progression.js +0 -30
- package/dist/tools/v2/lift_progression.js.map +0 -1
- package/dist/tools/v2/lift_prs.js +0 -21
- package/dist/tools/v2/lift_prs.js.map +0 -1
- package/dist/tools/v2/lift_template_save.js +0 -83
- package/dist/tools/v2/lift_template_save.js.map +0 -1
- package/dist/tools/v2/live_hr.js +0 -21
- package/dist/tools/v2/live_hr.js.map +0 -1
- package/dist/tools/v2/live_state.js +0 -21
- package/dist/tools/v2/live_state.js.map +0 -1
- package/dist/tools/v2/live_stress.js +0 -22
- package/dist/tools/v2/live_stress.js.map +0 -1
- package/dist/tools/v2/performance_assessment.js +0 -38
- package/dist/tools/v2/performance_assessment.js.map +0 -1
- package/dist/tools/v2/sleep_need.js +0 -21
- package/dist/tools/v2/sleep_need.js.map +0 -1
- package/dist/tools/v2/sports_catalog.js +0 -26
- package/dist/tools/v2/sports_catalog.js.map +0 -1
- package/dist/tools/v2/symptom_log.js +0 -72
- package/dist/tools/v2/symptom_log.js.map +0 -1
- package/dist/tools/v2/today.js +0 -30
- package/dist/tools/v2/today.js.map +0 -1
- package/dist/tools/v2/workout.js +0 -23
- package/dist/tools/v2/workout.js.map +0 -1
- package/dist/whoop/build_lift_body.js +0 -67
- package/dist/whoop/build_lift_body.js.map +0 -1
- package/dist/whoop/session_state.js +0 -34
- package/dist/whoop/session_state.js.map +0 -1
- package/dist/whoop/types.js +0 -82
- package/dist/whoop/types.js.map +0 -1
- package/src/data/endpoints.ts +0 -319
- package/src/lib/format.ts +0 -27
- package/src/lib/stats.ts +0 -35
- package/src/projections/calendar.ts +0 -46
- package/src/projections/communities.ts +0 -135
- package/src/projections/cycle.ts +0 -85
- package/src/projections/hr_zones.ts +0 -43
- package/src/projections/journal.ts +0 -55
- package/src/projections/leaderboard.ts +0 -49
- package/src/projections/lift_exercise.ts +0 -29
- package/src/projections/lift_history.ts +0 -140
- package/src/projections/lift_library.ts +0 -70
- package/src/projections/lift_progression.ts +0 -138
- package/src/projections/lift_prs.ts +0 -23
- package/src/projections/live_hr.ts +0 -21
- package/src/projections/live_state.ts +0 -28
- package/src/projections/live_stress.ts +0 -13
- package/src/projections/performance_assessment.ts +0 -19
- package/src/projections/profile.ts +0 -71
- package/src/projections/recovery.ts +0 -133
- package/src/projections/sleep_need.ts +0 -36
- package/src/projections/smart_alarm.ts +0 -70
- package/src/projections/strain.ts +0 -131
- package/src/projections/stress.ts +0 -95
- package/src/projections/today.ts +0 -166
- package/src/projections/trend.ts +0 -149
- package/src/projections/workouts.ts +0 -36
- package/src/schemas/calendar.ts +0 -13
- package/src/schemas/communities.ts +0 -56
- package/src/schemas/compare.ts +0 -17
- package/src/schemas/leaderboard.ts +0 -26
- package/src/schemas/live.ts +0 -31
- package/src/schemas/performance.ts +0 -13
- package/src/schemas/profile.ts +0 -40
- package/src/schemas/recovery.ts +0 -28
- package/src/schemas/settings.ts +0 -30
- package/src/schemas/sleep_need.ts +0 -16
- package/src/schemas/smart_alarm.ts +0 -40
- package/src/schemas/strain.ts +0 -25
- package/src/schemas/stress.ts +0 -17
- package/src/schemas/today.ts +0 -39
- package/src/schemas/trend.ts +0 -53
- package/src/schemas/womens_health.ts +0 -26
- package/src/tools/v2/activity_create.ts +0 -74
- package/src/tools/v2/behavior_impact.ts +0 -39
- package/src/tools/v2/communities.ts +0 -65
- package/src/tools/v2/compare.ts +0 -83
- package/src/tools/v2/endpoints.ts +0 -32
- package/src/tools/v2/hidden_metric.ts +0 -33
- package/src/tools/v2/hr_zones.ts +0 -29
- package/src/tools/v2/journal_autopop.ts +0 -26
- package/src/tools/v2/journal_catalog.ts +0 -48
- package/src/tools/v2/leaderboard.ts +0 -92
- package/src/tools/v2/lift_catalog.ts +0 -48
- package/src/tools/v2/lift_custom_exercise.ts +0 -117
- package/src/tools/v2/lift_history.ts +0 -52
- package/src/tools/v2/lift_progression.ts +0 -34
- package/src/tools/v2/lift_prs.ts +0 -26
- package/src/tools/v2/lift_template_save.ts +0 -89
- package/src/tools/v2/live_hr.ts +0 -26
- package/src/tools/v2/live_state.ts +0 -26
- package/src/tools/v2/live_stress.ts +0 -27
- package/src/tools/v2/performance_assessment.ts +0 -44
- package/src/tools/v2/sleep_need.ts +0 -26
- package/src/tools/v2/sports_catalog.ts +0 -32
- package/src/tools/v2/symptom_log.ts +0 -78
- package/src/tools/v2/today.ts +0 -35
- package/src/tools/v2/workout.ts +0 -28
- package/src/whoop/build_lift_body.ts +0 -84
- package/src/whoop/session_state.ts +0 -41
- package/src/whoop/types.ts +0 -89
package/WHOOP.md
CHANGED
|
@@ -1,2673 +1,511 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
|
82
|
-
|
|
83
|
-
|
|
|
84
|
-
| GET | `/
|
|
85
|
-
|
|
|
86
|
-
| GET | `/v2/
|
|
87
|
-
| GET | `/v2/
|
|
88
|
-
|
|
|
89
|
-
| GET | `/
|
|
90
|
-
|
|
|
91
|
-
| GET | `/
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"/mobile-metric-service/", "/log-service/", "/gps-service/",
|
|
157
|
-
"/firmware-service/", "/pip-metrics-service/",
|
|
158
|
-
"/notification-service/v0/push/",
|
|
159
|
-
"/feature-flags/flags/", "/experiment-service/",
|
|
160
|
-
"/status-service/", "/configuration/v1/services/mobile",
|
|
161
|
-
"/language-service/", "/tombstone-service/",
|
|
162
|
-
)
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
The skip list excludes pure telemetry endpoints that don't represent real product surfaces. Everything else is parsed into:
|
|
166
|
-
|
|
167
|
-
```
|
|
168
|
-
(method, templated_path, body_signature, status_code) → entry
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Where `body_signature` is the **shape of the request body** — sorted top-level keys for JSON bodies, `array[N]` for arrays, `binary` for protobuf, `empty` for no body. This dedup key separates "the same operation called twice with the same body shape" (deduped) from "the same path called with structurally different bodies" (kept as separate entries — important for endpoints like Cognito's auth-service that multiplex on body shape).
|
|
172
|
-
|
|
173
|
-
Path templating collapsed concrete IDs into placeholders:
|
|
174
|
-
|
|
175
|
-
```python
|
|
176
|
-
p = re.sub(r"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}", "{uuid}", p)
|
|
177
|
-
p = re.sub(r"\b\d{4}-\d{2}-\d{2}\b", "{date}", p)
|
|
178
|
-
p = re.sub(r"/\d{6,}", "/{id}", p)
|
|
179
|
-
p = re.sub(r"/exercise/[A-Z][A-Z0-9]*_[A-Z0-9_]+", "/exercise/{exercise_id}", p)
|
|
180
|
-
p = re.sub(r"/trends/[A-Z][A-Z0-9_]+", "/trends/{metric}", p)
|
|
181
|
-
p = re.sub(r"/educations/[A-Z][A-Z0-9_]+", "/educations/{education_name}", p)
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
After dedup: **419 unique operations across 47 microservices**, collapsed to **384 body-shape-deduped paths** (merging variants that differed only cosmetically), then to **311 final paths** once the IDs / timestamps / tokens embedded in those paths were templated to placeholders — rows that differed only by a literal value (e.g. `/communities/36852/…` vs `/communities/12090/…`) merged into one (`/communities/{id}/…`). The bundled `src/data/endpoints.ts` ships these **311** templated paths.
|
|
185
|
-
|
|
186
|
-
The full deduped dump lives at `/tmp/whoop_combined/all.txt` (1,580 lines) and is split into 12 chunks of ~100 ops each for parallel analysis. Each entry looks like:
|
|
187
|
-
|
|
188
|
-
```
|
|
189
|
-
#NUM [src] METHOD STATUS templated_path
|
|
190
|
-
REQ (body_signature): <body text, truncated at 6KB>
|
|
191
|
-
RESP (size_bytes): keys=[top-level response keys]
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### The agent-based analysis pass
|
|
195
|
-
|
|
196
|
-
Mapping 419 operations into a structured per-service reference, while extracting enums and writing semantic notes, is the kind of task that takes a human days but a battery of LLM agents about 90 minutes. We dispatched 12 parallel Claude Sonnet 4.6 agents to chunk_01.txt through chunk_12.txt, each tasked with:
|
|
197
|
-
|
|
198
|
-
- For each operation in the chunk, write a structured entry with method, path, status codes seen, request body shape, response key listing, semantic note about what it does.
|
|
199
|
-
- Identify any enum values from request bodies or status code patterns.
|
|
200
|
-
- Flag operations that look like telemetry, deprecated paths, or one-off bugs (e.g. the lone 428 on `/membership?useReplica=true`).
|
|
201
|
-
|
|
202
|
-
The Sonnet outputs were too shallow. We then ran a **single Opus 4.7 agent** over the entire 1,580-line `all.txt` with explicit instructions to "read every single request" and produce an exhaustive brief. That agent wrote `api-brief.md` (1,252 lines / 87 KB — archived separately along with the raw captures), which became the spine of this document.
|
|
203
|
-
|
|
204
|
-
### The captured response fixtures
|
|
205
|
-
|
|
206
|
-
For 16 of the highest-value endpoints, we saved the full raw response JSON into `tests/fixtures/` so projections could be developed and tested without hitting the live API:
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
behavior_summary.json 985 bytes
|
|
210
|
-
bootstrap.json 1,209 bytes
|
|
211
|
-
cardio_details.json 300,123 bytes
|
|
212
|
-
deep_dive_recovery.json 21,001 bytes
|
|
213
|
-
deep_dive_sleep.json 848,428 bytes <-- the biggest captured single response
|
|
214
|
-
deep_dive_strain.json 28,706 bytes
|
|
215
|
-
exercise_info.json 1,071 bytes
|
|
216
|
-
home.json 54,751 bytes
|
|
217
|
-
journal_behaviors.json 73,571 bytes
|
|
218
|
-
journal_draft.json 821 bytes
|
|
219
|
-
lift_exercise_history.json 11,590 bytes
|
|
220
|
-
lift_exercise_prs.json 6,964 bytes
|
|
221
|
-
lift_progression.json 11,413 bytes
|
|
222
|
-
lift_prs.json 10,463 bytes
|
|
223
|
-
stress.json 2,820 bytes
|
|
224
|
-
trend_hrv.json 116,971 bytes
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
These fixtures are committed to git and the projection test suite (`tests/projections/round1.test.ts`, `round2.test.ts`, `round3.test.ts`) asserts exact field values against them. If Whoop changes a response shape, tests fail loudly.
|
|
228
|
-
|
|
229
|
-
### Caveats
|
|
230
|
-
|
|
231
|
-
- **Single-account observation.** Most endpoints were exercised under exactly one set of user state. We don't know how endpoints behave on accounts with different feature flags (advanced labs purchased, family plan member, enterprise team membership, premium tier vs. base tier).
|
|
232
|
-
- **Time-of-day matters.** The Stress endpoint behavior we observed was during normal business hours. Whoop's batch jobs run at specific times (recovery is computed shortly after wake), and the responses can differ during those windows.
|
|
233
|
-
- **The strap state matters.** Several endpoints behave differently when the strap is actively recording vs. idle. Phase 1 was an idle-strap session; Phase 8b had the strap actively connected.
|
|
234
|
-
- **iOS app version 7.0.0 (api version 7).** All requests pin `apiVersion=7` as a query param. Whoop has been incrementing this every ~6 months. Future captures will likely show v8+ endpoints with different shapes for the same product surfaces.
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## Authentication
|
|
239
|
-
|
|
240
|
-
Whoop's iOS app authenticates via **AWS Cognito**, but it routes all Cognito calls through Whoop's own backend at `api.prod.whoop.com/auth-service/v3/whoop/`. The proxy exists for two reasons:
|
|
241
|
-
|
|
242
|
-
1. **The mobile app doesn't ship with the Cognito client secret.** Cognito user pools that require SECRET_HASH (most production setups) can't be called directly from a mobile app without leaking the client secret in the IPA bundle. Routing through a backend proxy lets the secret stay server-side.
|
|
243
|
-
2. **CloudFlare WAF in front of api.prod.whoop.com applies the same rate-limit and abuse protection to auth calls as to data calls.** Direct Cognito traffic would bypass that.
|
|
244
|
-
|
|
245
|
-
### The proxy endpoint
|
|
246
|
-
|
|
247
|
-
```
|
|
248
|
-
POST https://api.prod.whoop.com/auth-service/v3/whoop/
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
Despite living at a Whoop-branded URL, the wire protocol is the standard AWS Cognito `application/x-amz-json-1.1` envelope:
|
|
252
|
-
|
|
253
|
-
```
|
|
254
|
-
content-type: application/x-amz-json-1.1
|
|
255
|
-
x-amz-target: AWSCognitoIdentityProviderService.InitiateAuth
|
|
256
|
-
user-agent: aws-sdk-swift/1.5.86 ua/2.1 api/cognito_identity_provider#1.5.86 os/ios#26.3.1 lang/swift#5.10 m/D,N,Z,b
|
|
257
|
-
amz-sdk-invocation-id: <UUID>
|
|
258
|
-
amz-sdk-request: attempt=1; max=1
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
The proxy fills in the `ClientId` + computes the `SECRET_HASH` server-side before forwarding to `cognito-idp.us-west-2.amazonaws.com`. So our request body sends `"ClientId":""` (empty string) — the proxy substitutes the real value.
|
|
262
|
-
|
|
263
|
-
The User-Pool ID was leaked through one of the bootstrap script's console outputs and inferred from URL patterns: `us-west-2_rYv1jhSC3`. We never need it directly — the proxy handles it.
|
|
264
|
-
|
|
265
|
-
### Flow 1: USER_PASSWORD_AUTH (cold login)
|
|
266
|
-
|
|
267
|
-
```http
|
|
268
|
-
POST /auth-service/v3/whoop/ HTTP/1.1
|
|
269
|
-
content-type: application/x-amz-json-1.1
|
|
270
|
-
x-amz-target: AWSCognitoIdentityProviderService.InitiateAuth
|
|
271
|
-
|
|
272
|
-
{
|
|
273
|
-
"AuthFlow": "USER_PASSWORD_AUTH",
|
|
274
|
-
"AuthParameters": {
|
|
275
|
-
"USERNAME": "you@example.com",
|
|
276
|
-
"PASSWORD": "your-password"
|
|
277
|
-
},
|
|
278
|
-
"ClientId": ""
|
|
279
|
-
}
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
Response (status 200, ~1768 B if MFA required, ~4570 B if not):
|
|
283
|
-
|
|
284
|
-
```json
|
|
285
|
-
{
|
|
286
|
-
"ChallengeName": "SMS_MFA",
|
|
287
|
-
"Session": "<opaque base64 ~300 chars>",
|
|
288
|
-
"ChallengeParameters": {
|
|
289
|
-
"CODE_DELIVERY_DELIVERY_MEDIUM": "SMS",
|
|
290
|
-
"CODE_DELIVERY_DESTINATION": "+1***-***-1234",
|
|
291
|
-
"USER_ID_FOR_SRP": "you@example.com"
|
|
292
|
-
},
|
|
293
|
-
"AuthenticationResult": null,
|
|
294
|
-
"AvailableChallenges": ["SMS_MFA"]
|
|
295
|
-
}
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
If the account has no MFA, `ChallengeName` is null and `AuthenticationResult` is populated directly:
|
|
299
|
-
|
|
300
|
-
```json
|
|
301
|
-
{
|
|
302
|
-
"AuthenticationResult": {
|
|
303
|
-
"AccessToken": "eyJraWQiOi...",
|
|
304
|
-
"RefreshToken": "eyJjdHkiOi...",
|
|
305
|
-
"IdToken": "eyJraWQiOi...",
|
|
306
|
-
"ExpiresIn": 86400,
|
|
307
|
-
"TokenType": "Bearer"
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
**Important field shapes:**
|
|
313
|
-
- `AccessToken`: standard JWT, ~1100 chars. `exp` claim is 24 hours from issue.
|
|
314
|
-
- `IdToken`: also a JWT, ~1500 chars. Contains user attributes (sub, email, email_verified).
|
|
315
|
-
- `RefreshToken`: NOT a JWT — it's a JWE (JSON Web Encryption) blob, ~2000 chars. Algorithm: `A256GCM` + `RSA-OAEP`. Whoop's Cognito uses encrypted refresh tokens; we can't decode them, only present them back to Cognito for renewal.
|
|
316
|
-
- `ExpiresIn`: integer seconds the access token is valid (always 86400 = 24h).
|
|
317
|
-
- `TokenType`: always `"Bearer"`.
|
|
318
|
-
|
|
319
|
-
### Flow 2: SMS_MFA challenge response
|
|
320
|
-
|
|
321
|
-
If `ChallengeName: "SMS_MFA"` came back, the iOS app prompts the user for the 6-digit SMS code and sends:
|
|
322
|
-
|
|
323
|
-
```http
|
|
324
|
-
POST /auth-service/v3/whoop/ HTTP/1.1
|
|
325
|
-
content-type: application/x-amz-json-1.1
|
|
326
|
-
x-amz-target: AWSCognitoIdentityProviderService.RespondToAuthChallenge
|
|
327
|
-
|
|
328
|
-
{
|
|
329
|
-
"ChallengeName": "SMS_MFA",
|
|
330
|
-
"ChallengeResponses": {
|
|
331
|
-
"USERNAME": "you@example.com",
|
|
332
|
-
"SMS_MFA_CODE": "123456"
|
|
333
|
-
},
|
|
334
|
-
"ClientId": "",
|
|
335
|
-
"Session": "<the Session token from the InitiateAuth response>"
|
|
336
|
-
}
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
Response includes `AuthenticationResult` with all four tokens. Same shape as Flow 1 success.
|
|
340
|
-
|
|
341
|
-
### Flow 3: REFRESH_TOKEN_AUTH (silent renewal)
|
|
342
|
-
|
|
343
|
-
```http
|
|
344
|
-
POST /auth-service/v3/whoop/ HTTP/1.1
|
|
345
|
-
x-amz-target: AWSCognitoIdentityProviderService.InitiateAuth
|
|
346
|
-
|
|
347
|
-
{
|
|
348
|
-
"AuthFlow": "REFRESH_TOKEN_AUTH",
|
|
349
|
-
"AuthParameters": {
|
|
350
|
-
"REFRESH_TOKEN": "<the JWE refresh token>"
|
|
351
|
-
},
|
|
352
|
-
"ClientId": ""
|
|
353
|
-
}
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
Response (status 200, ~1700 B):
|
|
357
|
-
|
|
358
|
-
```json
|
|
359
|
-
{
|
|
360
|
-
"AuthenticationResult": {
|
|
361
|
-
"AccessToken": "<new JWT>",
|
|
362
|
-
"IdToken": "<new JWT>",
|
|
363
|
-
"ExpiresIn": 86400,
|
|
364
|
-
"TokenType": "Bearer"
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
**Note: the refresh response does NOT include a new RefreshToken field.** Cognito does NOT rotate refresh tokens by default on this flow. The same refresh token continues to work until either:
|
|
370
|
-
1. The refresh token's own expiry (~30 days for Whoop), or
|
|
371
|
-
2. The user signs out, or
|
|
372
|
-
3. Whoop revokes it server-side.
|
|
373
|
-
|
|
374
|
-
Our `TokenManager` (`src/whoop/token_manager.ts`) handles both cases — if the refresh response *does* include a new RefreshToken (some Cognito configurations do rotate), it persists it. If it doesn't, we keep using the existing one.
|
|
375
|
-
|
|
376
|
-
### Flow 4: SOFTWARE_TOKEN_MFA (TOTP, not SMS)
|
|
377
|
-
|
|
378
|
-
For accounts using a TOTP authenticator app instead of SMS, the challenge name changes:
|
|
379
|
-
|
|
380
|
-
```json
|
|
381
|
-
{
|
|
382
|
-
"ChallengeName": "SOFTWARE_TOKEN_MFA",
|
|
383
|
-
"ChallengeResponses": {
|
|
384
|
-
"USERNAME": "you@example.com",
|
|
385
|
-
"SOFTWARE_TOKEN_MFA_CODE": "123456"
|
|
386
|
-
},
|
|
387
|
-
...
|
|
388
|
-
}
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
Our `bootstrapCognito()` handles both:
|
|
392
|
-
|
|
393
|
-
```ts
|
|
394
|
-
if (init.ChallengeName === "SMS_MFA" || init.ChallengeName === "SOFTWARE_TOKEN_MFA") {
|
|
395
|
-
...
|
|
396
|
-
ChallengeResponses: {
|
|
397
|
-
USERNAME: input.email,
|
|
398
|
-
[init.ChallengeName === "SMS_MFA" ? "SMS_MFA_CODE" : "SOFTWARE_TOKEN_MFA_CODE"]: code,
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
### Flow 5: GetUser (read current user attributes)
|
|
404
|
-
|
|
405
|
-
```http
|
|
406
|
-
POST /auth-service/v3/whoop/ HTTP/1.1
|
|
407
|
-
x-amz-target: AWSCognitoIdentityProviderService.GetUser
|
|
408
|
-
|
|
409
|
-
{
|
|
410
|
-
"AccessToken": "<current access token>"
|
|
411
|
-
}
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
Response (200, 579 B):
|
|
415
|
-
|
|
416
|
-
```json
|
|
417
|
-
{
|
|
418
|
-
"Username": "8a3f1d4e-...",
|
|
419
|
-
"UserAttributes": [
|
|
420
|
-
{"Name": "sub", "Value": "8a3f1d4e-..."},
|
|
421
|
-
{"Name": "email_verified", "Value": "true"},
|
|
422
|
-
{"Name": "phone_number_verified", "Value": "true"},
|
|
423
|
-
{"Name": "phone_number", "Value": "+15551234567"},
|
|
424
|
-
{"Name": "email", "Value": "you@example.com"}
|
|
425
|
-
],
|
|
426
|
-
"MfaOptions": [],
|
|
427
|
-
"PreferredMfaSetting": "SMS_MFA",
|
|
428
|
-
"UserMFASettingList": ["SMS_MFA"]
|
|
429
|
-
}
|
|
430
|
-
```
|
|
431
|
-
|
|
432
|
-
If the access token is expired, this returns 401 with:
|
|
433
|
-
|
|
434
|
-
```json
|
|
435
|
-
{
|
|
436
|
-
"__type": "NotAuthorizedException",
|
|
437
|
-
"message": "Access Token has expired"
|
|
438
|
-
}
|
|
439
|
-
```
|
|
440
|
-
|
|
441
|
-
The MCP doesn't use this endpoint — it relies on the cached user info from the bootstrap response — but it's useful for verifying auth state during debugging.
|
|
442
|
-
|
|
443
|
-
### Flow 6: JWE refresh (alternate path observed)
|
|
444
|
-
|
|
445
|
-
In Phase 1 we observed a different refresh path being used by the iOS app:
|
|
446
|
-
|
|
447
|
-
```http
|
|
448
|
-
POST /auth-service/v3/whoop/ HTTP/1.1
|
|
449
|
-
content-type: application/x-amz-json-1.1
|
|
450
|
-
(no x-amz-target)
|
|
451
|
-
|
|
452
|
-
{
|
|
453
|
-
"ClientId": "",
|
|
454
|
-
"Token": "eyJjdHkiOiJKV1Qi..."
|
|
455
|
-
}
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
The `Token` is the full JWE-encrypted refresh blob. The response in our capture was a 200 with no body recorded (mitmproxy lost the body on connection drop), so we don't have the full response shape. Hypothesis: this is an older path that's being replaced by REFRESH_TOKEN_AUTH. We don't use it.
|
|
459
|
-
|
|
460
|
-
### Headers required for auth requests
|
|
461
|
-
|
|
462
|
-
The Cognito proxy is sensitive to headers — missing the AWS SDK fingerprint headers causes CloudFlare to 403:
|
|
463
|
-
|
|
464
|
-
```
|
|
465
|
-
content-type: application/x-amz-json-1.1
|
|
466
|
-
x-amz-target: AWSCognitoIdentityProviderService.<Operation>
|
|
467
|
-
amz-sdk-invocation-id: <UUID, generated per request>
|
|
468
|
-
amz-sdk-request: attempt=1; max=1
|
|
469
|
-
user-agent: aws-sdk-swift/1.5.86 ua/2.1 api/cognito_identity_provider#1.5.86 os/ios#26.3.1 lang/swift#5.10 m/D,N,Z,b
|
|
470
|
-
accept: */*
|
|
471
|
-
accept-encoding: gzip, deflate, br
|
|
472
|
-
accept-language: en-US,en;q=0.9
|
|
473
|
-
```
|
|
474
|
-
|
|
475
|
-
The User-Agent must look like AWS's Swift SDK. We initially tried with a Node-style UA and got 403. Adopting the iOS SDK's UA passed.
|
|
476
|
-
|
|
477
|
-
### Headers for all other (data) requests
|
|
478
|
-
|
|
479
|
-
After auth, every API call to `api.prod.whoop.com/<service>/<endpoint>` carries the
|
|
480
|
-
bearer token **plus the iOS app's full identity header set**, so our traffic sits
|
|
481
|
-
inside the legitimate-app distribution instead of standing out as the one client
|
|
482
|
-
that omits them (`src/whoop/device.ts` builds these; `src/whoop/client.ts` merges
|
|
483
|
-
them):
|
|
484
|
-
|
|
485
|
-
```
|
|
486
|
-
authorization: Bearer <access token> (capital "Bearer", as the app sends)
|
|
487
|
-
user-agent: iOS (literally "iOS" — the app's data-request UA)
|
|
488
|
-
x-whoop-device-platform: iOS
|
|
489
|
-
x-whoop-ios-version: 5.52.0 ← app-version constant (bump on app updates)
|
|
490
|
-
x-whoop-ios-build-number: 595097 ← build-number constant
|
|
491
|
-
x-whoop-bundle-name: com.whoop.iphone
|
|
492
|
-
x-whoop-installation-identifier: <UUID> ← randomized per install, persisted to .env
|
|
493
|
-
x-whoop-time-zone: <IANA name> ← derived from the host, like a phone
|
|
494
|
-
x-whoop-clock-format: TWELVE_HOUR
|
|
495
|
-
currency: USD
|
|
496
|
-
locale: en_US
|
|
497
|
-
accept-language: en
|
|
498
|
-
accept: */*
|
|
499
|
-
priority: u=3
|
|
500
|
-
content-type: application/json (for POST/PUT/PATCH only)
|
|
501
|
-
```
|
|
502
|
-
|
|
503
|
-
**Why these and not more.** The static values above are the app's *own* constants —
|
|
504
|
-
shared by every real install on this version, so they're camouflage, not a
|
|
505
|
-
signature. The installation identifier is randomized per install (uppercase UUID,
|
|
506
|
-
persisted via `src/whoop/installation.ts` so it's stable across restarts), exactly
|
|
507
|
-
like the app, so there's no shared constant to fingerprint. Timezone is derived
|
|
508
|
-
from the host. We deliberately send **nothing the app doesn't** — no Sentry
|
|
509
|
-
`baggage`/`sentry-trace`, no marketing cookies — because a unique invented header
|
|
510
|
-
in open-source code would be the precise one-line WAF rule we're avoiding. We also
|
|
511
|
-
don't set `accept-encoding` ourselves: doing so disables undici's automatic
|
|
512
|
-
response decompression and would break `response.json()`.
|
|
513
|
-
|
|
514
|
-
Two of these headers also affect response *content*, and both were verified safe:
|
|
515
|
-
`x-whoop-clock-format: TWELVE_HOUR` matches the server's existing default (our
|
|
516
|
-
captures already return 12-hour clock labels, which `parseClockMinutes` expects),
|
|
517
|
-
and `x-whoop-time-zone` only changes the wall-clock rendering of clock labels,
|
|
518
|
-
which the sleep hypnogram consumes by *relative spacing* anchored to the UTC
|
|
519
|
-
`[start,end]` window — so the timeline is zone-invariant.
|
|
520
|
-
|
|
521
|
-
Not matched (deliberately, to stay this side of "over the top"): the transport
|
|
522
|
-
fingerprint. We're Node/undici over HTTP/1.1 with a Node TLS signature, not iOS
|
|
523
|
-
Network.framework over HTTP/2 — faking that would need curl-impersonate/uTLS and a
|
|
524
|
-
datacenter IP claiming to be a phone is its own anomaly. App-layer headers are what
|
|
525
|
-
a WHOOP engineer reading this repo could cheaply key on; those are what we match.
|
|
526
|
-
|
|
527
|
-
The `apiVersion=7` query parameter is automatically appended to every request by `src/whoop/client.ts:56`:
|
|
528
|
-
|
|
529
|
-
```ts
|
|
530
|
-
const url = new URL(BASE_URL + path);
|
|
531
|
-
url.searchParams.set("apiVersion", API_VERSION);
|
|
532
|
-
```
|
|
533
|
-
|
|
534
|
-
We've not observed API version drift mid-session, but iOS app updates do roll the version forward periodically.
|
|
535
|
-
|
|
536
|
-
### Token storage
|
|
537
|
-
|
|
538
|
-
In the MCP, tokens persist to `.env`:
|
|
539
|
-
|
|
540
|
-
```
|
|
541
|
-
WHOOP_EMAIL=you@example.com
|
|
542
|
-
WHOOP_PASSWORD=<your password>
|
|
543
|
-
WHOOP_USER_ID={userId}
|
|
544
|
-
WHOOP_IOS_BEARER_TOKEN=eyJraWQiOi... (access token, ~1100 chars)
|
|
545
|
-
WHOOP_COGNITO_REFRESH_TOKEN=eyJjdHkiOi... (refresh token, ~2000 chars)
|
|
546
|
-
```
|
|
547
|
-
|
|
548
|
-
`TokenManager` reads these on startup, decodes the JWT `exp` claim from the access token, and refreshes proactively when within 60 seconds of expiry. The refresh is single-flight: if two tool calls race past the freshness check, only one actually hits the refresh endpoint; the other awaits its result.
|
|
549
|
-
|
|
550
|
-
```ts
|
|
551
|
-
async getToken(): Promise<string> {
|
|
552
|
-
if (this.isFresh()) return this.accessToken;
|
|
553
|
-
if (!this.refreshing) {
|
|
554
|
-
this.refreshing = this.doRefresh().finally(() => {
|
|
555
|
-
this.refreshing = null;
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
await this.refreshing;
|
|
559
|
-
return this.accessToken;
|
|
560
|
-
}
|
|
561
|
-
```
|
|
562
|
-
|
|
563
|
-
When the refresh response comes back with a rotated refresh token, it's written back to `.env`. Server restarts always pick up the freshest state.
|
|
564
|
-
|
|
565
|
-
### Error responses
|
|
566
|
-
|
|
567
|
-
| Status | Body shape | Meaning |
|
|
568
|
-
|---|---|---|
|
|
569
|
-
| 400 | `{"__type":"InvalidParameterException","message":"..."}` | Malformed request — missing required field, wrong type |
|
|
570
|
-
| 400 | `{"__type":"CodeMismatchException","message":"Invalid verification code provided, please try again."}` | Bad MFA code |
|
|
571
|
-
| 400 | `{"__type":"ExpiredCodeException","message":"Invalid code provided, please request a code again."}` | MFA code timed out (~3 min validity) |
|
|
572
|
-
| 401 | `{"__type":"NotAuthorizedException","message":"Incorrect username or password."}` | Wrong password |
|
|
573
|
-
| 401 | `{"__type":"NotAuthorizedException","message":"Refresh Token has expired"}` | Refresh token >30 days old; must re-bootstrap |
|
|
574
|
-
| 401 | `{"__type":"NotAuthorizedException","message":"Access Token has expired"}` | Access token >24 h old; refresh |
|
|
575
|
-
| 403 | (Cloudflare HTML page) | WAF rejected the request — usually a missing AWS SDK header |
|
|
576
|
-
| 429 | `{"__type":"TooManyRequestsException","message":"..."}` | Rate limit on auth attempts. Wait 60+ seconds. |
|
|
577
|
-
|
|
578
|
-
The MCP's error classifier (`src/whoop/errors.ts`) wraps these into:
|
|
579
|
-
- `WhoopAuthExpiredError` for 401
|
|
580
|
-
- `WhoopApiError` with the body excerpt for 4xx
|
|
581
|
-
- `WhoopServerError` for 5xx
|
|
582
|
-
|
|
583
|
-
---
|
|
584
|
-
|
|
585
|
-
## Cross-cutting patterns
|
|
586
|
-
|
|
587
|
-
Across the 47 services, six structural patterns recur. Understanding them once unlocks most of the API.
|
|
588
|
-
|
|
589
|
-
### Pattern 1: BFF vs. data services
|
|
590
|
-
|
|
591
|
-
Endpoints come in two flavors:
|
|
592
|
-
|
|
593
|
-
**Pure data services** return domain objects:
|
|
594
|
-
```json
|
|
595
|
-
{"score": 78, "hrv": 42, "rhr": 68, "respiratory_rate": 14.7}
|
|
596
|
-
```
|
|
597
|
-
|
|
598
|
-
**BFF (Backend-for-Frontend) services** return UI tree fragments:
|
|
599
|
-
```json
|
|
600
|
-
{
|
|
601
|
-
"sections": [
|
|
602
|
-
{"type": "HEADER", "content": {"title": "Recovery", "icon": "RECOVERY_HIGH"}},
|
|
603
|
-
{"type": "GRAPHING_CARD", "content": {"title": "HEART RATE VARIABILITY", "graph": {...}}}
|
|
604
|
-
],
|
|
605
|
-
"navigation_bar_text": "Recovery",
|
|
606
|
-
"analytics_metadata": {...}
|
|
607
|
-
}
|
|
608
|
-
```
|
|
609
|
-
|
|
610
|
-
BFFs are designed for the iOS app to render directly — they include icons, fonts, navigation hints, modal definitions, and haptic feedback specifications inline. Some are 100% UI tree (e.g. `/health-tab-bff`, `/smart-alarm-bff`); others mix data + UI (e.g. `/home-service` returns pillars with both `score: 78` AND `display_name: "OVERVIEW"` and embedded UI sections).
|
|
611
|
-
|
|
612
|
-
To detect a BFF response: look for any of these top-level keys:
|
|
613
|
-
|
|
614
|
-
```
|
|
615
|
-
sections, tiles, modal, _dialog, _drawer, _bottom_sheet,
|
|
616
|
-
navigation_bar_text, toolbar_title, navigation_title,
|
|
617
|
-
content + type + refresh_behavior + prefetch_list, (the followers-service/context-hub-bff envelope)
|
|
618
|
-
analytics, analytics_id, analytics_metadata, analytics_action,
|
|
619
|
-
cta, cta_location, button_title,
|
|
620
|
-
_display suffix on display strings (title_display, body_display)
|
|
621
|
-
```
|
|
622
|
-
|
|
623
|
-
Services we identified as primarily BFF:
|
|
624
|
-
|
|
625
|
-
```
|
|
626
|
-
/ai-conversation-bff/
|
|
627
|
-
/context-hub-bff/
|
|
628
|
-
/core-details-bff/
|
|
629
|
-
/followers-service/ (BFF-shaped despite "-service" name)
|
|
630
|
-
/health-tab-bff/
|
|
631
|
-
/home-service/ (BFF-style with pillars + sections)
|
|
632
|
-
/integrations-bff/
|
|
633
|
-
/smart-alarm-bff/
|
|
634
|
-
/membership-service/ (mostly BFF)
|
|
635
|
-
/onboarding-service/ (mostly BFF)
|
|
636
|
-
/streaks-service/v1/bff/... (literally has /bff/ in the path)
|
|
637
|
-
/coaching-service/v1/health/bff/monitor (same)
|
|
638
|
-
/hr-zones-service/v1/bff/* (same)
|
|
639
|
-
/journal-service/v3/ (BFF — vs v2 which is data)
|
|
640
|
-
/profile-service/v1/profile/bff* (suffix)
|
|
641
|
-
/weightlifting-service/v3/ (BFF — vs v2 which is data)
|
|
642
|
-
/womens-health-service/v1/ (mostly BFF)
|
|
643
|
-
/advanced-labs-service/
|
|
644
|
-
/commerce-service/v1/mobile/shop/home
|
|
645
|
-
/research-service/research-bff-service/
|
|
646
|
-
/widget-service/
|
|
647
|
-
/community-service/v1/communities/featured (BFF list)
|
|
648
|
-
```
|
|
649
|
-
|
|
650
|
-
The MCP prefers **data endpoints over BFFs** when both exist. For example:
|
|
651
|
-
- For sleep stages, the BFF endpoint `/home-service/v1/deep-dive/sleep/last-night?date=` returns the full UI tree (~848 KB). We project from it because it's the only sleep stage source, extracting the structured fields we need (~6 KB output, most of it the per-stage hypnogram timeline reconstructed from the HR-curve points).
|
|
652
|
-
- For workouts list, we use the public-API-equivalent endpoint at `/developer/v2/activity/workout` exposed inside the iOS API (~600 bytes per workout) instead of the home BFF's ACTIVITY tiles (~5 KB per workout with UI cruft). The iOS app calls this endpoint internally even though it's the same path the OAuth API documents — so we get the same compact shape without needing OAuth scopes.
|
|
653
|
-
- For journal entries, we use the v3 drafts endpoint (`/journal-service/v3/journals/drafts/mobile/{date}`) which is BFF-ish but returns structured `{tracked_behaviors[]}` — and NOT the v2 `/behaviors/user/{date}` endpoint, which misleadingly returns the user's behavior catalog (which behaviors they've enabled for tracking), not the entries.
|
|
654
|
-
|
|
655
|
-
### Pattern 2: GRAPHING_CARD by title (legacy — partially superseded)
|
|
656
|
-
|
|
657
|
-
> **Heads up:** Whoop migrated `/home-service/v1/deep-dive/recovery` and `/home-service/v1/deep-dive/strain` from this pattern to the new **`SCORE_GAUGE + CONTRIBUTORS_TILE`** shape in May 2026 — see [Pattern 2b](#pattern-2b-score_gauge--contributors_tile-may-2026-recovery--strain) below. The pattern below still applies to **sleep deep-dive, stress timeline, and trends**, which retain the card-based shape.
|
|
658
|
-
|
|
659
|
-
The most-loaded BFF pattern across most of Whoop's deep-dive endpoints. A `GRAPHING_CARD` represents one metric displayed as a line or bar chart over time:
|
|
660
|
-
|
|
661
|
-
```json
|
|
662
|
-
{
|
|
663
|
-
"type": "GRAPHING_CARD",
|
|
664
|
-
"content": {
|
|
665
|
-
"id": "hrv",
|
|
666
|
-
"title": "HEART RATE VARIABILITY",
|
|
667
|
-
"trends_cta": {...},
|
|
668
|
-
"icon": "HRV",
|
|
669
|
-
"graph": {
|
|
670
|
-
"id": "RECOVERY",
|
|
671
|
-
"plane": {...},
|
|
672
|
-
"plots": [
|
|
673
|
-
{
|
|
674
|
-
"plot": {
|
|
675
|
-
"segments": [
|
|
676
|
-
{
|
|
677
|
-
"points": [
|
|
678
|
-
{
|
|
679
|
-
"data_scrubber_details": {
|
|
680
|
-
"primary_contextual_display": "SUN, MAY 17",
|
|
681
|
-
"value": null,
|
|
682
|
-
"value_display": "32",
|
|
683
|
-
"unit_display": "ms",
|
|
684
|
-
...
|
|
685
|
-
},
|
|
686
|
-
"graph_label": {
|
|
687
|
-
"label": "32",
|
|
688
|
-
"label_style": "RECOVERY"
|
|
689
|
-
},
|
|
690
|
-
"position_x": 0.07,
|
|
691
|
-
"position_y": 0.34,
|
|
692
|
-
"style": "RECOVERY"
|
|
693
|
-
},
|
|
694
|
-
...
|
|
695
|
-
]
|
|
696
|
-
}
|
|
697
|
-
]
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
],
|
|
701
|
-
"graph_title_display": null,
|
|
702
|
-
"graph_buttons": [...]
|
|
703
|
-
},
|
|
704
|
-
"sub_items": [],
|
|
705
|
-
"accessibility_label": "Seven day HRV graph"
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
```
|
|
709
|
-
|
|
710
|
-
**Critical extraction rules** (the MCP discovered these the hard way):
|
|
711
|
-
|
|
712
|
-
1. **Identify the card by `content.title`** — case-insensitive substring match. Possible titles **on endpoints still using this pattern** (sleep deep-dive, stress, trends, home BFF): "HEART RATE VARIABILITY", "RESTING HEART RATE", "RESPIRATORY RATE", "SLEEP PERFORMANCE", "STEPS", "STRENGTH ACTIVITY TIME". The titles `"RECOVERY"`, `"STRAIN"`, `"HR ZONES 1-3"`, `"HR ZONES 4-5"`, `"CALORIES"` **no longer exist** in the recovery/strain deep-dives after Whoop's May 2026 migration — those moved to [Pattern 2b](#pattern-2b-score_gauge--contributors_tile-may-2026-recovery--strain). `type: "GRAPHING_CARD"` is the discriminator on `type`, but the title text identifies which card.
|
|
713
|
-
|
|
714
|
-
2. **Today's value lives at `graph.plots[0].plot.segments[0].points[N-1].graph_label.label`** as a STRING (e.g. "78%", "42", "1:41", "4,880"). Strip the `%` suffix and commas to get a number. Time labels like "1:41" should be parsed as minutes-to-ms.
|
|
715
|
-
|
|
716
|
-
3. **`data_scrubber_details.value` is always null.** Whoop puts the real value in `value_display` (string) and `graph_label.label` (string). The `value` field gets populated only after scrubbing on the touchscreen — at API time it's null. Our `extractGraphPoints` helper reads `value_display` first, falls back to parsing `graph_label.label`.
|
|
717
|
-
|
|
718
|
-
4. **Bar plots use a different path.** For day-strain weekly bars and HR-zone-time bars, points come from `plot.bar_groups[]` instead of `plot.segments[].points[]`. Each `bar_group` has a `top_label.label` with the value. The latest day is the rightmost bar (highest `position_x`).
|
|
719
|
-
|
|
720
|
-
5. **Baselines aren't returned as separate fields.** The HRV card has 7 daily points; today's value is the last point, and the "baseline" is implicitly the trend of the prior 6 points. The MCP computes baseline as the mean of prior points.
|
|
721
|
-
|
|
722
|
-
The MCP's `lib/walk.ts` provides:
|
|
723
|
-
- `findCardByTitle(node, titleSubstr)` — depth-first walk for a GRAPHING_CARD whose `content.title` contains the substring (case-insensitive)
|
|
724
|
-
- `latestGraphLabel(card)` — returns the latest point's `graph_label.label` or the last bar's `top_label.label` as a string
|
|
725
|
-
- `labelToNumber(label)` — strips `%` and commas, returns null for time labels
|
|
726
|
-
- `timeLabelToMs(label)` — parses `H:MM` to ms
|
|
727
|
-
|
|
728
|
-
### Pattern 2b: SCORE_GAUGE + CONTRIBUTORS_TILE (May 2026 — recovery + strain)
|
|
729
|
-
|
|
730
|
-
In May 2026 Whoop migrated `/home-service/v1/deep-dive/recovery` and `/home-service/v1/deep-dive/strain` away from the GRAPHING_CARD-by-title shape to a tighter design built around two new item types: `SCORE_GAUGE` and `CONTRIBUTORS_TILE`. The migration was discovered when `whoop_recovery` and `whoop_strain` started returning all-null structured outputs against live data (matrix tests on the dummy account didn't catch it — empty output looked plausible there).
|
|
731
|
-
|
|
732
|
-
**New shape (recovery example):**
|
|
733
|
-
|
|
734
|
-
```json
|
|
735
|
-
{
|
|
736
|
-
"sections": [
|
|
737
|
-
{
|
|
738
|
-
"section_type": "COMPACT",
|
|
739
|
-
"items": [{
|
|
740
|
-
"type": "SCORE_GAUGE",
|
|
741
|
-
"content": {
|
|
742
|
-
"id": "RECOVERY_SCORE_GAUGE",
|
|
743
|
-
"score_display": "78",
|
|
744
|
-
"score_display_suffix": "%",
|
|
745
|
-
"progress_fill_style": "RECOVERY_HIGH",
|
|
746
|
-
"gauge_fill_percentage": 0.78,
|
|
747
|
-
"destination": {"screen": "TRENDS", "parameters": {"trend_key": "RECOVERY", "duration": 1, "date": "2026-05-23"}}
|
|
748
|
-
}
|
|
749
|
-
}]
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
"section_type": "COMPACT",
|
|
753
|
-
"items": [{
|
|
754
|
-
"type": "CONTRIBUTORS_TILE",
|
|
755
|
-
"content": {
|
|
756
|
-
"id": "RECOVERY_CONTRIBUTORS_TILE",
|
|
757
|
-
"metrics": [
|
|
758
|
-
{"id": "CONTRIBUTORS_TILE_HRV", "title": "Heart Rate Variability", "status": "42", "status_subtitle": "40", "status_type": "HIGHER_POSITIVE"},
|
|
759
|
-
{"id": "CONTRIBUTORS_TILE_RHR", "title": "Resting Heart Rate", "status": "68", "status_subtitle": "70", "status_type": "LOWER_POSITIVE"},
|
|
760
|
-
{"id": "CONTRIBUTORS_TILE_RESPIRATORY_RATE", "title": "RESPIRATORY RATE", "status": "14.7", "status_subtitle": "14.8", "status_type": "LOWER_POSITIVE"},
|
|
761
|
-
{"id": "CONTRIBUTORS_TILE_SLEEP_PERFORMANCE", "title": "SLEEP PERFORMANCE", "status": "83%", "status_subtitle": "78%", "status_type": "HIGHER_POSITIVE"}
|
|
762
|
-
]
|
|
763
|
-
}
|
|
764
|
-
}]
|
|
765
|
-
},
|
|
766
|
-
{"section_type": "COMPACT", "items": [{"type": "ARCH_MINI_RECOVERY_IMPACTS", "content": {"path": "behavior-impact-service/v1/impact/summary-card/2026-05-23"}}]},
|
|
767
|
-
{"section_type": "COMPACT", "items": [{"type": "ARCH_MINI_TRENDS", "content": {"path": "home-service/v1/deep-dive/recovery/trends?date=2026-05-23"}}]}
|
|
768
|
-
]
|
|
769
|
-
}
|
|
770
|
-
```
|
|
771
|
-
|
|
772
|
-
**Extraction rules:**
|
|
773
|
-
|
|
774
|
-
1. **Score lives in `SCORE_GAUGE.content.score_display`** as a STRING (e.g. `"78"` for recovery, `"18.9"` for strain). Match the right gauge by `content.id`:
|
|
775
|
-
- Recovery score: `id === "RECOVERY_SCORE_GAUGE"`
|
|
776
|
-
- Strain score: `id === "STRAIN_SCORE_GAUGE"`
|
|
777
|
-
|
|
778
|
-
2. **Recovery state comes from `progress_fill_style`** on the recovery score gauge: `RECOVERY_HIGH → GREEN`, `RECOVERY_MEDIUM → YELLOW`, `RECOVERY_LOW → RED`. The strain gauge's `progress_fill_style` is just `"STRAIN"` (a visual style, not a state).
|
|
779
|
-
|
|
780
|
-
3. **Contributor metrics are in `CONTRIBUTORS_TILE.content.metrics[]`**, identified by stable `id` constants. The full set seen so far:
|
|
781
|
-
|
|
782
|
-
**Recovery contributors (`id === "RECOVERY_CONTRIBUTORS_TILE"`):**
|
|
783
|
-
- `CONTRIBUTORS_TILE_HRV` — HRV (ms)
|
|
784
|
-
- `CONTRIBUTORS_TILE_RHR` — Resting heart rate (bpm)
|
|
785
|
-
- `CONTRIBUTORS_TILE_RESPIRATORY_RATE` — Respiratory rate (rpm)
|
|
786
|
-
- `CONTRIBUTORS_TILE_SLEEP_PERFORMANCE` — Last night's sleep performance (% with suffix)
|
|
787
|
-
- `CONTRIBUTORS_TILE_SPO2` — Blood oxygen (4.0+ strap only — not present on Brian's 3.0)
|
|
788
|
-
- `CONTRIBUTORS_TILE_SKIN_TEMPERATURE` — Skin temperature (4.0+ strap only)
|
|
789
|
-
|
|
790
|
-
**Strain contributors (`id === "STRAIN_CONTRIBUTORS_TILE"`):**
|
|
791
|
-
- `CONTRIBUTORS_TILE_HR_ZONES_1_3` — Time in low/mid HR zones (format `"2:18"` → h:m)
|
|
792
|
-
- `CONTRIBUTORS_TILE_HR_ZONES_4_5` — Time in high HR zones (format `"0:03"`)
|
|
793
|
-
- `CONTRIBUTORS_TILE_STRENGTH_TRAINING_TIME` — Time in Strength Trainer (format `"2:35"`)
|
|
794
|
-
- `CONTRIBUTORS_TILE_STEPS` — Today's step count (format `"10,616"`)
|
|
795
|
-
|
|
796
|
-
4. **`status` = today's value, `status_subtitle` = baseline.** Whoop now provides the baseline directly — the old projection's "compute mean of prior 6 days" math is gone. Just read both fields.
|
|
797
|
-
|
|
798
|
-
5. **Time-format values** (`"2:18"`, `"0:03"`) parse as `h:mm`. Use `(h*60 + m) * 60 * 1000` for ms. Three-segment values (`"1:23:45"`) parse as `h:m:s`.
|
|
799
|
-
|
|
800
|
-
6. **Comma-separated numbers** (`"10,616"`) need `.replace(/,/g, "")` before `parseInt`.
|
|
801
|
-
|
|
802
|
-
7. **`status_type`** classifies the trend direction: `HIGHER_POSITIVE` (current > baseline is good — HRV, steps), `HIGHER_NEGATIVE` (current > baseline is bad — RHR, resp rate), `LOWER_POSITIVE` (current < baseline is good — RHR, resp rate dropped), `LOWER_NEGATIVE` (current < baseline is bad — HRV dropped). Use this if you want to surface "your X is trending up/down" without doing math.
|
|
803
|
-
|
|
804
|
-
**Strain-specific differences from the legacy shape:**
|
|
805
|
-
|
|
806
|
-
- `calories`, `avg_hr_bpm`, `max_hr_bpm`, and per-zone (zone_0/2/3/5) granularity are **no longer in this endpoint** at all. They live per-workout in `/cardio-details`. The MCP keeps the schema fields (returning null) for compatibility.
|
|
807
|
-
- HR zones are only reported as the two aggregate buckets (1-3 and 4-5). The MCP stores them in `zone_1_ms` and `zone_4_ms` respectively; the other zones are null.
|
|
808
|
-
- Workout count comes from counting `ACTIVITY` items in the response (one per workout that day).
|
|
809
|
-
|
|
810
|
-
**Other deep-dive endpoints that have NOT migrated** (still use Pattern 2):
|
|
811
|
-
|
|
812
|
-
- `/home-service/v1/deep-dive/sleep/last-night?date=` — still has `DETAILS_GRAPHING_CARD` + `BAR_GRAPH_CARD` with stage timeline
|
|
813
|
-
- `/health-service/v2/stress-bff/{date}` — still has stress timeline via `STANDARD` + `LINE_PLOT`
|
|
814
|
-
- `/progression-service/v3/trends/{metric}?endDate=` — trend cards still use the older shape
|
|
815
|
-
- `/home-service/v1/home?date=` — home BFF still uses `KEY_STATISTIC` + `CARDIO` cards
|
|
816
|
-
|
|
817
|
-
If your projection of one of those endpoints starts returning all-nulls, repeat the migration analysis (dump live response → diff types/titles vs fixture → rewrite). The `whoop_endpoints` + `whoop_raw` MCP tools make this a 30-second loop.
|
|
818
|
-
|
|
819
|
-
### Pattern 3: Templated paths and placeholders
|
|
820
|
-
|
|
821
|
-
When the dedup pipeline templated paths, the following placeholders emerged:
|
|
822
|
-
|
|
823
|
-
| Placeholder | What it is | Where it comes from |
|
|
824
|
-
|---|---|---|
|
|
825
|
-
| `{uuid}` | UUID v4 (8-4-4-4-12 hex) | Server-assigned for most resources. Client-generated for workout set IDs, custom-exercise IDs (`randomUUID().toUpperCase()` per captured bodies). |
|
|
826
|
-
| `{id}` | Integer ≥6 digits | DB primary keys for communities, journal entries, weekly plans, behaviors |
|
|
827
|
-
| `{date}` | ISO `YYYY-MM-DD` | Day-level path segment, client uses local timezone for the date |
|
|
828
|
-
| `{community_id}` | Integer | Stable community ID. Seen: `12090, {id}, 36858, 41237, 67472`. |
|
|
829
|
-
| `{user_id}` | Integer | Stable user ID. Seen: `{userId}`, `200002` (test testuser2), `228741` (likely Whoop staff member who appeared in a leaderboard), `314986` (another user from leaderboard). |
|
|
830
|
-
| `{exercise_id}` | Upper-snake string OR UUID | Catalog: `BENCHPRESS_BARBELL`, `LATPULLDOWNFRONT_PULLEYMACHINE`, etc. Custom: UUID. |
|
|
831
|
-
| `{behavior_id}` | Integer 1-398 | Behavior tracker ID. Catalog has 308 active behaviors with IDs in this range (gaps where Whoop deleted experimental behaviors). |
|
|
832
|
-
| `{metric}` | Upper-snake string | Trend metric enum. 25 values: `HRV, RHR, RECOVERY, DAY_STRAIN, CALORIES, STEPS, AVERAGE_HR, HOURS_V_NEED, HOURS_V_NEEDED_PERCENT, TIME_IN_BED, SLEEP_PERFORMANCE, SLEEP_EFFICIENCY, SLEEP_CONSISTENCY, SLEEP_DEBT_POST, RESTORATIVE_SLEEP, HR_ZONES_1_3, HR_ZONES_4_5, RESPIRATORY_RATE, STRENGTH_ACTIVITY_TIME, STRESS, STRESS_DURING_SLEEP, STRESS_DURING_NON_STRAIN, VO2_MAX, BODY_COMPOSITION, WEIGHT`. |
|
|
833
|
-
| `{education_name}` | Upper-snake string | Feature-education flow name: `PAIRING_MODE_EDUCATION, ADVANCED_LABS_LH_CYCLE_RANGES, METABOLIC_HEALTH`, etc. |
|
|
834
|
-
| `{conversation_id}` | UUID | Whoop Coach conversation ID, server-assigned at create. |
|
|
835
|
-
| `{namespace}` | Upper-camel string | Notification namespace: `GPS, StressSummary, RecoveryReady`, etc. |
|
|
836
|
-
|
|
837
|
-
### Pattern 4: Pagination patterns
|
|
838
|
-
|
|
839
|
-
Three different pagination conventions across services:
|
|
840
|
-
|
|
841
|
-
**Offset + limit query params:**
|
|
842
|
-
```
|
|
843
|
-
GET /community-service/v1/communities/featured?offset=0&limit=20
|
|
844
|
-
GET /achievements-service/v1/progression?level=12&offset=0&limit=50
|
|
845
|
-
```
|
|
846
|
-
|
|
847
|
-
Response includes `{total_count, offset, records}`. The client paginates by incrementing offset.
|
|
848
|
-
|
|
849
|
-
**Opaque `next_token` cursor:**
|
|
850
|
-
```
|
|
851
|
-
GET /journal-service/v2/journals/behaviors?next_token=eyJsYXN0Ijo...
|
|
852
|
-
```
|
|
853
|
-
|
|
854
|
-
Response: `{records, next_token}`. Client echoes the token on the next call. Token is null when no more pages.
|
|
855
|
-
|
|
856
|
-
**Date-range filters:**
|
|
857
|
-
```
|
|
858
|
-
GET /community-service/v1/leaderboards/communities/41237/average/week/strain/day_strain?startDate=2026-05-17&endDate=2026-05-23
|
|
859
|
-
GET /weightlifting-service/v3/prs?startDate=2026-04-01&endDate=2026-05-23&offset=0
|
|
860
|
-
```
|
|
861
|
-
|
|
862
|
-
Some endpoints support both date ranges AND offset/limit.
|
|
863
|
-
|
|
864
|
-
**Date-in-path (no paging):**
|
|
865
|
-
```
|
|
866
|
-
GET /home-service/v1/deep-dive/recovery?date=2026-05-23
|
|
867
|
-
GET /journal-service/v2/journals/entries/user/date/2026-05-23
|
|
868
|
-
```
|
|
869
|
-
|
|
870
|
-
One day per request; no continuation.
|
|
871
|
-
|
|
872
|
-
### Pattern 5: Status code taxonomy
|
|
873
|
-
|
|
874
|
-
| Code | Frequency | Meaning |
|
|
875
|
-
|---|---|---|
|
|
876
|
-
| 200 | overwhelming majority | Success with body |
|
|
877
|
-
| 204 | ~40 occurrences | Success, no body. Used for PUT updates + DELETEs across the API. |
|
|
878
|
-
| 400 | ~15 occurrences | Client validation error. Response body shape: `{code, message[, location]}`. The `message` is server-controlled and reveals which field failed. The `location` is `"line N, column M"` of the JSON body. Real examples seen: `"Cannot deserialize value of type ContraceptionType from String 'IUD': not one of the values accepted for Enum class: [VAGINAL_RING, ARM_IMPLANT, HORMONAL_IUD, INJECTION, NONE, PILL, NON_HORMONAL_IUD, PATCH]"`, `"Valid birthday (YYYY-MM-DD) is required"`, `"User has no contraception status"`. |
|
|
879
|
-
| 401 | ~12 occurrences across services | JWT expired. The MCP catches these and triggers refresh, then retries. |
|
|
880
|
-
| 403 | 2 occurrences | Permission denied. Seen on `/community-service/v1/communities/{id}/status?online=false` after the user left that community. |
|
|
881
|
-
| 404 | ~25 occurrences | Three flavors: (a) no such entity, (b) feature not enabled for this user (e.g. `/growth-content-service/v1/advanced-labs/management/menu-item` for users without Advanced Labs), (c) leaderboard `/user/{id}` when the user has no data point in that window. The MCP catches 404 on optional sub-fetches (e.g. `whoop_leaderboard.user_row`) and returns `in_window: false` instead of throwing. |
|
|
882
|
-
| 409 | observed during testing | Resource conflict. Created activities or workouts in time ranges that overlap existing ones return 409. |
|
|
883
|
-
| 414 | 1 occurrence | URI Too Long. Seen on `/core-details-bff/v1/cardio-details?activityId={uuid}` once — almost certainly a client-side URL concatenation bug in the iOS app. |
|
|
884
|
-
| 422 | observed during testing | Body validation failed. Whoop sometimes returns 422 instead of 400 for "the request is structurally fine but our business logic says no". Examples: posting a workout with too-short duration, posting a profile PUT with too few fields. |
|
|
885
|
-
| 428 | 1 occurrence | Precondition Required. Seen on `/membership?useReplica=true` with a missing precondition header. The endpoint expects an `If-Match` or similar. |
|
|
886
|
-
| 500 | observed during testing | Server error. Whoop's behavior-impact endpoint returned 500 on a UUID that wasn't valid for that user — a server bug; should have been 404. |
|
|
887
|
-
| 5xx others | 0 observed | We haven't seen 502/503/504. |
|
|
888
|
-
| `None` | ~5 occurrences in dedup | mitmproxy didn't capture the response — connection dropped or the client retried before mitmproxy finished receiving. These are usually retried. |
|
|
889
|
-
|
|
890
|
-
### Pattern 6: Versioning
|
|
891
|
-
|
|
892
|
-
Many services run multiple concurrent versions. The pattern: higher version number = newer schema or added BFF layer. Older versions are rarely retired.
|
|
893
|
-
|
|
894
|
-
```
|
|
895
|
-
/coaching-service/ v1, v2 v2 added /sleepneed BFF
|
|
896
|
-
/behavior-impact-service/ v1, v2 v2 added header+footer+analytics_id
|
|
897
|
-
/core-details-bff/ v0, v1, v2 v0 used sport_id, v2 uses activity_internal_name
|
|
898
|
-
/health-service/ v1, v2 v1 = hormonal-insights, v2 = stress-bff
|
|
899
|
-
/journal-service/ v1, v2, v3 v1=prefs, v2=data, v3=BFF screen content
|
|
900
|
-
/membership-service/ v0, v1, v2, v3 progressive billing/management refinement
|
|
901
|
-
/onboarding-service/ v1, v2 v2 added /emails/check
|
|
902
|
-
/progression-service/ v2, v3 v2=weekly-plan, v3=exercise/trends BFF
|
|
903
|
-
/users-service/ v0, v1, v2 v0=PATCH preference, v1=goals/hidden-metrics/stealth/privacy, v2=bootstrap
|
|
904
|
-
/weightlifting-service/ v1, v2, v3 v1=exercise lookup, v2=catalog+writes, v3=BFF (PRs, library)
|
|
905
|
-
/auth-service/ v2, v3 v2=legacy user/password, v3=Cognito proxy
|
|
906
|
-
/community-service/ v1 only
|
|
907
|
-
/notification-service/ v1 only
|
|
908
|
-
/profile-service/ v1 only
|
|
909
|
-
```
|
|
910
|
-
|
|
911
|
-
The MCP picks the version that produces the cleanest data. For most reads we use v3 BFFs because they're the only place certain derived fields exist. For writes we prefer v2 data endpoints when available because they have more predictable bodies.
|
|
912
|
-
|
|
913
|
-
---
|
|
914
|
-
|
|
915
|
-
## Per-service endpoint reference
|
|
916
|
-
|
|
917
|
-
Every endpoint we observed, organized by service. For each: method + path, status codes seen, request body shape (when applicable), response shape, semantic notes about what the endpoint does, and known gotchas. Sizes are in bytes for the raw API response (before any projection).
|
|
918
|
-
|
|
919
|
-
### achievements-service
|
|
920
|
-
|
|
921
|
-
The gamification surface. Whoop awards achievements as the user accumulates streaks, hits PRs, or completes milestones. This service exposes only the read side — achievements are awarded server-side asynchronously after the user accomplishes something.
|
|
922
|
-
|
|
923
|
-
| Method | Path | Status | Notes |
|
|
924
|
-
|---|---|---|---|
|
|
925
|
-
| GET | `/achievements-service/v1/progression?level={level}` | 200 | Returns paginated achievements for the user's current level. Response is `{total_count, offset, records}` (11,660 B). `{level}` is the user's integer level. The "records" array contains achievement entries with title, description, progress percentage, and unlock state. Levels increase as the user maintains data streaks, sleeps consistently, hits goals, etc. |
|
|
926
|
-
|
|
927
|
-
Whoop sometimes opens a fullscreen modal when a new achievement unlocks — this same endpoint is hit on every app start so the iOS app can compare against locally-cached level state and show the "you unlocked X" overlay.
|
|
928
|
-
|
|
929
|
-
Not wrapped — `whoop_progress` (combined streaks + achievements) was in v1 but cut from v2. Reach it via `whoop_raw` if needed.
|
|
930
|
-
|
|
931
|
-
### activities-service
|
|
932
|
-
|
|
933
|
-
Two distinct concerns: the live activity state machine (workout / sleep / idle / recovery) and the legacy `journals/behaviors` order list. The sport catalog also lives here.
|
|
934
|
-
|
|
935
|
-
| Method | Path | Status | Notes |
|
|
936
|
-
|---|---|---|---|
|
|
937
|
-
| GET | `/activities-service/v1/journals/behaviors/user` | 200 | Returns 176,630 B `{total_count, offset, records}` — the full list of journal behaviors with the user's per-behavior ordering preference. **Different from v2 catalog endpoint!** This is the user's display-order array. |
|
|
938
|
-
| PUT | `/activities-service/v1/journals/behaviors/user` | 204 | Body is a bare JSON array of behavior_tracker_id integers in display order. Two captures had `array[308]` and `array[309]`, matching catalog size ± deleted items. Reorders the journal's behavior toggles. The MCP doesn't wrap this directly — Brian's journal view stays the default order. |
|
|
939
|
-
| GET | `/activities-service/v1/journals/stats/user/{id}` | 200 | Per-behavior statistics (how many times tracked, last tracked date, etc.). 6,449 B `{total_count, offset, records}`. Calling with `/user/0` returns an empty record set (41 B) — `0` is the "any user" id. |
|
|
940
|
-
| GET | `/activities-service/v1/sports/history?countryCode=US` | 200 | 88,606 B array of 203 sport types localized to the country code. AU returned 88,608 B — slightly different bytes due to locale differences. Each sport has an id, name (localized), icon URL, and metadata. |
|
|
941
|
-
| GET | `/activities-service/v1/user-state` | 200 | 148 B response: `{latestMetricsProcessed, source, startAt, state, activity, trackedSleep}`. The realtime state machine. `state` is `"workout" \| "sleep" \| "idle" \| "recovery"`. `activity` is a nested object with `sport_id, sport_name, id` when state is workout. `startAt` is ISO datetime of state start. `latestMetricsProcessed` is the cursor of last metrics frame processed by the server. `trackedSleep` is `true` when the strap is currently asleep. |
|
|
942
|
-
| POST | `/activities-service/v1/user-state` | 200 | Body: `{"state": "workout"}` — sets current state manually. Used by iOS when the user taps "Start Workout" in the app to override auto-detection. Response shape matches GET. |
|
|
943
|
-
| GET | `/activities-service/v2/activity-types` | 200 | 54,998 B array of 197 activity-type records. This is the *canonical* sport/activity catalog used by the workout-creation flows. Differs from `/v1/sports/history` (which is the per-country localized list with 203 entries). The v2 catalog has fewer entries because some sports were merged or deprecated. |
|
|
944
|
-
|
|
945
|
-
The MCP exposes `whoop_live_state` (one tool) directly off `/activities-service/v1/user-state`. Other endpoints aren't wrapped because their data is either niche (`stats/user/0` is useless) or huge and not very actionable (sport catalog of 203 entries).
|
|
946
|
-
|
|
947
|
-
### advanced-labs-service
|
|
948
|
-
|
|
949
|
-
Whoop's "Advanced Labs" is a paid add-on that ships bloodwork via partner labs. This service hosts the BFF for the in-app shop and the post-purchase result viewer.
|
|
950
|
-
|
|
951
|
-
| Method | Path | Status | Notes |
|
|
952
|
-
|---|---|---|---|
|
|
953
|
-
| GET | `/advanced-labs-service/v1/advanced-labs` | 200 | 28,555 B BFF response: `{metadata, navigation_bar, sections, analytics, bottom_sticky_items, initially_selected_segment_id, attended_appointment_dialog}`. The main Advanced Labs landing page in the app. `sections` is a UI tree describing the booking flow + result viewer. |
|
|
954
|
-
| GET | `/advanced-labs-service/v1/product/pdp?panel=BASELINE&screenType=PURCHASE` | None | Response not captured (mitm missed it). `panel` enum observed: `BASELINE`. Other inferred: `HORMONE`, `FITNESS`. `screenType=PURCHASE` is the in-app upgrade flow. |
|
|
955
|
-
|
|
956
|
-
Not wrapped by the MCP — purely a commerce surface.
|
|
957
|
-
|
|
958
|
-
### ai-conversation-bff + ai-conversation-service
|
|
959
|
-
|
|
960
|
-
The Whoop Coach surface. The `-bff` returns conversation UI fragments (turns, messages, suggestions, render hints); the `-service` exposes the Coach-memory settings page.
|
|
961
|
-
|
|
962
|
-
| Method | Path | Status | Notes |
|
|
963
|
-
|---|---|---|---|
|
|
964
|
-
| POST | `/ai-conversation-bff/v1/conversation` | 200 | Creates a new conversation. Body shape: `{source_id, fingerprint, tracking_capabilities, chat_entrypoint_experience, args, source_type}`. Response: `{metadata: {id, fingerprint, source_type, source_id, title, turn_status, icon}, turns: [...], tag}`. The response auto-greets the user — `turns[0].messages[0].items[0].content.text` is the assistant's hello. |
|
|
965
|
-
| GET | `/ai-conversation-bff/v1/conversation/{conversation_id}/presentation/CARDIO_DETAILS` | 200 | 76 B `{proactive_animation}`. A small render hint for showing the conversation embedded inside a cardio activity-detail screen. Other presentation suffixes likely: `RECOVERY`, `STRAIN`, `SLEEP`, `HOME`. |
|
|
966
|
-
| GET | `/ai-conversation-bff/v1/conversation/{conversation_id}/suggestions` | 200 | 109 B `{suggestions}` — array of pill-shaped suggestion chips the user can tap to send. Suggestions are context-aware (different for sleep-deep-dive vs home). |
|
|
967
|
-
| POST | `/ai-conversation-bff/v1/conversation/{conversation_id}/turn` | 200 | Sends a user message. Body: `{role: "user", content: "yes sir", tracking_capabilities, is_suggestion: false}`. Response 312 B: `{id, turn_status, messages, turn_number, feedback}`. `id` is the turn UUID — used for the subsequent GET poll. |
|
|
968
|
-
| GET | `/ai-conversation-bff/v1/conversation/{conversation_id}/turn/{uuid}` | 200 | 189 B response with same shape — poll this until `turn_status` is `COMPLETE` or `messages[]` is non-empty. The Coach response text lives at `messages[].items[].content.text` (BFF rich-content shape), NOT `messages[].content` directly. |
|
|
969
|
-
| POST | `/ai-conversation-bff/v1/conversation/{conversation_id}/turn/{uuid}/seen` | 200 | Body: `{"ttfmt_ms": 5011}` — "time to first meaningful text" telemetry. The client reports how long it took to render the response. |
|
|
970
|
-
| GET | `/ai-conversation-service/v1/settings` | 200 | 1,687 B `{title, settings, footer}` — list of Coach setting toggles like "WHOOP_COACH_MEMORY". |
|
|
971
|
-
| PUT | `/ai-conversation-service/v1/settings` | 200 | Body: `{"active": false, "setting_key": "WHOOP_COACH_MEMORY"}`. Toggles a coach setting. Response 1,688 B same shape. |
|
|
972
|
-
|
|
973
|
-
**The fingerprint pattern.** The conversation's `fingerprint` is a deterministic cache key:
|
|
974
|
-
|
|
975
|
-
```
|
|
976
|
-
fingerprint = "CHAT_WITH_AGENT" + <context_marker> + "_" + <date>
|
|
977
|
-
```
|
|
978
|
-
|
|
979
|
-
Context markers observed:
|
|
980
|
-
- `TRENDS_SLEEP_EFFICIENCY` — opened from the sleep-efficiency trend page
|
|
981
|
-
- `TRENDS_HRV`, `TRENDS_RHR`, `TRENDS_RECOVERY`, `TRENDS_STRAIN`, `TRENDS_STRESS`, `TRENDS_SLEEP_PERFORMANCE` — similar for other trend pages
|
|
982
|
-
- `CARDIO_DETAILS_<activity_uuid>` — embedded in a cardio activity detail
|
|
983
|
-
- `STRESS_MONITOR_<date>` — opened from the stress page
|
|
984
|
-
- `WAKE_UP_REPORT_<date>` — opened from the morning wake-up report
|
|
985
|
-
- `HOME_DAY_RECAP_<date>` — opened from the home tab's daily summary
|
|
986
|
-
|
|
987
|
-
Same fingerprint = same conversation (Whoop reuses conversations when context matches). Different fingerprint = new conversation.
|
|
988
|
-
|
|
989
|
-
The MCP wraps `whoop_coach_ask`, which runs the full create-conversation → send-turn → poll-for-response flow in a single call. The async polling waits up to 30 × 1 second for the response.
|
|
990
|
-
|
|
991
|
-
### app-notifications-service
|
|
992
|
-
|
|
993
|
-
The in-app notification inbox (the bell icon's contents). Different from the OS push notification system.
|
|
994
|
-
|
|
995
|
-
| Method | Path | Status | Notes |
|
|
996
|
-
|---|---|---|---|
|
|
997
|
-
| GET | `/app-notifications-service/v1/app/notification-cards` | 200 | 22 B `{cards, count}` — the carousel of inbox notification cards. Cards are dismissable. |
|
|
998
|
-
| PUT | `/app-notifications-service/v1/app/notifications/{uuid}/expire` | 200 | Dismisses one inbox card. 1,231 B response: `{id, seen, expired, created_at, updated_at, app_notification_type, template_type, notification_title_key, notification_body_key, notification_title_metadata}`. The notification type + template_type identify the kind of notification; `notification_title_key` is an i18n key for the localized text. |
|
|
999
|
-
|
|
1000
|
-
Not wrapped by the MCP — these notifications are user-facing and not high-value as a programmatic surface.
|
|
1001
|
-
|
|
1002
|
-
### auth-service
|
|
1003
|
-
|
|
1004
|
-
Already covered in detail under [Authentication](#authentication). The endpoints:
|
|
1005
|
-
|
|
1006
|
-
| Method | Path | Status | Notes |
|
|
1007
|
-
|---|---|---|---|
|
|
1008
|
-
| POST | `/auth-service/v3/whoop/` | 200/400/401/429 | Multiplexes 5 Cognito operations by request body shape: InitiateAuth (USER_PASSWORD_AUTH / REFRESH_TOKEN_AUTH), RespondToAuthChallenge (SMS_MFA / SOFTWARE_TOKEN_MFA), GetUser, JWE refresh (legacy). |
|
|
1009
|
-
| GET | `/auth-service/v2/user` | 200 | Alt user lookup. Returns `{user}`. |
|
|
1010
|
-
| OPTIONS | `/auth-service/v2/user` | 200 | CORS preflight (suggests this endpoint gets called from in-app web views too). |
|
|
1011
|
-
| GET | `/auth-service/v2/whoop/password/requirements` | 200 | 395 B `{password_policies}` — the password policy used during signup. Includes min length, character class requirements, etc. |
|
|
1012
|
-
|
|
1013
|
-
### autopop-service
|
|
1014
|
-
|
|
1015
|
-
The "auto-populate" suggestion engine. Whoop's iOS app infers behaviors from HealthKit data (e.g. "you went for a run yesterday — log workout?") and shows them as one-tap suggestions in the journal. This endpoint accepts the user's acceptance of those suggestions.
|
|
1016
|
-
|
|
1017
|
-
| Method | Path | Status | Notes |
|
|
1018
|
-
|---|---|---|---|
|
|
1019
|
-
| PUT | `/autopop-service/v1/autopop/JOURNAL/{cycle_id}` | 204 | Marks the autopop suggestion for a journal as accepted. The `JOURNAL` segment is a category enum — others likely exist (e.g. `WORKOUT`) but only this was observed. `{cycle_id}` is the integer cycle ID for the day. No response body. |
|
|
1020
|
-
|
|
1021
|
-
Wrapped as `whoop_journal_autopop`. Irreversible — once accepted, the suggestion can't be un-accepted.
|
|
1022
|
-
|
|
1023
|
-
### behavior-impact-service
|
|
1024
|
-
|
|
1025
|
-
Correlation analysis: how journal behaviors (alcohol, caffeine, stress, meditation, etc.) affect downstream metrics (recovery, sleep, HRV). The data is computed server-side from the user's history.
|
|
1026
|
-
|
|
1027
|
-
| Method | Path | Status | Notes |
|
|
1028
|
-
|---|---|---|---|
|
|
1029
|
-
| GET | `/behavior-impact-service/v1/impact` | 200 | 13,886 B `{header, journal_enabled, cycle_id, tiles, metadata}` — main impact tab. `tiles` lists behaviors with their measured impact direction (helps recovery / hurts recovery). Requires the user to have logged a meaningful amount of journal data (weeks); on fresh accounts this returns nearly-empty. |
|
|
1030
|
-
| GET | `/behavior-impact-service/v1/impact/journal-trends/{uuid}` | 200 | 6,099 B `{sections}` — trend chart for a single behavior over time. `{uuid}` is the behavior's impact-detail UUID (not the numeric `behavior_tracker_id`!). |
|
|
1031
|
-
| GET | `/behavior-impact-service/v1/impact/journal-trends/{uuid}?endDate={date}` | 200 | 6,101 B same — bounded with end date. |
|
|
1032
|
-
| GET | `/behavior-impact-service/v1/impact/journal-trends/{uuid}?startDate={date}` | 200 | 5,467 B same — bounded with start date. |
|
|
1033
|
-
| GET | `/behavior-impact-service/v1/impact/summary-card/{date}` | 200 | 985 B `{impact_summary_card}` — daily impact summary for the home screen. "Your alcohol last night likely dropped recovery by X%". |
|
|
1034
|
-
| GET | `/behavior-impact-service/v2/impact/details/{uuid}` | 200 | 2,663 B `{header, sections, footer, analytics_id, metadata}` — v2 deep-detail view for one behavior. The v2 adds `header` + `footer` + `analytics_id` wrapping vs v1's flat `sections`. |
|
|
1035
|
-
|
|
1036
|
-
**Critical:** the path placeholders are UUIDs (impact detail IDs), NOT numeric behavior_tracker_ids. To resolve the UUID for a given behavior, the iOS app reads it from `/journal-service/v3/journals/behaviors` (the BFF behavior list) — each behavior toggle there has `destination.parameters.detail_id` populated with the impact UUID. The MCP looks the UUID up the same way.
|
|
1037
|
-
|
|
1038
|
-
Note: on fresh accounts (testuser2 dummy), no behavior has ever been logged, so `destination.parameters.detail_id` is null and the impact endpoint returns 500. A populated account has logged behaviors over time, so his UUIDs are populated and the endpoint works.
|
|
1039
|
-
|
|
1040
|
-
Wrapped as `whoop_behavior_impact`.
|
|
1041
|
-
|
|
1042
|
-
### candidate-service
|
|
1043
|
-
|
|
1044
|
-
Apple HealthKit ingestion. The iOS app pushes HealthKit data (sleep, heart rate, steps, workouts, oxygen saturation, respiratory rate) into Whoop's backend via this service for accounts that have HealthKit sync enabled.
|
|
1045
|
-
|
|
1046
|
-
| Method | Path | Status | Notes |
|
|
1047
|
-
|---|---|---|---|
|
|
1048
|
-
| GET | `/candidate-service/v1/applehealthkit/events?token={n}&permissions=...` | 200 | 556 B response: `{token, sleep_samples, deleted_sleep_samples, workout_samples, deleted_workout_samples, resting_heart_rate_samples, deleted_resting_heart_rate_samples, respiratory_rate_samples, deleted_respiratory_rate_samples, oxygen_saturation_samples}`. The `token` query param is the client's sync cursor (last successful sync). The `permissions` query param is a comma-separated list of HealthKit permission identifiers: `HKCategoryTypeIdentifierSleepAnalysis, HKQuantityTypeIdentifierActiveEnergyBurned, HKQuantityTypeIdentifierHeartRate, HKQuantityTypeIdentifierOxygenSaturation, HKQuantityTypeIdentifierRespiratoryRate, HKQuantityTypeIdentifierRestingHeartRate, HKQuantityTypeIdentifierStepCount, HKWorkoutTypeIdentifier`. |
|
|
1049
|
-
|
|
1050
|
-
This is the **pull-based reconcile API**: client passes its last-seen token, server returns new + deleted samples + a new token. The actual sample *upload* happens elsewhere (likely as part of the protobuf `/metrics-service/v1/metrics` stream). Not wrapped by the MCP — only useful if you're building an iOS replacement.
|
|
1051
|
-
|
|
1052
|
-
### coaching-service
|
|
1053
|
-
|
|
1054
|
-
Whoop's coaching surfaces: the health monitor, the health report (lab-result narrative summary), the performance assessment (weekly/monthly/yearly progress evaluations), and the sleep need calculator that drives the Sleep Coach.
|
|
1055
|
-
|
|
1056
|
-
| Method | Path | Status | Notes |
|
|
1057
|
-
|---|---|---|---|
|
|
1058
|
-
| GET | `/coaching-service/v1/health/bff/monitor` | 200 | 8,444 B `{metadata, title, footer, items, analytics}` — the health monitor home tile (the "Health" card on the home screen, showing weekly trends in HRV / RHR / respiratory rate compared to baseline). |
|
|
1059
|
-
| GET | `/coaching-service/v1/health/report` | 200/404 | Returns 404 if the user hasn't generated a health report yet. After POSTing to the same path, returns 200. |
|
|
1060
|
-
| POST | `/coaching-service/v1/health/report` | 200 | Generates the user's first health report. Empty body; success returns the new report. |
|
|
1061
|
-
| GET | `/coaching-service/v1/performance-assessment/{period}/data/{iso_timestamp}` | 200/404 | 249–254 B response: `{is_assessment_needed, has_assessment, total_recoveries, required_recoveries, recoveries_before_recent_cutoff, expected_assessment_during, next_assessment_during}`. `{period}` enum: `WEEK, MONTH, YEAR`. `{iso_timestamp}` is local ISO with TZ offset (`YYYY-MM-DDTHH:mm:ss.SSS-0700`). 404 means the period boundary hasn't passed yet. 13 distinct captures of this endpoint with different timestamps — each tab open refreshes the timestamp. |
|
|
1062
|
-
| GET | `/coaching-service/v2/sleepneed` | 200 | 2,819 B `{turn_off_schedule_modal, turn_off_all_modal, chip_label_text_display, alarm_schedule_state, next_schedule_day_label, eligible_for_smart_alarms, need_breakdown, need_breakdown_formatted, recommended_time_in_bed_formatted, menstrual_coach_enabled}`. The Sleep Coach data source. `need_breakdown` is the structured `{baseline, debt, strain, nap_credit}` minutes object. `need_breakdown_formatted` is a pre-rendered narrative string. `recommended_time_in_bed_formatted` is `"8h 23m"` style display. `eligible_for_smart_alarms` is a boolean used to gate the smart-alarm screen. `menstrual_coach_enabled` is `true` only if the user has set up MCI. |
|
|
1063
|
-
|
|
1064
|
-
Wrapped as `whoop_performance_assessment` + `whoop_sleep_need`. Health monitor not wrapped (low value for a chat interface).
|
|
1065
|
-
|
|
1066
|
-
### commerce-service
|
|
1067
|
-
|
|
1068
|
-
In-app shop + membership pricing catalog.
|
|
1069
|
-
|
|
1070
|
-
| Method | Path | Status | Notes |
|
|
1071
|
-
|---|---|---|---|
|
|
1072
|
-
| GET | `/commerce-service/v1/mobile/shop/home?source=menu` | 200 | 68,672 B BFF: `{metadata, navigation_bar_text, cart, sections, country_selector}`. The mobile shop landing page. Massive response because it includes product catalog (straps, accessories, apparel) with image URLs + pricing. |
|
|
1073
|
-
| GET | `/commerce-service/v2/join-flow/catalog/memberships?tier=PEAK&country=US&language=en` | 200 | 18,884 B `{memberships}`. The membership pricing catalog for signup. `tier` enum: `PEAK` observed; based on Whoop's public pricing page, others are `ONE` and `LIFE`. `country` is ISO-2; `language` is BCP-47. |
|
|
1074
|
-
|
|
1075
|
-
Not wrapped by the MCP.
|
|
1076
|
-
|
|
1077
|
-
### community-service
|
|
1078
|
-
|
|
1079
|
-
By far the largest service surface — 101 unique operations after dedup. Three major areas: community CRUD (create/join/leave/list communities), leaderboards (rank users in a community across metrics × windows), and chat token (issues a Stream/Pusher-style chat auth token).
|
|
1080
|
-
|
|
1081
|
-
#### Community CRUD
|
|
1082
|
-
|
|
1083
|
-
| Method | Path | Status | Notes |
|
|
1084
|
-
|---|---|---|---|
|
|
1085
|
-
| GET | `/community-service/v1/communities/defaultImages` | 200 | 13,616 B `{banner_urls, avatar_urls}` — default images for new community creation. |
|
|
1086
|
-
| GET | `/community-service/v1/communities/featured?includeOwnerDetails=true&offset=&limit=` | 200 | 7,176 B `{total_count, offset, records}` — featured discovery list. |
|
|
1087
|
-
| GET | `/community-service/v1/communities/invites/pending?recipientId={user_id}&includeDetails=true` | 200 | 41 B (empty for users with no invites). |
|
|
1088
|
-
| POST | `/community-service/v1/communities/join/{COMM-CODE}` | 200 | Body empty. Path codes seen: `COMM-{code}, COMM-{code}`. Response 329 B: `{id, unread_count, deleted, online, member_type, notification_setting, created_at, updated_at, last_online, user_id}`. |
|
|
1089
|
-
| GET | `/community-service/v1/communities/memberships?...` | 200 | 1,640-3,213 B `{total_count, offset, records}` — your communities + your rank in each. Query params: `userId, includeOwnerDetails, offset, limit, teamType, includeUserRank, leaderboardType, startDate, endDate, period`. `teamType` enum observed: `ALL, COMMUNITY` (others likely: `TEAM, BUSINESS`). `leaderboardType` enum: `strain, sleep, recovery`. |
|
|
1090
|
-
| POST | `/community-service/v1/communities?includeOwnerDetails=true` | 200 | **multipart/form-data** with `Boundary-` delimiters. Fields: `name, shareStrain, shareRecovery, shareSleep, avatarUrl, bannerUrl`. Response 1,566 B: full community object. Note: this is one of only 2 multipart endpoints in the API — the other is the profile avatar PUT. |
|
|
1091
|
-
| PUT | `/community-service/v1/communities/{id}` | 200 | JSON: `{about, avatar, banner, name, owner_id, private, share_recovery, share_sleep, share_strain}`. Updates an existing community. |
|
|
1092
|
-
| PUT | `/community-service/v1/communities/{id}/chat?chatEnabled={bool}&teamType=COMMUNITY` | 200 | No body. Toggles chat for the community. |
|
|
1093
|
-
| GET | `/community-service/v1/communities/{id}/members/details?excludeUser={user_id}&teamType=COMMUNITY&offset=&limit=` | 200 | Paginated member roster. |
|
|
1094
|
-
| GET | `/community-service/v1/communities/{id}?userId=0&includeOwnerDetails=true` | 200 | 1,454 B full community object. `userId=0` is the "any user" lookup. |
|
|
1095
|
-
| PUT | `/community-service/v1/communities/{id}/status?online={bool}` | 200/401/403 | Toggle online presence in a community. 403 if the user has left that community. |
|
|
1096
|
-
| DELETE | `/community-service/v1/communities/{id}/leave?userId={user_id}` | 204 | Leaves the community. |
|
|
1097
|
-
|
|
1098
|
-
#### Chat token
|
|
1099
|
-
|
|
1100
|
-
| Method | Path | Status | Notes |
|
|
1101
|
-
|---|---|---|---|
|
|
1102
|
-
| GET | `/community-service/v1/chat/token` | 200 | 285 B `{chat_token, user_id, channels}` — auth token for Whoop's chat backend (Stream/Pusher style). The `channels` array lists which chat channels the user has access to. |
|
|
1103
|
-
|
|
1104
|
-
#### Leaderboards
|
|
1105
|
-
|
|
1106
|
-
Templated path:
|
|
1107
|
-
|
|
1108
|
-
```
|
|
1109
|
-
/community-service/v1/leaderboards/communities/{community_id}/<window>/<metric>/<stat>[/user/{user_id}][?filters]
|
|
1110
|
-
```
|
|
1111
|
-
|
|
1112
|
-
| Window | Metric | Stat suffix |
|
|
1113
|
-
|---|---|---|
|
|
1114
|
-
| `{date}` (daily, ISO date in path) | `recovery` | `score` |
|
|
1115
|
-
| `average/week` | `sleep` | `performance` |
|
|
1116
|
-
| `average/month` | `strain` | `day_strain` |
|
|
1117
|
-
|
|
1118
|
-
Query params: `offset, limit, startDate, endDate, includeCompliance, complianceCutoff` (e.g. `70`), `teamType=COMMUNITY`.
|
|
1119
|
-
|
|
1120
|
-
Observed combinations — every (window × metric) pair tested:
|
|
1121
|
-
|
|
1122
|
-
| Window | Metric | List endpoint | Single-user endpoint |
|
|
1123
|
-
|---|---|---|---|
|
|
1124
|
-
| `{date}` | `recovery/score` | 200 | 200 / 404 |
|
|
1125
|
-
| `{date}` | `sleep/performance` | 200 | 200 / 404 |
|
|
1126
|
-
| `{date}` | `strain/day_strain` | 200 | 200 / 404 |
|
|
1127
|
-
| `average/week` | `recovery/score` | 200 | 200 / 404 |
|
|
1128
|
-
| `average/week` | `sleep/performance` | 200 | 200 / 404 |
|
|
1129
|
-
| `average/week` | `strain/day_strain` | 200 | 200 / 404 |
|
|
1130
|
-
| `average/month` | `recovery/score` | 200 | 200 / 404 |
|
|
1131
|
-
| `average/month` | `sleep/performance` | 200 | 200 / 404 |
|
|
1132
|
-
| `average/month` | `strain/day_strain` | 200 | 200 / 404 |
|
|
1133
|
-
|
|
1134
|
-
Response shapes:
|
|
1135
|
-
|
|
1136
|
-
**List:** `{name, average, last_updated_at, total_empty, total_compliant, total_non_compliant, total_count, offset, records}`
|
|
1137
|
-
|
|
1138
|
-
**Recovery user row:** `{score, hrv, rhr, first_name, last_name, avatar_url, rank, deleted, created_at, updated_at}`
|
|
1139
|
-
|
|
1140
|
-
**Sleep user row:** `{duration, performance, first_name, last_name, avatar_url, rank, deleted, created_at, updated_at, cycle_day_joined}`
|
|
1141
|
-
|
|
1142
|
-
**Strain user row (avg/week/month):** `{day_strain, calories, peak_activity, first_name, last_name, avatar_url, rank, deleted, created_at, updated_at}`
|
|
1143
|
-
|
|
1144
|
-
**Strain user row (`{date}`):** `{day_strain, calories, activity_strain, activities, first_name, last_name, avatar_url, rank, deleted, created_at}` — has extra `activity_strain` and `activities` breakdown.
|
|
1145
|
-
|
|
1146
|
-
**404 on `/user/{id}`** means "user has no data point in the leaderboard window" (didn't meet compliance, no recovery score that day, etc.). The list endpoint still returns 200 in those cases.
|
|
1147
|
-
|
|
1148
|
-
Communities observed in Brian's account: `12090, {id}, 36858, 41237, 67472`. The 41237 community had a member named "Whoop Team" (user_id 228741) — possibly internal staff. The 67472 community had a 403 on online status — Brian had left it.
|
|
1149
|
-
|
|
1150
|
-
Wrapped as `whoop_leaderboard` (single tool, dispatches on window + metric).
|
|
1151
|
-
|
|
1152
|
-
### context-hub-bff
|
|
1153
|
-
|
|
1154
|
-
A generic UI lifecycle coordinator. The iOS app fetches one of these when entering a context (coach-chat, profile, etc.) to know what to prefetch and how to set up the UI scaffold.
|
|
1155
|
-
|
|
1156
|
-
| Method | Path | Status | Notes |
|
|
1157
|
-
|---|---|---|---|
|
|
1158
|
-
| GET | `/context-hub-bff/v1/context-hub?analytics_source={source}` | 200 | 11,410-11,413 B `{content, type, refresh_behavior, prefetch_list, lifecycle_interactions}`. `analytics_source` enum: `coach-chat, profile` observed. Others inferred from UI flows. |
|
|
1159
|
-
|
|
1160
|
-
Not wrapped — pure UI coordination, no useful data.
|
|
1161
|
-
|
|
1162
|
-
### core-details-bff
|
|
1163
|
-
|
|
1164
|
-
Activity / cardio / strength workout detail screens. Three versions in use simultaneously.
|
|
1165
|
-
|
|
1166
|
-
| Method | Path | Status | Notes |
|
|
1167
|
-
|---|---|---|---|
|
|
1168
|
-
| POST | `/core-details-bff/v0/create-activity` | 200 | Body: `{sport_id: 1, gps_enabled: true, start_time: "2026-05-25T01:46:05.044Z", end_time: "2026-05-25T01:46:07.740Z"}`. Response 490 B: `{id, cycle_id, user_id, created_at, updated_at, version, during, timezone, timezone_offset, source}`. The "v0 with sport_id" shape works reliably; the MCP uses this. |
|
|
1169
|
-
| POST | `/core-details-bff/v2/create-activity` | 400 | Body sent was malformed in the original capture (used `"May 25, 2026"` instead of ISO timestamps): `{"end_time":"May 25, 2026","gps_enabled":false,"start_time":"May 25, 2026","activity_internal_name":"skiing","garment_id":1}`. Response 286 B: `{code, message, location}`. The v2 endpoint accepts the same fields but with `activity_internal_name` (string, e.g. `"skiing"`) instead of `sport_id` (integer). v2 needs ISO timestamps too — the captured body was buggy. |
|
|
1170
|
-
| GET | `/core-details-bff/v1/cardio-details?activityId={uuid}` | 200/414 | **~300 KB response!** `{metadata, link_workout_option_enabled, link_workout_cta_tile, title_bar, horizontal_stat, horizontal_stats, key_metric_carousel, graph_response, vow_response_string, bar_graph_container, tags, tags_v2, map, details_edit_components, whoop_coach_vow, onboarding_overlays, strain_breakdown, weightlifting_cardio_details, menu_options, additional_info_text, achievement_progress_card}`. The single richest endpoint per byte. 414 URI Too Long was seen once — almost certainly a one-off client bug. |
|
|
1171
|
-
| DELETE | `/core-details-bff/v1/cardio-details?activityId={uuid}` | 204 | Deletes the activity. |
|
|
1172
|
-
| GET | `/core-details-bff/v1/start-activity/strain` | 200 | 13,044 B `{cycle_metadata, stealth_mode_enabled}` — the pre-workout screen that shows your current day strain. |
|
|
1173
|
-
| GET | `/core-details-bff/v2/activity-type/user-created` | 200/None | 1,330 B `array[5]` — the user's custom-defined activity types. |
|
|
1174
|
-
| GET | `/core-details-bff/v2/prediction/{id}/activity` | 200 | 86 B `{items, divider_title, show_time_range}` — workout suggestions for the user based on a prediction ID. |
|
|
1175
|
-
|
|
1176
|
-
The 300 KB cardio-details response is decomposed by the MCP's `whoop_workout` projection:
|
|
1177
|
-
- `title_bar.title_display` → sport name
|
|
1178
|
-
- `details_edit_components.start_time_selector.initial_time` / `end_time_selector.initial_time` → ISO timestamps
|
|
1179
|
-
- `horizontal_stat.stat_main_value_display` → activity strain
|
|
1180
|
-
- `key_metric_carousel.key_metric_tile[]` by icon → calories, avg HR, max HR
|
|
1181
|
-
- `bar_graph_container.heart_rate_zones[]` → 6 HR zone durations
|
|
1182
|
-
- `graph_response.plots[*].plot.segments[*].points[]` → HR curve
|
|
1183
|
-
- `weightlifting_cardio_details.weightlifting_exercises.exercise_summary_carousel.items[0].tonnage_display` → MSK total volume (in lbs, converted to kg)
|
|
1184
|
-
- `strain_breakdown.msk_percent_display` → MSK intensity percentage
|
|
1185
|
-
|
|
1186
|
-
Each HR zone has an ID mapping to a zone index:
|
|
1187
|
-
- `RESTORATIVE` → zone 0
|
|
1188
|
-
- `VERY_LIGHT` → zone 1
|
|
1189
|
-
- `LIGHT` → zone 2
|
|
1190
|
-
- `MODERATE` → zone 3
|
|
1191
|
-
- `HARD` → zone 4
|
|
1192
|
-
- `MAX` → zone 5
|
|
1193
|
-
|
|
1194
|
-
The same `weightlifting_cardio_details.weightlifting_exercises.exercise_summary_carousel.items[]` array is also the source for `whoop_lift_history`'s **per-exercise aggregates**. Each item past the first (the first is the workout-summary row with `exercise_id: null`) has:
|
|
1195
|
-
- `exercise_id` (e.g. `"LEGPRESS_PULLEYMACHINE"`)
|
|
1196
|
-
- `title_display` (e.g. `"Leg Press"`)
|
|
1197
|
-
- `subtitle_display` (e.g. `"5 Sets"` — parse as `\d+`)
|
|
1198
|
-
- `tonnage_display` (e.g. `"9600"` — in lbs, parent has `tonnage_units_display: "lbs"`)
|
|
1199
|
-
- `volume_display` (e.g. `"50"` — total reps)
|
|
1200
|
-
- `achievement_icons` (e.g. `["BADGE_SILVER", "BADGE_BRONZE"]`)
|
|
1201
|
-
|
|
1202
|
-
**Per-set detail (set 1: 10 reps @ 200lbs, set 2: ...) is NOT in this endpoint** — Whoop only exposes per-exercise aggregates here. For per-set numbers, use `/weightlifting-service/v3/exercise/{id}/exercise_history` (wrapped as `whoop_lift_exercise`).
|
|
1203
|
-
|
|
1204
|
-
**Sport name filter (lift_history):** `/developer/v2/activity/workout` returns sport_name as `internal_name` (e.g. `weightlifting_msk` for Strength Trainer, `weightlifting` for manual weightlifting, `powerlifting`). None of these contain the substring "strength" — match with `/weight|strength|powerlift/i` to catch all three. This was fixed 2026-05-26 after `whoop_lift_history` was returning empty arrays for all real strength workouts.
|
|
1205
|
-
|
|
1206
|
-
Wrapped as `whoop_workouts` (list, uses `/developer/v2/activity/workout`), `whoop_workout` (single), `whoop_activity_create`, `whoop_activity_delete`, `whoop_lift_history` (filters list to strength sports + extracts per-exercise aggregates from each).
|
|
1207
|
-
|
|
1208
|
-
### device-config
|
|
1209
|
-
|
|
1210
|
-
Remote feature-flag service.
|
|
1211
|
-
|
|
1212
|
-
| Method | Path | Status | Notes |
|
|
1213
|
-
|---|---|---|---|
|
|
1214
|
-
| GET | `/device-config/v1/value` | 200 | 2 B `array[0]`. Empty in our capture — no feature flags set for the user. Other accounts may receive non-empty arrays. |
|
|
1215
|
-
|
|
1216
|
-
Not wrapped.
|
|
1217
|
-
|
|
1218
|
-
### enterprise-service
|
|
1219
|
-
|
|
1220
|
-
For accounts that belong to a Whoop Enterprise / Whoop For Business deployment.
|
|
1221
|
-
|
|
1222
|
-
| Method | Path | Status | Notes |
|
|
1223
|
-
|---|---|---|---|
|
|
1224
|
-
| GET | `/enterprise-service/v1/data-sharing` | 200 | 234 B `{title, subtitle, account_data_sharing_list, footer_text, display}` — lists organizations the user shares their data with (sports teams, employers, military units). |
|
|
1225
|
-
|
|
1226
|
-
Not wrapped — niche surface.
|
|
1227
|
-
|
|
1228
|
-
### entitlement-service
|
|
1229
|
-
|
|
1230
|
-
Feature flags / paid-tier gating. The single source of truth for what features the user can access.
|
|
1231
|
-
|
|
1232
|
-
| Method | Path | Status | Notes |
|
|
1233
|
-
|---|---|---|---|
|
|
1234
|
-
| GET | `/entitlement-service/v1/entitlements` | 200 | 2,509 B `{entitlements, context, tier_feature_map}`. `entitlements` is an object mapping feature names to boolean access flags. `tier_feature_map` shows which features are available at each tier (ONE / PEAK / LIFE). |
|
|
1235
|
-
| PUT | `/entitlement-service/v1/entitlements/onboarding` | 200 | No body. Triggered during onboarding to refresh entitlements after the user picks a tier or completes payment. Response 1,951 B same shape. |
|
|
1236
|
-
|
|
1237
|
-
Not wrapped directly — entitlements are mostly internal. The MCP returns the membership status via `whoop_profile`.
|
|
1238
|
-
|
|
1239
|
-
### followers-service
|
|
1240
|
-
|
|
1241
|
-
Social graph — follower/following model. Distinct from communities (which are group-based). Followers are user-to-user.
|
|
1242
|
-
|
|
1243
|
-
| Method | Path | Status | Notes |
|
|
1244
|
-
|---|---|---|---|
|
|
1245
|
-
| GET | `/followers-service/v1/followers-home` | 200 | 7,849 B BFF: `{content, type, refresh_behavior, prefetch_list, lifecycle_interactions}` — the followers tab landing page. |
|
|
1246
|
-
| GET | `/followers-service/v1/followers-home/manage` | 200 | 1,286 B same BFF shape — manage-followers screen. |
|
|
1247
|
-
| GET | `/followers-service/v1/followers-home/manage/SHARING` | 200 | 2,100 B `{filters, items}` — sharing settings (which metrics you share with followers). `SHARING` is one of the manage-screen categories. Others likely: `FOLLOWERS, FOLLOWING, BLOCKED`. |
|
|
1248
|
-
| GET | `/followers-service/v1/search` | 200 | 1,272 B BFF shape — follower-search screen. |
|
|
1249
|
-
| GET | `/followers-service/v1/search/results` | 200 | 1,181 B `{search_place_holder_text, search_debounce_ms, loading_hint_text, analytic_event, items}` — search-result list. `search_debounce_ms` is the recommended debounce for the search input (typically 300-500). |
|
|
1250
|
-
|
|
1251
|
-
Not wrapped — the MCP doesn't expose social graph operations.
|
|
1252
|
-
|
|
1253
|
-
### growth-content-service
|
|
1254
|
-
|
|
1255
|
-
Marketing / upsell / onboarding content.
|
|
1256
|
-
|
|
1257
|
-
| Method | Path | Status | Notes |
|
|
1258
|
-
|---|---|---|---|
|
|
1259
|
-
| GET | `/growth-content-service/v1/advanced-labs/management/menu-item` | 404/401 | Returns 404 if the user hasn't purchased Advanced Labs. The 401 was likely a token-expiry race. |
|
|
1260
|
-
| GET | `/growth-content-service/v1/in-app-welcome-screen/order-info-content` | 200 | 3,888 B `{image_name, header, description, menu_items, education_content, provisional_email, footer_buttons, cta}` — the post-purchase welcome screen content. |
|
|
1261
|
-
| GET | `/growth-content-service/v1/payment-method/menu-item` | 200/401 | 425 B `{menu_item, payment_error_state_analytics_properties}` — the "manage payment method" menu item shown in settings. |
|
|
1262
|
-
|
|
1263
|
-
Not wrapped.
|
|
1264
|
-
|
|
1265
|
-
### health-service
|
|
1266
|
-
|
|
1267
|
-
Two distinct concerns: hormonal-insights settings (the MCI / women's-health setup flow) and the stress monitor BFF.
|
|
1268
|
-
|
|
1269
|
-
#### Hormonal insights (v1)
|
|
1270
|
-
|
|
1271
|
-
| Method | Path | Status | Notes |
|
|
1272
|
-
|---|---|---|---|
|
|
1273
|
-
| DELETE | `/health-service/v1/hormonal-insights/settings/mci` | 204 | Disables MCI (Menstrual Cycle Insights) entirely. |
|
|
1274
|
-
| PUT | `/health-service/v1/hormonal-insights/settings/mci/survey` | 204 | Body: `{contraception_type, interest, last_period_date_range, removed_period_days, symptoms, typical_cycle_length}`. Sets up MCI. |
|
|
1275
|
-
|
|
1276
|
-
**Valid enums (server-validated; we discovered these by probing 400s):**
|
|
1277
|
-
|
|
1278
|
-
`contraception_type`:
|
|
1279
|
-
```
|
|
1280
|
-
NONE, PILL, ARM_IMPLANT, HORMONAL_IUD, NON_HORMONAL_IUD, PATCH, INJECTION, VAGINAL_RING
|
|
1281
|
-
```
|
|
1282
|
-
|
|
1283
|
-
`interest`:
|
|
1284
|
-
```
|
|
1285
|
-
SUPPORT_REPRODUCTIVE_HEALTH_GOALS
|
|
1286
|
-
OTHER_OR_NONE_OF_THE_ABOVE
|
|
1287
|
-
MANAGE_HORMONAL_CONDITION
|
|
1288
|
-
AVOID_PREGNANCY
|
|
1289
|
-
```
|
|
1290
|
-
(truncated in the 400 error message; there may be additional values.)
|
|
1291
|
-
|
|
1292
|
-
`symptoms` is an array of stringified behavior IDs that match the journal catalog: `["229", "177", "231", "227", "230"]`.
|
|
1293
|
-
|
|
1294
|
-
`typical_cycle_length` is integer days (default 28).
|
|
1295
|
-
|
|
1296
|
-
`last_period_date_range` is an array of `[YYYY, MM, DD]` triples for the most recent period.
|
|
1297
|
-
|
|
1298
|
-
`removed_period_days` is similar — for past periods the user wants to delete from the prediction model.
|
|
1299
|
-
|
|
1300
|
-
The MCP uses this to preflight the dummy account before testing `whoop_cycle` (which requires `contraception_type` set).
|
|
1301
|
-
|
|
1302
|
-
#### Stress monitor (v2)
|
|
1303
|
-
|
|
1304
|
-
| Method | Path | Status | Notes |
|
|
1305
|
-
|---|---|---|---|
|
|
1306
|
-
| GET | `/health-service/v2/stress-bff/{date}` | 200/401 | **~1.5 MB response.** `{metadata, title, date_selector, show_connectivity_window, show_education, calibration_text_display, progress_stepper, loading_data, stress_state, vow}`. The full stress monitor BFF for a date. |
|
|
1307
|
-
| GET | `/health-service/v2/stress-bff/{date}/calendar` | 200 | 2,820 B `{calendar_title_display, days_of_month}` — month picker for the stress tab. |
|
|
1308
|
-
| POST | `/health-service/v2/stress-bff?timestamp=May%2024,%202026` | 404 | **Binary body!** Protobuf frames similar to `/metrics-service/v1/metrics`. 404 in all captures — this is probably a deprecated upload path. Real uploads happen via metrics-service. |
|
|
1309
|
-
|
|
1310
|
-
The stress endpoint is 1.5 MB because it includes the per-15-minute stress level timeline for the entire day plus calibration markers, education content, and the Whoop Coach "vow" narrative. The MCP's `whoop_stress` and `whoop_live_stress` extract just the timeline + current level.
|
|
1311
|
-
|
|
1312
|
-
`stress_state.timeline` is an array of `{started_at, ended_at, level}` objects, one per 15-minute window. `level` is null during "no data" windows (strap off, in a workout, etc.).
|
|
1313
|
-
|
|
1314
|
-
### health-tab-bff
|
|
1315
|
-
|
|
1316
|
-
The Health tab — a single home for HRV, RHR, respiratory rate, SpO2, skin temp trends + the live HR view when the strap is recording.
|
|
1317
|
-
|
|
1318
|
-
| Method | Path | Status | Notes |
|
|
1319
|
-
|---|---|---|---|
|
|
1320
|
-
| GET | `/health-tab-bff/v1/health-tab` | 200/401 | 29,141 B `{sections, analytics, show_live_hr, scroll_background_style}` — the Health tab UI. `show_live_hr` is a boolean that determines whether the live HR section is shown. |
|
|
1321
|
-
|
|
1322
|
-
The MCP's `whoop_live_hr` reads this and walks for a `LIVE_HR` / `HEART_RATE_LIVE` / `LIVE_HEART_RATE_TILE` section. When `show_live_hr` is false (the strap isn't actively recording), the tile is absent and `current_bpm` is null.
|
|
1323
|
-
|
|
1324
|
-
### home-service
|
|
1325
|
-
|
|
1326
|
-
The Home tab — every score, deep dive, and trends entry point.
|
|
1327
|
-
|
|
1328
|
-
| Method | Path | Status | Notes |
|
|
1329
|
-
|---|---|---|---|
|
|
1330
|
-
| GET | `/home-service/v1/calendar/overview?date={date}` | 200 | `{calendar_title_display, calendar_key, days_of_month}`. Month-view calendar with per-day score state. |
|
|
1331
|
-
| GET | `/home-service/v1/calendar/recovery?date={date}` | 200 | Same shape — recovery-colored variant. |
|
|
1332
|
-
| GET | `/home-service/v1/deep-dive/recovery/trends?date={date}` | 200 | 21,001 B `{sections}` — full recovery trends screen. |
|
|
1333
|
-
| GET | `/home-service/v1/deep-dive/recovery?date={date}` | 200 | 4,655 B `{metadata, header, sections}` — recovery deep dive. The MCP wraps this as `whoop_recovery`. **Shape migrated May 2026** from GRAPHING_CARD tiles to `SCORE_GAUGE { id: "RECOVERY_SCORE_GAUGE" }` + `CONTRIBUTORS_TILE { id: "RECOVERY_CONTRIBUTORS_TILE" }` (with metrics for HRV / RHR / RESPIRATORY_RATE / SLEEP_PERFORMANCE / optional SPO2 / optional SKIN_TEMPERATURE). See [Pattern 2b](#pattern-2b-score_gauge--contributors_tile-may-2026-recovery--strain). |
|
|
1334
|
-
| GET | `/home-service/v1/deep-dive/sleep/last-night?date={date}` | 200 | **848,428 B = 848 KB!** `{header_section, sub_header_section, sections}`. Full sleep stages + hypnogram + HR + HRV traces. The single biggest non-binary response in the API. The MCP wraps this as `whoop_sleep` and extracts ~6 KB of clean data — stage totals, the full per-stage hypnogram, and in-sleep HR (avg/min), all reconstructed from the per-stage HR-curve points. |
|
|
1335
|
-
| GET | `/home-service/v1/deep-dive/sleep/trends?date={date}` | 200 | 44,991 B `{sections}` — sleep trends. |
|
|
1336
|
-
| GET | `/home-service/v1/deep-dive/sleep?date={date}` | 200 | 5,030 B `{metadata, header, sections}` — sleep summary (different from /last-night which is the wake-up recap). |
|
|
1337
|
-
| GET | `/home-service/v1/deep-dive/strain/trends?date={date}` | 200 | 28,706 B `{sections}` — strain trends. |
|
|
1338
|
-
| GET | `/home-service/v1/deep-dive/strain?date={date}` | 200 | 5,601 B `{metadata, header, sections}` — strain deep dive. Wrapped as `whoop_strain`. **Shape migrated May 2026** to `SCORE_GAUGE { id: "STRAIN_SCORE_GAUGE" }` + `CONTRIBUTORS_TILE { id: "STRAIN_CONTRIBUTORS_TILE" }` (metrics: HR_ZONES_1_3 / HR_ZONES_4_5 / STRENGTH_TRAINING_TIME / STEPS) + `ACTIVITY` items per workout. `calories`, `avg_hr_bpm`, `max_hr_bpm`, and per-zone granularity are no longer in this endpoint — fetch per-workout `/cardio-details` instead. |
|
|
1339
|
-
| GET | `/home-service/v1/home?date={date}` | 200/401/None | 54,751 B `{metadata, header, pillars, day_one_transition}` — the full home payload. The biggest pillar is `OVERVIEW` containing `SCORE_GAUGE_STICKY` (with gauges for SLEEP, RECOVERY, STRAIN), a workout list, the journal home tile, and the weekly plan card. Wrapped as `whoop_today`. |
|
|
1340
|
-
| GET | `/home-service/v1/tilt-view?date={date}` | 200 | **538,889 B = 539 KB!** `{graph, last_updated_timestamp, title, date_picker, analytics_metadata}` — the "tilt" landscape graph view (rotate your phone on a deep-dive screen for a wider chart). |
|
|
1341
|
-
| GET | `/home-service/v1/widget/overview?widgetSize={SMALL,MEDIUM}` | 200/401/404 | 559 B `{strain_percentage_around, recovery_percentage_around, sleep_percentage_around, strain_string, strain_available, recovery_string, recovery_title, sleep_string, sleep_title, sleep_fill_style}` — iOS widget data. `widgetSize` enum: `SMALL, MEDIUM` (likely `LARGE` too). 404 when no data yet (fresh account). |
|
|
1342
|
-
| GET | `/home-service/v2/home/dashboard/customize` | 200 | 7,186 B `{gauge_metrics, gauge_header, description, pinned_metrics_header, unpinned_metrics_header, pinned_metrics_section, unpinned_metrics_section, bottom_sheet_metrics}` — the dashboard customization screen. |
|
|
1343
|
-
|
|
1344
|
-
The **pillar** structure inside `/home?date=` is the canonical authoritative source for daily scores. Every pillar has:
|
|
1345
|
-
- `type`: `OVERVIEW` (the only one we've seen — older versions had `RECOVERY, STRAIN, SLEEP`)
|
|
1346
|
-
- `display_name`: same as type
|
|
1347
|
-
- `sections`: array of typed UI sections
|
|
1348
|
-
|
|
1349
|
-
Inside the OVERVIEW pillar's sections, the `SCORE_GAUGE_STICKY` section contains:
|
|
1350
|
-
|
|
1351
|
-
```json
|
|
1352
|
-
{
|
|
1353
|
-
"type": "SCORE_GAUGE_STICKY",
|
|
1354
|
-
"content": {
|
|
1355
|
-
"id": "SCORE_GAUGE_STICKY",
|
|
1356
|
-
"gauges": [
|
|
1357
|
-
{
|
|
1358
|
-
"title": "SLEEP",
|
|
1359
|
-
"id": "SLEEP_GAUGE_STICKY",
|
|
1360
|
-
"score_display": "83",
|
|
1361
|
-
"score_display_suffix": "%",
|
|
1362
|
-
"gauge_fill_percentage": 0.83,
|
|
1363
|
-
"progress_fill_style": "SLEEP",
|
|
1364
|
-
"destination": {"screen": "PILLAR_DEEP_DIVE", "parameters": {"pillar": "sleep", "date": "2026-05-23"}}
|
|
1365
|
-
},
|
|
1366
|
-
{
|
|
1367
|
-
"title": "RECOVERY",
|
|
1368
|
-
"score_display": "78",
|
|
1369
|
-
"score_display_suffix": "%",
|
|
1370
|
-
"progress_fill_style": "RECOVERY_HIGH"
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
"title": "STRAIN",
|
|
1374
|
-
"score_display": "17.8",
|
|
1375
|
-
"score_display_suffix": null,
|
|
1376
|
-
"progress_fill_style": "STRAIN"
|
|
1377
|
-
}
|
|
1378
|
-
]
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
```
|
|
1382
|
-
|
|
1383
|
-
`progress_fill_style` encodes the recovery state band:
|
|
1384
|
-
- `RECOVERY_HIGH` → GREEN (>=67%)
|
|
1385
|
-
- `RECOVERY_MEDIUM` → YELLOW (34-66%)
|
|
1386
|
-
- `RECOVERY_LOW` → RED (<34%)
|
|
1387
|
-
|
|
1388
|
-
The MCP's `projectToday` derives recovery state from this style, and `projectRecovery` derives it from the score band directly.
|
|
1389
|
-
|
|
1390
|
-
### hr-zones-service
|
|
1391
|
-
|
|
1392
|
-
Heart-rate zone configuration. Whoop computes default zones from max HR, but the user can override with custom ranges.
|
|
1393
|
-
|
|
1394
|
-
| Method | Path | Status | Notes |
|
|
1395
|
-
|---|---|---|---|
|
|
1396
|
-
| GET | `/hr-zones-service/v1/bff/zones` | 200/404 | 278 B `{zones, effective_timestamp, max_hr_entry_field}`. Returns 404 if not yet set. `zones` is an array of `{id, min, max}` for ZONE_1 through ZONE_5. `max_hr_entry_field` is a UI input field state with `value` (the user's max HR). |
|
|
1397
|
-
| GET | `/hr-zones-service/v1/bff/settings` | 200 | 1,661 B `{screen_title, introduction, heart_rate_entry_row, default_hr_zones, manual_heart_rate_zones_form}`. The settings screen UI. |
|
|
1398
|
-
| POST | `/hr-zones-service/v1/bff/custom` | 200 | Body: `{zones: [{max, id, min}], is_custom: true}`. Example: `{"zones":[{"max":186,"id":"ZONE_5","min":177},{"max":176,"id":"ZONE_4","min":164},{"max":163,"id":"ZONE_3","min":150},{"max":149,"id":"ZONE_2","min":137},{"max":136,"id":"ZONE_1","min":110}],"is_custom":true}`. Sets custom zones. Response 380 B `{zones, effective_timestamp, max_hr_entry_field}`. Zones must be exactly 5 entries. |
|
|
1399
|
-
| POST | `/hr-zones-service/v1/maxhr` | 200 | Body: `{"max_heart_rate": 186}` — sets max HR, server auto-computes the 5 zones. |
|
|
1400
|
-
|
|
1401
|
-
Whoop's default zones formula appears to be percentage-of-max:
|
|
1402
|
-
- Zone 1: 50-60%
|
|
1403
|
-
- Zone 2: 60-70%
|
|
1404
|
-
- Zone 3: 70-80%
|
|
1405
|
-
- Zone 4: 80-90%
|
|
1406
|
-
- Zone 5: 90-100%
|
|
1407
|
-
|
|
1408
|
-
When `is_custom: false`, the zones in the response are these percentages applied to the user's `max_heart_rate`. When `is_custom: true`, the zones are whatever the user set.
|
|
1409
|
-
|
|
1410
|
-
Wrapped as `whoop_hr_zones` + `whoop_hr_zones_set` (two modes: max_hr auto-zones or custom 5-zone array).
|
|
1411
|
-
|
|
1412
|
-
### integrations-bff
|
|
1413
|
-
|
|
1414
|
-
Third-party integrations: TrainingPeaks, Withings, Strava, etc. Most data is read-only (configuration screens for connecting/disconnecting); the actual data sync happens server-to-server.
|
|
1415
|
-
|
|
1416
|
-
| Method | Path | Status | Notes |
|
|
1417
|
-
|---|---|---|---|
|
|
1418
|
-
| GET | `/integrations-bff/v1/integrations/discovery` | 200 | 2,318 B `{integrations}` — list of available integrations. |
|
|
1419
|
-
| GET | `/integrations-bff/v1/integrations/trainingpeaks/details` | 200 | 1,425 B `{id, reporting_key, background_image_url, icon_url, title_display, description_display, description_footnote, learn_more, connected, connected_status_display}`. |
|
|
1420
|
-
| GET | `/integrations-bff/v1/integrations/withings/details` | 200 | 2,140 B same shape. |
|
|
1421
|
-
| GET | `/integrations-bff/v1/integrations/{uuid}/details` | 200 | 1,819 B same shape — generic detail page for any integration. |
|
|
1422
|
-
|
|
1423
|
-
Strava lives separately under `/social-service/v1/strava/bff/settings`.
|
|
1424
|
-
|
|
1425
|
-
Not wrapped by the MCP — niche surface, and integrations are configured once and forgotten.
|
|
1426
|
-
|
|
1427
|
-
### journal-service
|
|
1428
|
-
|
|
1429
|
-
Three concurrent versions: v1 is the journal-enabled toggle, v2 is the data API (read entries + write entries + read catalog), v3 is the BFF for the editor screen + drafts + home tile + date picker.
|
|
1430
|
-
|
|
1431
|
-
| Method | Path | Status | Notes |
|
|
1432
|
-
|---|---|---|---|
|
|
1433
|
-
| GET | `/journal-service/v1/journals/preferences` | 200 | 111 B `{user_id, created_at, updated_at, journal_enabled}` — is the journal feature enabled. |
|
|
1434
|
-
| PUT | `/journal-service/v1/journals/preferences` | 200 | Body: `{"journal_enabled": false}` — toggle journal on/off. |
|
|
1435
|
-
| GET | `/journal-service/v2/journals/behaviors` | 200 | 66,646 B `{records, next_token}` — paginated catalog of all behaviors. The MCP's bundled `src/data/behaviors.ts` was built from this. |
|
|
1436
|
-
| GET | `/journal-service/v2/journals/behaviors/user/{date}` | 200 | 13,156 B `array[16]` — the tracked-behaviors catalog the user has enabled for that date. **NOT the actual journal entries for the date**, despite the misleading path. The actual entries are at v3 drafts. |
|
|
1437
|
-
| PUT | `/journal-service/v2/journals/entries/user/date/{date}` | 204 | Body: `{notes, tracker_inputs}`. `tracker_inputs` is an array of `{behavior_tracker_id, [answered_yes], [magnitude_input_label], [magnitude_input_value]}` objects. The body in the captures had 200+ entries — every tracked behavior for the date. |
|
|
1438
|
-
| GET | `/journal-service/v3/journals/behaviors` | 200 | 73,571 B `{categories, title, grouped_toggles, current_category, button_title, confirmation_modal, search_title}` — BFF for the journal editor screen. The `grouped_toggles[0].toggles[]` array has every behavior with `destination.parameters.detail_id` UUIDs that reference behavior-impact endpoints. |
|
|
1439
|
-
| GET | `/journal-service/v3/journals/date-picker/{date}` | 200 | 2,637 B `{items, left_calendar_display_icon, right_calendar_display_icon, today_cta, today_date}` — the date picker shown above the journal editor. |
|
|
1440
|
-
| GET | `/journal-service/v3/journals/drafts/mobile/{date}` | 200 | 821 B `{integrations, journal: {tracked_behaviors[], user_id, cycle_id, journal_entry_id, notes, user_reviewed}, metadata, experiment_variant}` — auto-saved draft. **This is the authoritative endpoint for "what did the user log on this date".** |
|
|
1441
|
-
| GET | `/journal-service/v3/journals/home-tile?date={date}` | 200 | 1,848 B `{tile}` — the journal card on the home tab. |
|
|
1442
|
-
|
|
1443
|
-
#### Tracker input shapes (4 variants)
|
|
1444
|
-
|
|
1445
|
-
Inside the `tracker_inputs` array, each entry has one of four shapes depending on the behavior's input type:
|
|
1446
|
-
|
|
1447
|
-
**Bare (just marked as "yes I did this"):**
|
|
1448
|
-
```json
|
|
1449
|
-
{"behavior_tracker_id": 80}
|
|
1450
|
-
```
|
|
1451
|
-
|
|
1452
|
-
**Yes/no boolean:**
|
|
1453
|
-
```json
|
|
1454
|
-
{"behavior_tracker_id": 271, "answered_yes": true}
|
|
1455
|
-
{"behavior_tracker_id": 43, "answered_yes": false}
|
|
1456
|
-
```
|
|
1457
|
-
|
|
1458
|
-
**Magnitude (numeric value with a label):**
|
|
1459
|
-
```json
|
|
1460
|
-
{"behavior_tracker_id": 274, "answered_yes": true, "magnitude_input_label": "22", "magnitude_input_value": 22}
|
|
1461
|
-
```
|
|
1462
|
-
|
|
1463
|
-
**Magnitude (with custom label):**
|
|
1464
|
-
```json
|
|
1465
|
-
{"behavior_tracker_id": 145, "magnitude_input_value": 1800, "magnitude_input_label": "1800 cal"}
|
|
1466
|
-
```
|
|
1467
|
-
|
|
1468
|
-
The MCP's `whoop_journal_log` constructs `tracker_inputs` based on which input fields the caller provides:
|
|
1469
|
-
- `{behavior_tracker_id}` alone → bare
|
|
1470
|
-
- `{behavior_tracker_id, answered_yes}` → boolean
|
|
1471
|
-
- `{behavior_tracker_id, magnitude_value, magnitude_label?}` → magnitude
|
|
1472
|
-
|
|
1473
|
-
### member-data-export-service
|
|
1474
|
-
|
|
1475
|
-
GDPR / CCPA data export.
|
|
1476
|
-
|
|
1477
|
-
| Method | Path | Status | Notes |
|
|
1478
|
-
|---|---|---|---|
|
|
1479
|
-
| GET | `/member-data-export-service/v1/member-data-export-details` | 200 | 461 B `{state, help_link_text_display, help_link, export_unavailable_section_icon, export_unavailable_section_headline_display, export_unavailable_section_body_display, screen_title_display, headline_display, body_display}` — the data export UI. The `state` field encodes "is an export currently being processed". |
|
|
1480
|
-
|
|
1481
|
-
Not wrapped. Triggering the actual export probably requires a separate POST that wasn't captured.
|
|
1482
|
-
|
|
1483
|
-
### membership + membership-service
|
|
1484
|
-
|
|
1485
|
-
Membership / billing / strap pairing / referrals. Sprawling — 34 ops + 8 on the bare `/membership` path.
|
|
1486
|
-
|
|
1487
|
-
#### Bare /membership
|
|
1488
|
-
|
|
1489
|
-
| Method | Path | Status | Notes |
|
|
1490
|
-
|---|---|---|---|
|
|
1491
|
-
| GET | `/membership?useReplica={bool}` | 200/428/OPTIONS | 740 B `{userId, membershipStatus, expirationDate, canceledAt, cancelAtPeriodEnd, canUpgrade, nextBillDate, nextBillAmount, cardDigits, cardType}` — legacy bare membership endpoint. `useReplica` query param routes the read to a replica DB. 428 was seen once with `{code, message}` — likely missing an `If-Match` precondition header. |
|
|
1492
|
-
| GET | `/membership/accessories/shop/auth` | 200/401 | 1,409 B `{url, title, subtitle}` — SSO URL for the accessories shop. 401 in some captures from token expiry race. |
|
|
1493
|
-
| OPTIONS | `/membership/referrals` | 204 | CORS preflight (suggests this endpoint is called from in-app web views). |
|
|
1494
|
-
| POST | `/membership/referrals` | 200 | Body: `{"source": "billing"}` → 167 B `{code, message, url}` — generates a referral link. |
|
|
1495
|
-
|
|
1496
|
-
#### /membership-service/v0
|
|
1497
|
-
|
|
1498
|
-
| Method | Path | Status | Notes |
|
|
1499
|
-
|---|---|---|---|
|
|
1500
|
-
| GET | `/membership-service/v0/onboarding/info?flow=create-account&strapSerial={serial}&strapSignature={hash}` | 200 | 268 B `{require_credit_card, require_team_code, show_annual_upsell, family_plan, active_family_plan, paired_text_override, num_trial_months, strap_membership_status, membership_tier_type, is_used_strap}` — first call during signup after the user pairs a strap. `strapSerial` example: `{strapSerial}`. `strapSignature` is a base64'd cryptographic signature proving the user has physical possession of the strap. |
|
|
1501
|
-
|
|
1502
|
-
#### /membership-service/v1 (16 endpoints)
|
|
1503
|
-
|
|
1504
|
-
| Method | Path | Status | Notes |
|
|
1505
|
-
|---|---|---|---|
|
|
1506
|
-
| GET | `/billing/info` | 200/401/OPTIONS | 163 B billing summary |
|
|
1507
|
-
| GET | `/billing/payment_method` | 200/401 | 148 B `array[1]` — card on file |
|
|
1508
|
-
| GET | `/billing/whoop-pro/info` | 200/OPTIONS | 172 B Whoop Pro tier info |
|
|
1509
|
-
| GET | `/family-plans-native/hub` | 200 | 3,150 B family plan management hub |
|
|
1510
|
-
| GET | `/gift-content` | 200 | 812 B gift-membership content |
|
|
1511
|
-
| GET | `/membership-management` | 200 | 3,120 B management screen |
|
|
1512
|
-
| GET | `/membership-management/membership-and-billing` | 200 | 4,216 B same-ish |
|
|
1513
|
-
| POST | `/membership-management/resume` | 204 | Body: `{billing_postal_code:null, payload:{sku, new_tier, promo_code}, payment_method_id:null, use_default_tax:false, promo_code:null}` — resume a canceled membership |
|
|
1514
|
-
| GET | `/membership/native-account-header` | 400 | Feature gating issue — returns 400 even on healthy accounts |
|
|
1515
|
-
| GET | `/membership?useReplica=true` | 200/OPTIONS | 676 B `{account_id, email, status, checkout_origin, customer_token, card_id, card_brand, card_last4, card_exp_month, card_exp_year}` — newer membership detail with payment method |
|
|
1516
|
-
| GET | `/payment/public-stripe-key` | 200/401/404 | Stripe publishable key |
|
|
1517
|
-
| GET | `/refer-a-friend/menu` | 200/401 | 1,033 B `{section_header, items}` |
|
|
1518
|
-
| GET | `/straps` | 200/401 | 169 B `{last_seen_strap, ordered_strap, previous_straps}` |
|
|
1519
|
-
|
|
1520
|
-
#### /membership-service/v2
|
|
1521
|
-
|
|
1522
|
-
| Method | Path | Status | Notes |
|
|
1523
|
-
|---|---|---|---|
|
|
1524
|
-
| GET | `/in-app-banners` | 200/401 | 1,896 B `{banners, overlay_card}` |
|
|
1525
|
-
| GET | `/refer-a-friend/community` | 200 | 767 B `{header, header_style, items}` |
|
|
1526
|
-
| GET | `/referral-content?source={Individual,Team}` | 200 | 204-402 B `{share_sheet_content, banner_content, raf_menu_item, raf_hub_content}`. `source` enum: `Individual, Team`. |
|
|
1527
|
-
| GET | `/straps/pairing-adjustment?strapSerial={serial}&strapSignature={hash}` | 404 | Empty — checks if a paired strap needs alignment |
|
|
1528
|
-
| POST | `/straps/pairing-adjustment` | 204 | Body: `{strap_signature, strap_serial}` |
|
|
1529
|
-
| GET | `/upcycle/onboarding/finalizedContent` | 200 | 1,921 B upcycle (returning member) onboarding content |
|
|
1530
|
-
|
|
1531
|
-
#### /membership-service/v3
|
|
1532
|
-
|
|
1533
|
-
| Method | Path | Status | Notes |
|
|
1534
|
-
|---|---|---|---|
|
|
1535
|
-
| GET | `/billing/info?useReplica=false` | 200/OPTIONS | 1,006 B `{next_bill_promo_amount_off, base_membership, add_ons}` — newest billing detail |
|
|
1536
|
-
|
|
1537
|
-
Not wrapped by the MCP except the membership field in `whoop_profile` (which pulls from bootstrap). Billing operations don't make sense via Claude.
|
|
1538
|
-
|
|
1539
|
-
### metrics-service
|
|
1540
|
-
|
|
1541
|
-
Pure telemetry. Sensor data and processing-cursor management.
|
|
1542
|
-
|
|
1543
|
-
| Method | Path | Status | Notes |
|
|
1544
|
-
|---|---|---|---|
|
|
1545
|
-
| GET | `/metrics-service/v1/consumerstats/mobile/highwatermark/min` | 200 | 40 B `{latestMetricsProcessed}` — the last processed cursor. |
|
|
1546
|
-
| POST | `/metrics-service/v1/metrics` | 200/400/401 | **Binary protobuf body.** ~30-70 KB per upload. The captures show repeated invocations every few seconds during active recording. Body content (visualized): timestamped frames containing accelerometer XYZ floats, PPG samples, HR samples, with frame headers. The full schema would need protobuf reverse-engineering. |
|
|
1547
|
-
|
|
1548
|
-
The dedup snapshot has 20 unique copies of `/metrics`. Each unique body signature represents one captured snapshot of sensor data. Skipped by the MCP entirely — this is the firehose, not an API surface.
|
|
1549
|
-
|
|
1550
|
-
### notification-service
|
|
1551
|
-
|
|
1552
|
-
Push notification preferences + event tracking.
|
|
1553
|
-
|
|
1554
|
-
| Method | Path | Status | Notes |
|
|
1555
|
-
|---|---|---|---|
|
|
1556
|
-
| POST | `/notification-service/v1/notifications/events` | 200 | Body: `{notification_status: "OPENED", notification_type: "RefreshCoordinatorTrigger", source_id: "<uuid>"}`. Event-tracking endpoint for push-notification open/dismiss analytics. `notification_status` enum: `OPENED` observed. Others likely: `DISMISSED, RECEIVED, IGNORED`. `notification_type` enum: `RefreshCoordinatorTrigger` observed. |
|
|
1557
|
-
| GET | `/notification-service/v1/notifications/user-settings/bff` | 200 | 437 B `{title, settings}` — the notification settings UI. |
|
|
1558
|
-
| PUT | `/notification-service/v1/notifications/user-settings/block/namespace` | 200 | Body: `{"namespace": "StressSummary"}` — blocks notifications in a category. Response: `{user_id, blocked_namespaces}`. |
|
|
1559
|
-
| DELETE | `/notification-service/v1/notifications/user-settings/block/namespace/{namespace}` | 200 | Unblocks. Namespaces seen: `GPS, StressSummary`. |
|
|
1560
|
-
|
|
1561
|
-
Not wrapped.
|
|
1562
|
-
|
|
1563
|
-
### onboarding-service
|
|
1564
|
-
|
|
1565
|
-
New-user flow — strap pairing, signup, profile setup, entitlement provisioning, feature-education tracking, overlay state.
|
|
1566
|
-
|
|
1567
|
-
| Method | Path | Status | Notes |
|
|
1568
|
-
|---|---|---|---|
|
|
1569
|
-
| GET | `/onboarding-service/v1/account/activate` | 200 | 17,519 B `{items, event_properties, experiment_properties}` — the onboarding step list |
|
|
1570
|
-
| POST | `/onboarding-service/v1/account/activate` | 200 | Body: `{consents_accepted, marketing_opt_in, recommendation_opt_in, stripe_token, zip_code}`. Real example: `{"recommendation_opt_in":false,"zip_code":"95124","stripe_token":"tok_1TamGCHLc4GztXOmcneSQVRT","consents_accepted":true,"marketing_opt_in":false}`. Response 19 B `{subscribed}`. |
|
|
1571
|
-
| GET | `/onboarding-service/v1/account/device-education` | 200 | 2,753 B strap usage tutorial |
|
|
1572
|
-
| PUT | `/onboarding-service/v1/account/profile` | 200 | Body: `{birthday, gender, height, physiological_baseline, timezone_offset, unit_system, weight}`. Example: `{"height":71, "unit_system":"imperial", "timezone_offset":"-0700", "gender":"male", "weight":163, "physiological_baseline":"male", "birthday":"1994-02-09"}`. **Note: height is in INCHES (71 = 5'11") and weight in pounds for the v1 onboarding endpoint, even with `unit_system:"imperial"`. The profile-service PUT uses METERS and KG. Whoop is inconsistent.** |
|
|
1573
|
-
| PUT | `/onboarding-service/v1/account/sign-up` | 204 | Body: `{admin_division, country, first_name, last_name, timezone_offset, username}`. Example: `{"last_name":"Carr","timezone_offset":"-0700","country":"US","username":"testuser2","first_name":"Josh","admin_division":"CA"}`. |
|
|
1574
|
-
| GET | `/onboarding-service/v1/account/start-auth?fromLogin=true` | 200 | 36,947 B `{start_state, activation_bff}` — start of auth flow when already logged in |
|
|
1575
|
-
| GET | `/onboarding-service/v1/account/start?email={email}&fromLogin=false` | 200 | 37,880 B same — anonymous start with email hint |
|
|
1576
|
-
| GET | `/onboarding-service/v1/app/destination` | 200 | 33 B `{screen, parameters}` — where the app should navigate after launch |
|
|
1577
|
-
| GET | `/onboarding-service/v1/feature-education-state?userId={id}` | 200 | 15,086 B with top-level keys that are feature names: `SEGMENTAL_BODY_COMPOSITION_EDUCATION, WHOOP 4.0 Feature: Sleep Coach with Haptic Alerts, DATA_STREAK_MILESTONE_UNLOCK_EDUCATION, Podcast 165: Dr. Shon Rowan on Pregnancy Exercise & HRV Study, METABOLIC_HEALTH, SLEEP, New WHOOP Feature: Menstrual Cycle Coaching, OVERLAY_HEALTH_TAB, ADVANCED_LABS_LH_CYCLE_RANGES, PREGNANCY_STORY`. The structure of each key's value indicates whether the user has dismissed the education modal. |
|
|
1578
|
-
| PUT | `/onboarding-service/v1/feature-education-state?userId={id}` | 200 | Body: `{"feature_education_id": 379, "completed": true}` — marks a feature-education as completed. IDs seen: `379, 39999`. |
|
|
1579
|
-
| GET | `/onboarding-service/v1/features/educations/onboarding/PAIRING_MODE_EDUCATION` | 200 | 15,710 B `{id, screens, created_at, updated_at, media_header, sticky_button, name, feature, enabled, deleted}` — the strap-pairing education content. |
|
|
1580
|
-
| GET | `/onboarding-service/v1/features/educations/{education_name}` | 200 | 40,991 B same shape — generic education lookup. |
|
|
1581
|
-
| GET | `/onboarding-service/v1/learn-more-carousel/bff/community?zoneId=America/Los_Angeles&cta=MORE` | 404 | Not available for this user's locale. |
|
|
1582
|
-
| GET | `/onboarding-service/v1/overlay/all` | 200 | 15,586 B top-level keys are overlay names: `OVERLAY_HOME_DEEP_DIVES_STRAIN, OVERLAY_ACTIVITY_DETAILS_MSK_YOGA, OVERLAY_HEALTH_TAB, HEALTHSPAN_LABS_INTRODUCTION, OVERLAY_EXERCISE_PROGRESS, OVERLAY_ACTIVITY_DETAILS_MSK_BARRE, OVERLAY_STRENGTH_BUILDER_LIVE_SESSION, OVERLAY_HOME_DEEP_DIVES_SLEEP, OVERLAY_ACTIVITY_DETAILS_MSK_PILATES, OVERLAY_STRENGTH_BUILDER_WORKOUT_BUILDER` — the library of teach-me overlay screens. |
|
|
1583
|
-
| GET | `/onboarding-service/v1/what-to-expect` | 200 | 16,134 B `{toolbar_title, title, subtitle, daily_progress, progress_indicator, items}` |
|
|
1584
|
-
| GET | `/onboarding-service/v1/what-to-expect/entry-point` | 200/401 | 89 B `{title, body, icon, cta_location}` |
|
|
1585
|
-
| POST | `/onboarding-service/v2/emails/check` | 200 | Body: `{"email_address": "you@example.com"}` → 33 B `{valid, dialog_info}` — check if an email is already registered. |
|
|
1586
|
-
|
|
1587
|
-
Not wrapped — onboarding is one-shot per account.
|
|
1588
|
-
|
|
1589
|
-
### privacy-service
|
|
1590
|
-
|
|
1591
|
-
Privacy / sharing preferences. Note that this is **split between two services** — privacy-service handles `searchable, mutual_community_sharing, allow_recommendation` and users-service handles the actual `searchable + mutual_community_sharing` PUT.
|
|
1592
|
-
|
|
1593
|
-
| Method | Path | Status | Notes |
|
|
1594
|
-
|---|---|---|---|
|
|
1595
|
-
| GET | `/privacy-service/v1/user_privacy_settings/` | 200 | 79 B `{searchable, mutual_community_sharing, allow_recommendation}`. **Note the trailing slash on the path!** Without it, the endpoint returns a different response. |
|
|
1596
|
-
| PUT | `/privacy-service/v1/user_privacy_settings/allow-recommendation` | 200 | Body: `{"allow_recommendation": false}` — granular per-flag PUT. |
|
|
1597
|
-
|
|
1598
|
-
The matching PUT endpoints for `searchable` and `mutual_community_sharing` weren't captured, but the convention is clear (`/user_privacy_settings/searchable` and `/user_privacy_settings/mutual-community-sharing`). The users-service `/users/{id}/privacy` PUT handles `searchable` and `mutual_community_sharing` together.
|
|
1599
|
-
|
|
1600
|
-
Not wrapped.
|
|
1601
|
-
|
|
1602
|
-
### profile-service
|
|
1603
|
-
|
|
1604
|
-
User profile CRUD. Avatar upload + bio data + identity fields.
|
|
1605
|
-
|
|
1606
|
-
| Method | Path | Status | Notes |
|
|
1607
|
-
|---|---|---|---|
|
|
1608
|
-
| PUT | `/profile-service/v1/profile` | 200/400 | Body: 6 distinct shapes observed (different field combinations included). Example with everything: `{"email":"test2@example.com","height":1.777999997138977,"country":"US","birthday":"1997-02-09","state":"AL","weight":70.76040649414062,"city":"San Jose","first_name":"Joshhh","gender":"FEMALE","last_name":"Carr","physiological_baseline":"MALE","unit_system":"imperial"}`. **height and weight here are in METERS and KG** regardless of `unit_system` (which is just a display preference). 400 was seen when `country:"AS"` was sent with `state:"AL"` — invalid combination. The `gender` and `physiological_baseline` MUST be uppercase (MALE/FEMALE/NON_BINARY/PREFER_NOT) even though the bootstrap GET returns lowercase. **Birthday MUST be YYYY-MM-DD** — full ISO timestamps return 400 "Valid birthday (YYYY-MM-DD) is required". Partial PUTs with too few fields return 422 — Whoop expects a near-complete profile body. |
|
|
1609
|
-
| PUT | `/profile-service/v1/profile/avatar` | 200 | **Raw PNG body** (~100 KB). The PNG magic bytes (`\x89PNG\r\n\x1a\n`) are sent as the body with `content-type: image/png`. Returns the updated profile. One of two endpoints in the entire API that doesn't use JSON (the other is community create, which is multipart). |
|
|
1610
|
-
| GET | `/profile-service/v1/profile/bff` | 200 | 23,671 B `{profile_metadata, sections}` — Profile tab UI. |
|
|
1611
|
-
| GET | `/profile-service/v1/profile/bff/edit` | 200 | 36,335 B `{avatar_url, first_name, last_name, username, email, city, country, state, member_since, age}` — Edit Profile screen. |
|
|
1612
|
-
|
|
1613
|
-
The MCP wraps `whoop_profile_update` which auto-trims birthday and accepts a near-complete body. The avatar PUT is not wrapped (no good way to pass a PNG via chat).
|
|
1614
|
-
|
|
1615
|
-
### progression-service
|
|
1616
|
-
|
|
1617
|
-
Strength Trainer exercise progressions + the weekly plan goal system.
|
|
1618
|
-
|
|
1619
|
-
| Method | Path | Status | Notes |
|
|
1620
|
-
|---|---|---|---|
|
|
1621
|
-
| GET | `/progression-service/v2/weekly-plan/home-tile/{date}` | 200 | 2,880 B `{tile}` — the weekly plan card on the home tab. |
|
|
1622
|
-
| GET | `/progression-service/v2/weekly-plan/setup?screens=STRENGTH_TRAINING_TIME&editing=true` | 200 | 1,268 B `{plan_id, screens}` — plan setup screen. `screens` query param is the screen sequence to show. |
|
|
1623
|
-
| PUT | `/progression-service/v2/weekly-plan/{uuid}/goal/target` | 204 | Body: `{"type": "STRENGTH_TRAINING_TIME", "target": 360}` — set a weekly goal target in minutes. `type` enum observed: `STRENGTH_TRAINING_TIME`. Inferred others: `WORKOUT_FREQUENCY, SLEEP_HOURS, RECOVERY_DAYS`. |
|
|
1624
|
-
| GET | `/progression-service/v3/exercise/{exercise_id}?endDate={date}` | 200 | 10,412 B `{id, time_segments, segment_controller}` — single exercise progression with per-window data. Uses the same time_segments / named_segments hybrid shape as the trend endpoint. |
|
|
1625
|
-
| GET | `/progression-service/v3/exercise?endDate={date}` | 200 | 24,913 B same shape — all exercises in one call. |
|
|
1626
|
-
| GET | `/progression-service/v3/trends/{metric}?endDate={date}` | 200 | 118,399 B `{metadata, header_name_display, segment_controller, integrations_upsell, week_time_segment, month_time_segment, six_month_time_segment, no_data_name_display, no_data_subtext_name_display, metric_education}` — generic trends endpoint. `{metric}` is the 25-value enum (HRV, RHR, RECOVERY, ...). |
|
|
1627
|
-
|
|
1628
|
-
The MCP wraps `whoop_trend` (the 25-metric trend) and `whoop_lift_progression` (single exercise). `whoop_weekly_plan` was in v1 but cut from v2.
|
|
1629
|
-
|
|
1630
|
-
#### The metrics + segment shape
|
|
1631
|
-
|
|
1632
|
-
Both trend and progression endpoints have the same structural quirk that took the MCP three iterations to handle correctly:
|
|
1633
|
-
|
|
1634
|
-
**Top-level keys can be EITHER:**
|
|
1635
|
-
- A flat `time_segments: [seg1, seg2, seg3]` array (older endpoints)
|
|
1636
|
-
- Or named keys: `week_time_segment, month_time_segment, six_month_time_segment, year_time_segment`
|
|
1637
|
-
|
|
1638
|
-
**Each segment has:**
|
|
1639
|
-
```json
|
|
1640
|
-
{
|
|
1641
|
-
"date_picker": {"current_date_range_display": "May 17-23", "next_date_time": "...", "previous_date_time": "..."},
|
|
1642
|
-
"metrics": [
|
|
1643
|
-
{
|
|
1644
|
-
"trend_key": "HRV",
|
|
1645
|
-
"metric_name_display": "AVERAGE",
|
|
1646
|
-
"metric_value_display": "35",
|
|
1647
|
-
"metric_units_display": "ms",
|
|
1648
|
-
"trend_direction": "DOWN",
|
|
1649
|
-
"trend_style": "NEGATIVE",
|
|
1650
|
-
"trend_text_display": "10% vs. prior week",
|
|
1651
|
-
"current_metric_value": 35,
|
|
1652
|
-
"previous_metric_value": 39,
|
|
1653
|
-
"metric_change": -10
|
|
1654
|
-
}
|
|
1655
|
-
],
|
|
1656
|
-
"graph": {"plots": [{"plot": {"segments": [{"points": [...]}]}}], ...},
|
|
1657
|
-
"vow": {...},
|
|
1658
|
-
"is_hidden": false
|
|
1659
|
-
}
|
|
1660
|
-
```
|
|
1661
|
-
|
|
1662
|
-
**Critical:** `metrics` is an **array**, not an object. The MCP originally treated it as `metrics.avg`, which failed silently because there's no `avg` key on an array. The fix: read `metrics[0].current_metric_value`.
|
|
1663
|
-
|
|
1664
|
-
Also: every point's `data_scrubber_details.value` is null. The numeric value is in `value_display` (string). Need to parse the string.
|
|
1665
|
-
|
|
1666
|
-
### research-service
|
|
1667
|
-
|
|
1668
|
-
Research opt-in studies — Whoop runs scientific studies that members can participate in.
|
|
1669
|
-
|
|
1670
|
-
| Method | Path | Status | Notes |
|
|
1671
|
-
|---|---|---|---|
|
|
1672
|
-
| GET | `/research-service/research-bff-service/v1/campaigns` | 200 | 3,373 B `{page_title_display, page_description_display, page_header_title, page_header_body, empty_state_text, campaign_sections, footer_text_display, footer_carousel}` — list of open research campaigns. |
|
|
1673
|
-
|
|
1674
|
-
The path has a redundant double-segment: `/research-service/research-bff-service/...`. This is because the outer path is the routing prefix and the inner is the actual BFF service name.
|
|
1675
|
-
|
|
1676
|
-
Not wrapped.
|
|
1677
|
-
|
|
1678
|
-
### sleep-service
|
|
1679
|
-
|
|
1680
|
-
| Method | Path | Status | Notes |
|
|
1681
|
-
|---|---|---|---|
|
|
1682
|
-
| GET | `/sleep-service/v1/heart-rate/baseline` | 200 | Response body wasn't captured (mitm lost it). Likely returns `{sleeping_hr_baseline}` — the sleeping HR baseline value. |
|
|
1683
|
-
|
|
1684
|
-
The bulk of sleep data is served via `/home-service/v1/deep-dive/sleep/*`. This endpoint is a one-field utility lookup.
|
|
1685
|
-
|
|
1686
|
-
### smart-alarm-bff + smart-alarm-service
|
|
1687
|
-
|
|
1688
|
-
Smart Alarm CRUD. Two-layer architecture: `-bff` for the schedule UI, `-service` for global preferences + the strap event log.
|
|
1689
|
-
|
|
1690
|
-
#### smart-alarm-bff (v1)
|
|
1691
|
-
|
|
1692
|
-
| Method | Path | Status | Notes |
|
|
1693
|
-
|---|---|---|---|
|
|
1694
|
-
| GET | `/smart-alarm-bff/v1/schedule/all` | 200 | 1,745 B `{all_alarm_schedule_label_display, alarm_schedule_list, alarm_schedule_footer, schedule_button_component, schedule_enabled, should_show_overlay, schedule_disabled_text, deleting_in_progress_modal, deleting_success_modal, delete_error_modal}` — schedule list page. |
|
|
1695
|
-
| GET | `/smart-alarm-bff/v1/schedule/components/populated/{uuid}` | 200 | 4,013 B `{repeat_days, wake_mode, wake_time, sleep_goal, schedule_save_success_modal, schedule_saving_modal, schedule_save_error_modal}` — single schedule slot. |
|
|
1696
|
-
| PUT | `/smart-alarm-bff/v1/schedule/{uuid}` | 200 | Body: `{alarm_mode, day_of_week_list, enabled, latest_wake_time, sleep_goal, time_zone_offset}`. Example: `{"sleep_goal":"","day_of_week_list":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],"time_zone_offset":"-0700","enabled":true,"latest_wake_time":"07:30:00","alarm_mode":"IN_THE_GREEN"}`. `alarm_mode` enum: `IN_THE_GREEN, EXACT_TIME_PEAK, EXACT_TIME_OPTIMIZE_SLEEP`. |
|
|
1697
|
-
|
|
1698
|
-
#### smart-alarm-service (v1)
|
|
1699
|
-
|
|
1700
|
-
| Method | Path | Status | Notes |
|
|
1701
|
-
|---|---|---|---|
|
|
1702
|
-
| PUT | `/smart-alarm-service/v1/alarm-schedule/disable` | 204 | No body — master disable for all schedules. |
|
|
1703
|
-
| PUT | `/smart-alarm-service/v1/alarm-schedule/enable` | 204 | No body — master enable. |
|
|
1704
|
-
| GET | `/smart-alarm-service/v1/smartalarm/preferences` | 200 | 601 B `{lower_time_bound, recovery_score_goal, sleep_score_goal, weekly_plan_goal, weekly_plan_sleep_hours_goal_in_minutes, weekly_plan_sleep_hours_goal, weekly_plan_goal_info, alarm_bounds, last_triggered_at, created_at}`. Note: `alarm_bounds` nests `{goal, upper, lower, enabled}` — the upper time bound + goal mode are NOT at top level. |
|
|
1705
|
-
| PUT | `/smart-alarm-service/v1/smartalarm/preferences` | 200 | Body: `{default, enabled, goal, lower_time_bound, schedule_enabled, time_zone_offset, upper_time_bound, weekly_plan_goal}`. Two shapes observed — full and partial. `goal` enum: `EXACT_TIME_PEAK, EXACT_TIME_OPTIMIZE_SLEEP, IN_THE_GREEN`. |
|
|
1706
|
-
| POST | `/smart-alarm-service/v1/smartalarm/wbl` | 204/401 | "WBL" = wake-by-log. Body: array of events `{timestamp, event_type, mobile_event_metadata}`. `event_type` enum: `PHONE_DISABLED_ALARM, PHONE_SET_ALARM_TIME, STRAP_DRIVEN_ALARM_SET`. `mobile_event_metadata` includes `strap_id, firmware_maxim_version, nordic_version, device_platform, device_os, device_model, is_strap_connected, is_using_battery_optimizers, is_ack_success`. |
|
|
1707
|
-
| PUT | `/smart-alarm-service/v1/strap-status` | 200 | Body: `{"strap_driven_alarm_time": "2026-05-25T07:30:00.000-0700"}` — pushes the alarm time to the strap firmware. The iOS app does this on a delay after a schedule edit. |
|
|
1708
|
-
|
|
1709
|
-
The MCP wraps `whoop_smart_alarm` (read) + `whoop_smart_alarm_set` (write) with 4 modes (schedule / preferences / master_enable / master_disable). The strap-status push is NOT wrapped — the strap will pick up changes when the iOS app next syncs.
|
|
1710
|
-
|
|
1711
|
-
### social-service
|
|
1712
|
-
|
|
1713
|
-
Strava integration settings.
|
|
1714
|
-
|
|
1715
|
-
| Method | Path | Status | Notes |
|
|
1716
|
-
|---|---|---|---|
|
|
1717
|
-
| GET | `/social-service/v1/strava/bff/settings` | 200 | 1,749 B `{state, learn_more_display, learn_more_url, learn_more_icon, privacy_policy_display, privacy_policy_url, web_authorization_url, app_authorization_url, background_image_url, icon_url}` — Strava integration settings screen. The `state` indicates whether Strava is connected. |
|
|
1718
|
-
|
|
1719
|
-
Not wrapped.
|
|
1720
|
-
|
|
1721
|
-
### strap-location-service
|
|
1722
|
-
|
|
1723
|
-
Where on the body the strap is worn — wrist, bicep, calf, etc. Affects HR signal quality and metric thresholds.
|
|
1724
|
-
|
|
1725
|
-
| Method | Path | Status | Notes |
|
|
1726
|
-
|---|---|---|---|
|
|
1727
|
-
| GET | `/strap-location-service/v1/garment` | 200/401 | 2,791 B `array[12]` — list of supported garments (different bicep band variants, ankle band, the underwear variant, etc). Each entry has a name and image URL. |
|
|
1728
|
-
|
|
1729
|
-
Not wrapped.
|
|
1730
|
-
|
|
1731
|
-
### streaks-service
|
|
1732
|
-
|
|
1733
|
-
Data streaks (consecutive days of valid data).
|
|
1734
|
-
|
|
1735
|
-
| Method | Path | Status | Notes |
|
|
1736
|
-
|---|---|---|---|
|
|
1737
|
-
| GET | `/streaks-service/v1/bff/streaks/data-streak` | 200 | 3,074 B `{title, celebration_media, lottie_url, image_url, today_streak_state, streak_value, title_subtitle, streak_subtitle, items, header_icon}` — data-streak detail screen. `today_streak_state` is one of `ACTIVE, MISSED, FROZEN, GRACE_PERIOD`. `streak_value` is the integer current streak length. `lottie_url` points to a Lottie animation JSON for the celebration overlay. |
|
|
1738
|
-
| GET | `/streaks-service/v1/streaks/data-streak` | 200 | 308 B `{streak_value, streak_state, lottie_url, image_url, navigation, animation_accent_color, celebration_overlay}` — small streak widget for the home tab. |
|
|
1739
|
-
|
|
1740
|
-
The MCP previously wrapped `whoop_progress` (streaks + achievements); cut from v2.
|
|
1741
|
-
|
|
1742
|
-
### users-service
|
|
1743
|
-
|
|
1744
|
-
User-level settings, preferences, hidden metrics, stealth mode, and the bootstrap call.
|
|
1745
|
-
|
|
1746
|
-
#### v0
|
|
1747
|
-
|
|
1748
|
-
| Method | Path | Status | Notes |
|
|
1749
|
-
|---|---|---|---|
|
|
1750
|
-
| PATCH | `/users-service/v0/users/preference` | 200 | Body: `{"autoDetectWorkout": false}`. Response 502 B `{userId, autoDetectSleep, autoClassifyWorkout, autoDetectWorkout, computeDayStrain, performanceOptimizationAssessment, performanceOptimizationDayOfWeek, cyclesBetaTester, sleepCoachV2, user_id}`. **Note: the response has BOTH `userId` AND `user_id`** — an API bug. |
|
|
1751
|
-
|
|
1752
|
-
#### v1 (8 endpoints)
|
|
1753
|
-
|
|
1754
|
-
| Method | Path | Status | Notes |
|
|
1755
|
-
|---|---|---|---|
|
|
1756
|
-
| GET | `/users-service/v1/goals/user/motivation` | 404 | Returns 404 if the user hasn't set a motivation goal. |
|
|
1757
|
-
| GET | `/users-service/v1/hidden-metrics/{METRIC}` | 200 | 19 B `{is_hidden}`. Metrics seen: `BODY_COMP, HEALTHSPAN`. |
|
|
1758
|
-
| POST | `/users-service/v1/hidden-metrics/{METRIC}` | 204 | Hide the metric. No body. |
|
|
1759
|
-
| DELETE | `/users-service/v1/hidden-metrics/{METRIC}` | 204 | Unhide. |
|
|
1760
|
-
| GET | `/users-service/v1/stealth-mode` | 200 | Empty body. **You cannot read the current state of stealth mode** via this endpoint — Whoop returns 200 with no payload. The user can set it but not read it (UI just doesn't show a state indicator). The MCP defaults to `stealth_mode: false` in `whoop_profile` as a result. |
|
|
1761
|
-
| PUT | `/users-service/v1/stealth-mode` | 200 | Body: `{"enabled": true}`. |
|
|
1762
|
-
| POST | `/users-service/v1/users/check/username` | 200 | Body: `{"username":"testuser2", "strap_serial":"{strapSerial}", "strap_signature":"<hash>"}` — username availability check (signup only). The strap signature gates this so anonymous probes can't enumerate usernames. |
|
|
1763
|
-
| POST | `/users-service/v1/users/preferences/time` | 200 | Body: `{"clock_format":"TWELVE_HOUR_FORMAT", "timezone":"America/Los_Angeles", "current_time":"2026-05-24T02:47:33.635+0000"}` → 218 B response. `clock_format` enum: `TWELVE_HOUR_FORMAT, TWENTY_FOUR_HOUR_FORMAT`. |
|
|
1764
|
-
| PUT | `/users-service/v1/users/profile/offset` | 204 | Body: `{"timezone_offset": "-0700"}` — update the user's timezone offset. |
|
|
1765
|
-
| GET | `/users-service/v1/users/{id}/preference` | 200 | 102 B `{user_id, auto_detect_sleep, auto_detect_workout, auto_classify_workout}` — read-only summary (subset of the v0 PATCH response). |
|
|
1766
|
-
| PUT | `/users-service/v1/users/{id}/privacy` | 200 | Body: `{"mutual_community_sharing":false, "searchable":true}` → 155 B response with `{user_id, deleted, created_at, updated_at, searchable, mutual_community_sharing}`. |
|
|
1767
|
-
|
|
1768
|
-
#### v2
|
|
1769
|
-
|
|
1770
|
-
| Method | Path | Status | Notes |
|
|
1771
|
-
|---|---|---|---|
|
|
1772
|
-
| GET | `/users-service/v2/bootstrap` | 200/401 | 1,209 B `{account, user, staff, teams, profile, membership, bio_data}` — **THE primary post-login bootstrap call.** Hit on every app start. Returns everything needed to render the initial state. |
|
|
1773
|
-
| GET | `/users-service/v2/bootstrap/account` | 200 | 319 B `{id, username, email, type, can_upload_data, deidentified, concealed, disabled, tos_accepted, created_at}` — just the account sub-block. |
|
|
1774
|
-
| OPTIONS | `/users-service/v2/bootstrap/account` | 200 | CORS preflight. |
|
|
1775
|
-
| GET | `/users-service/v2/bootstrap/membership` | 200 | 38 B `{status, in_effect}` — just the membership sub-block. |
|
|
1776
|
-
| OPTIONS | `/users-service/v2/bootstrap/membership` | 200 | CORS. |
|
|
1777
|
-
| GET | `/users-service/v2/bootstrap/user` | 200 | 345 B `{id, first_name, last_name, country, created_at, updated_at, avatar_url, city, admin_division}` — just the user sub-block. |
|
|
1778
|
-
| OPTIONS | `/users-service/v2/bootstrap/user` | 200 | CORS. |
|
|
1779
|
-
|
|
1780
|
-
The MCP wraps `whoop_profile` (composite over bootstrap + hidden-metrics + stealth), `whoop_hidden_metric` (write toggle), and `whoop_profile_update` (full PUT).
|
|
1781
|
-
|
|
1782
|
-
### vow-service
|
|
1783
|
-
|
|
1784
|
-
The "Vow" system rewrites structured data into narrative coach text. It's how Whoop's coach takes "you slept 7h 24m / your need was 8h 23m" and turns it into "You came up short on sleep last night. Try to get to bed an hour earlier tonight to make up for it."
|
|
1785
|
-
|
|
1786
|
-
| Method | Path | Status | Notes |
|
|
1787
|
-
|---|---|---|---|
|
|
1788
|
-
| POST | `/vow-service/v1/coaching/vows/sleepcoach?format=TWELVE_HOUR` | 200 | Body is the **entire `/coaching-service/v2/sleepneed` payload** echoed back as input. Response 132-136 B: `{header, key, text}` — a short narrative string. `format=TWELVE_HOUR` is a query param affecting time formatting in the response. |
|
|
1789
|
-
|
|
1790
|
-
Two distinct call shapes observed — one with `need_breakdown` for a heavy strain day (8h debt + 1h strain need), one for a normal day (8h baseline, 1m strain). The text comes back different.
|
|
1791
|
-
|
|
1792
|
-
Not wrapped — the MCP returns the structured sleep need data via `whoop_sleep_need` and lets Claude write its own narrative.
|
|
1793
|
-
|
|
1794
|
-
### weightlifting-service
|
|
1795
|
-
|
|
1796
|
-
The Strength Trainer. Exercise catalog, workout templates, workout logs, PRs.
|
|
1797
|
-
|
|
1798
|
-
#### v1 — Exercise lookup
|
|
1799
|
-
|
|
1800
|
-
| Method | Path | Status | Notes |
|
|
1801
|
-
|---|---|---|---|
|
|
1802
|
-
| GET | `/weightlifting-service/v1/exercise/{exercise_id}` | 200 | 1,013 B `{training_types, instructions, muscle_groups, translated_muscle_groups, created_at, updated_at, custom_exercise_info, volume_input_value, volume_input_units, exercise_id}` — single exercise lookup. Exercise IDs are upper-snake-case with special characters preserved: `BENCHPRESS_BARBELL, ARNOLDPRESS_DUMBBELL, ASSISTED_PULL_UPS_(BAND), BAR-FACING_BURPEES_(LATERAL), BB_SOTS_PRESS`. |
|
|
1803
|
-
|
|
1804
|
-
#### v2 — Catalog + writes
|
|
1805
|
-
|
|
1806
|
-
| Method | Path | Status | Notes |
|
|
1807
|
-
|---|---|---|---|
|
|
1808
|
-
| POST | `/weightlifting-service/v2/custom-exercise` | 200 | Create a custom exercise. Body shape detailed below. |
|
|
1809
|
-
| GET | `/weightlifting-service/v2/exercise` | 200 | **385 KB** — the entire exercise catalog. `{exercises, filter_options}`. 383 entries total (after dedup; 372 official + 11 custom-test exercises that leaked into the global catalog). The MCP's bundled `src/data/exercises.ts` was built from this, filtered to `custom_exercise: false`. |
|
|
1810
|
-
| POST | `/weightlifting-service/v2/weightlifting-workout/activity` | 200 | Log a finished workout. Body shape detailed below. |
|
|
1811
|
-
| GET | `/weightlifting-service/v2/workout-template/{id}` | 200 | 10,693 B `{parent_template_key, workout_template_key, name, workout_groups, is_draft, source}` — single template. |
|
|
1812
|
-
|
|
1813
|
-
#### v3 — BFF (PRs, library, exercise detail screens)
|
|
1814
|
-
|
|
1815
|
-
| Method | Path | Status | Notes |
|
|
1816
|
-
|---|---|---|---|
|
|
1817
|
-
| GET | `/weightlifting-service/v3/exercise/{exercise_id}` | 200 | 3,506 B `{header, content, empty_state_card, metadata}` — exercise detail page. |
|
|
1818
|
-
| GET | `/weightlifting-service/v3/exercise/{exercise_id}/exercise_history` | 200 | 9,812 B `{id, items, show_more, analytics_action}` — recent sessions for this exercise. |
|
|
1819
|
-
| GET | `/weightlifting-service/v3/exercise/{exercise_id}/personal_records` | 200 | 6,858 B `{id, items, show_more, analytics_action}` — PR sessions for this exercise. |
|
|
1820
|
-
| GET | `/weightlifting-service/v3/prs` | 200 | 10,463 B `{tiles, show_more, next_exercise_offset, next_end_date, next_start_date}` — all PRs across all exercises. Each tile has the exercise metadata + the PR value. |
|
|
1821
|
-
| GET | `/weightlifting-service/v3/prs?startDate=&endDate=&offset=` | 200 | 10,633 B same shape with paging. |
|
|
1822
|
-
| GET | `/weightlifting-service/v3/workout-library` | 200 | 16,790 B `{workout_library_title, whoop_workouts_title, my_workouts_title, my_workouts_ctatext, whoop_workouts_list, my_workouts_list, my_workouts_empty_state, my_progress, my_workouts_header_items, metadata}` — template library. `my_workouts_list` is user-saved templates, `whoop_workouts_list` is Whoop-provided ones. |
|
|
1823
|
-
| POST | `/weightlifting-service/v3/workout-template` | 200 | Create or save-as template. Two body shapes: (a) `{name, workout_groups}` for new, (b) `{name, workout_groups, workout_template_key}` for save-as-existing. Response 7,502 B or up to ~425 KB depending on size. |
|
|
1824
|
-
|
|
1825
|
-
#### Custom exercise create body
|
|
1826
|
-
|
|
1827
|
-
```json
|
|
1828
|
-
{
|
|
1829
|
-
"laterality": "BILATERAL",
|
|
1830
|
-
"exercise_type": "POWER",
|
|
1831
|
-
"trackable": false,
|
|
1832
|
-
"volume_input_format": "TIME",
|
|
1833
|
-
"exercise_id": "A7B422DC-DDAA-4D5D-AB9B-3ED7E1E7813F",
|
|
1834
|
-
"movement_pattern": "OTHER",
|
|
1835
|
-
"training_types": ["POWER"],
|
|
1836
|
-
"equipment": "MACHINE",
|
|
1837
|
-
"updated_at": "",
|
|
1838
|
-
"custom_exercise_info": {
|
|
1839
|
-
"linked_exercise": {
|
|
1840
|
-
"image_url": "https://dh6o7n168ts9.cloudfront.net/exercises/ASSAULT_AIRBIKE.jpg",
|
|
1841
|
-
"name": "Assault Bike",
|
|
1842
|
-
"exercise_id": "ASSAULT_AIRBIKE"
|
|
1843
|
-
}
|
|
1844
|
-
},
|
|
1845
|
-
"push_core_name": "ASSAULT_AIRBIKE",
|
|
1846
|
-
"instructions": ["aonnnc"],
|
|
1847
|
-
"name": "sonnn",
|
|
1848
|
-
"muscle_groups": ["SHOULDERS"],
|
|
1849
|
-
"created_at": ""
|
|
1850
|
-
}
|
|
1851
|
-
```
|
|
1852
|
-
|
|
1853
|
-
**Note:** `exercise_id` is client-generated as a UUID. The MCP uses `randomUUID().toUpperCase()`.
|
|
1854
|
-
|
|
1855
|
-
**Enums:**
|
|
1856
|
-
- `laterality`: `BILATERAL, UNILATERAL_LEFT, UNILATERAL_RIGHT, ALTERNATING`
|
|
1857
|
-
- `exercise_type`: `STRENGTH, POWER`
|
|
1858
|
-
- `volume_input_format`: `REPS, TIME, WEIGHT`
|
|
1859
|
-
- `movement_pattern`: `SQUAT, HINGE, HORIZONTAL_PRESS, VERTICAL_PRESS, HORIZONTAL_PULL, VERTICAL_PULL, LUNGE, OLYMPIC_LIFT, JUMP, OTHER`
|
|
1860
|
-
- `training_types`: array of `STRENGTH, POWER, ENDURANCE, HYPERTROPHY` (typically just `[exercise_type]`)
|
|
1861
|
-
- `equipment`: `MACHINE, DUMBBELL, BARBELL, BODY, OTHER, KETTLEBELL`
|
|
1862
|
-
- `muscle_groups`: array of `CHEST, BACK, LEGS, ARMS, SHOULDERS, CORE, GLUTES, HAMSTRINGS, QUADS, CALVES, FULL_BODY`
|
|
1863
|
-
|
|
1864
|
-
#### Workout log body (the big one)
|
|
1865
|
-
|
|
1866
|
-
The captured body is 457 KB. Abridged structure:
|
|
1867
|
-
|
|
1868
|
-
```json
|
|
1869
|
-
{
|
|
1870
|
-
"scaled_msk_strain_score": 0,
|
|
1871
|
-
"msk_total_volume_kg": 0,
|
|
1872
|
-
"msk_intensity_percent": 0,
|
|
1873
|
-
"during": "['2026-05-25T02:00:22.478Z','2026-05-25T02:02:50.050Z')",
|
|
1874
|
-
"raw_msk_strain_score": 0,
|
|
1875
|
-
"workout_groups": [
|
|
1876
|
-
{
|
|
1877
|
-
"workout_exercises": [
|
|
1878
|
-
{
|
|
1879
|
-
"sets": [
|
|
1880
|
-
{
|
|
1881
|
-
"during": "['2026-05-25T02:00:23.240Z','2026-05-25T02:00:23.380Z')",
|
|
1882
|
-
"msk_total_volume_kg": 0,
|
|
1883
|
-
"strap_location_laterality": "LEFT",
|
|
1884
|
-
"weight": 15,
|
|
1885
|
-
"strap_location": "1",
|
|
1886
|
-
"weightlifting_workout_set_id": "<UUID>",
|
|
1887
|
-
"number_of_reps": 2,
|
|
1888
|
-
"time_in_seconds": 22
|
|
1889
|
-
}
|
|
1890
|
-
],
|
|
1891
|
-
"exercise_details": { /* full exercise object including image_url, video_url, instructions, created_at, updated_at */ }
|
|
1892
|
-
}
|
|
1893
|
-
]
|
|
1894
|
-
}
|
|
1895
|
-
]
|
|
1896
|
-
}
|
|
1897
|
-
```
|
|
1898
|
-
|
|
1899
|
-
**Critical details:**
|
|
1900
|
-
|
|
1901
|
-
- `during` is a **PostgreSQL range literal** with half-open interval syntax: `'[start_iso,end_iso)'`. Single quotes around the ISO timestamps inside square/round brackets.
|
|
1902
|
-
- `workout_groups[]` is an array of supersets. Each contains an `workout_exercises[]` array of single exercises. Each contains a `sets[]` array.
|
|
1903
|
-
- `workout_groups[].workout_exercises[].exercise_details` is the **full denormalized exercise** from the catalog. The MCP's `build_lift_body.ts` populates this from `EXERCISES_BY_ID`. **`created_at` and `updated_at` must be non-empty ISO timestamps** or the endpoint returns 422 silently (no error body).
|
|
1904
|
-
- Each set has a client-generated `weightlifting_workout_set_id` UUID.
|
|
1905
|
-
- `strap_location` is `"1"` for wrist, `"2"` for bicep, etc. (encoded as string).
|
|
1906
|
-
- `strap_location_laterality` is `"LEFT" | "RIGHT" | "BOTH"`.
|
|
1907
|
-
- `time_in_seconds` is only present for exercises with `volume_input_format: "TIME"` (like Assault Bike).
|
|
1908
|
-
- Response 822 B: `{deleted, id, cycle_id, user_id, created_at, updated_at, version, during, timezone, timezone_offset, source, score_state, score_type, type, translated_type, source_id, activity_v1_id, weightlifting_workout_id, workout_template_id, name, pushcore_version, total_effective_volume_kg, raw_msk_strain_score, msk_intensity_percent, scaled_msk_strain_score, timezone_offset_from_model}`.
|
|
1909
|
-
|
|
1910
|
-
Wrapped as `whoop_lift_log`. Set timestamps default to a 100ms placeholder range per set; Whoop accepts this.
|
|
1911
|
-
|
|
1912
|
-
The MCP exposes `whoop_lift_prs, whoop_lift_exercise, whoop_lift_progression, whoop_lift_history, whoop_lift_library, whoop_lift_catalog, whoop_lift_log, whoop_lift_template_save, whoop_lift_custom_exercise`.
|
|
1913
|
-
|
|
1914
|
-
### widget-service
|
|
1915
|
-
|
|
1916
|
-
| Method | Path | Status | Notes |
|
|
1917
|
-
|---|---|---|---|
|
|
1918
|
-
| GET | `/widget-service/v1/statistics/recovery` | 200/401 | 110 B `{icon, text, percentage_around, target_percentage_around, is_calibrating}` — small iOS widget recovery stat. |
|
|
1919
|
-
|
|
1920
|
-
Not wrapped — too low value.
|
|
1921
|
-
|
|
1922
|
-
### womens-health-service
|
|
1923
|
-
|
|
1924
|
-
MCI (Menstrual Cycle Insights), period tracking, hormonal coaching.
|
|
1925
|
-
|
|
1926
|
-
| Method | Path | Status | Notes |
|
|
1927
|
-
|---|---|---|---|
|
|
1928
|
-
| GET | `/womens-health-service/v1/hormonal-insights/onboarding` | 200 | 9,486 B `{initial_screen, screens}` — MCI onboarding flow content. |
|
|
1929
|
-
| GET | `/womens-health-service/v1/hormonal-insights/settings` | 200 | 3,919 B `{navigation_bar_title, tiles, hormonal_insights_mode_drawer, contraception_type_drawer, pregnancy_due_date_drawer, switching_mode_dialog, switching_contraception_type_dialog, previous_pregnancies, disabling_dialog, goals_drawer}` — settings screen UI. |
|
|
1930
|
-
| GET | `/womens-health-service/v1/menstrual-cycle-insights/calendar?date={date}` | 200 | 7,132 B `{date_picker, calendar, fab_menu}` — period calendar. |
|
|
1931
|
-
| GET | `/womens-health-service/v1/menstrual-cycle-insights/cycles/edit?localDate={date}&source=CYCLE_CALENDAR` | 200 | 7,934 B `{navigation_title, title_display, description_display, button_title, month_picker, calendar, hiding_cycle_modal, editing_hidden_cycle_modal, editing_cycle_modal}` — cycle edit screen. |
|
|
1932
|
-
| PUT | `/womens-health-service/v1/menstrual-cycle-insights/log` | 204 | Body: `{period_logs: [{period: {answered_yes, magnitude_input_value}, date: [Y,M,D], ovulation: {answered_yes, magnitude_input_value}}]}`. **Date encoded as a 3-element `[Y,M,D]` integer array.** Magnitudes are `null` for "no flow" and integer 1-5 for flow intensity. |
|
|
1933
|
-
| GET | `/womens-health-service/v1/menstrual-cycle-insights?date={date}` | 200/400 | 37,346 B `{metadata, navigation_title, style, tiles, log_period_bottom_sheet, editing_hidden_cycle_modal}` — main MCI screen. **Returns 400 "User has no contraception status" if the user hasn't set up MCI via the survey first.** |
|
|
1934
|
-
| GET | `/womens-health-service/v1/symptom-insights/log/symptoms?requestDate={date}` | 200 | 34,789 B `{navigation_bar, title, category_selector, style, primary_button}` — the symptom-logging UI. |
|
|
1935
|
-
| POST | `/womens-health-service/v1/symptom-insights/log/symptoms?requestDate={date}` | 204 | Body: `{cervical_mucus, menstruation, tracker_inputs}`. Example: `{"menstruation":"light_flow", "cervical_mucus":"vaginal-discharge---egg-white", "tracker_inputs":[{"is_suggested":false,"behavior_tracker_id":217}, ...]}`. |
|
|
1936
|
-
|
|
1937
|
-
**Enums:**
|
|
1938
|
-
- `menstruation`: `none, spotting, light_flow, medium_flow, heavy_flow`
|
|
1939
|
-
- `cervical_mucus`: `vaginal-discharge---egg-white, vaginal-discharge---creamy, vaginal-discharge---sticky, vaginal-discharge---watery, vaginal-discharge---grey, none` (the triple-hyphen is the actual key format)
|
|
1940
|
-
|
|
1941
|
-
Wrapped as `whoop_cycle, whoop_cycle_log, whoop_symptom_log`.
|
|
1942
|
-
|
|
1943
|
-
---
|
|
1944
|
-
|
|
1945
|
-
## Enum reference
|
|
1946
|
-
|
|
1947
|
-
Every enum value observed across the captured traffic. When an endpoint says "must be one of [X, Y, Z]", these are the strings.
|
|
1948
|
-
|
|
1949
|
-
### Auth + cognito
|
|
1950
|
-
|
|
1951
|
-
`AuthFlow`: `USER_PASSWORD_AUTH, REFRESH_TOKEN_AUTH, USER_SRP_AUTH, ADMIN_NO_SRP_AUTH`
|
|
1952
|
-
`ChallengeName`: `SMS_MFA, SOFTWARE_TOKEN_MFA, MFA_SETUP, NEW_PASSWORD_REQUIRED`
|
|
1953
|
-
`TokenType`: `Bearer` (only)
|
|
1954
|
-
|
|
1955
|
-
### Recovery + sleep
|
|
1956
|
-
|
|
1957
|
-
`recovery_state` (derived from `progress_fill_style`):
|
|
1958
|
-
- `RECOVERY_HIGH` → GREEN (>=67% recovery score)
|
|
1959
|
-
- `RECOVERY_MEDIUM` → YELLOW (34-66%)
|
|
1960
|
-
- `RECOVERY_LOW` → RED (<34%)
|
|
1961
|
-
|
|
1962
|
-
`sleep_stage` ID values (in BAR_GRAPH_CARD.heart_rate_zones for sleep):
|
|
1963
|
-
- `AWAKE` (label "AWAKE")
|
|
1964
|
-
- `LIGHT_SLEEP` (label "LIGHT")
|
|
1965
|
-
- `SWS_SLEEP` (label "SWS (DEEP)")
|
|
1966
|
-
- `REM_SLEEP` (label "REM")
|
|
1967
|
-
|
|
1968
|
-
`HR_zone` IDs (in cardio-details bar_graph_container.heart_rate_zones):
|
|
1969
|
-
- `RESTORATIVE` → zone 0 (label "ZONE 0")
|
|
1970
|
-
- `VERY_LIGHT` → zone 1 (label "ZONE 1")
|
|
1971
|
-
- `LIGHT` → zone 2 (label "ZONE 2")
|
|
1972
|
-
- `MODERATE` → zone 3 (label "ZONE 3")
|
|
1973
|
-
- `HARD` → zone 4 (label "ZONE 4")
|
|
1974
|
-
- `MAX` → zone 5 (label "ZONE 5")
|
|
1975
|
-
|
|
1976
|
-
### Trends
|
|
1977
|
-
|
|
1978
|
-
`metric` enum (25 values): `HRV, RHR, RECOVERY, DAY_STRAIN, CALORIES, STEPS, AVERAGE_HR, HOURS_V_NEED, HOURS_V_NEEDED_PERCENT, TIME_IN_BED, SLEEP_PERFORMANCE, SLEEP_EFFICIENCY, SLEEP_CONSISTENCY, SLEEP_DEBT_POST, RESTORATIVE_SLEEP, HR_ZONES_1_3, HR_ZONES_4_5, RESPIRATORY_RATE, STRENGTH_ACTIVITY_TIME, STRESS, STRESS_DURING_SLEEP, STRESS_DURING_NON_STRAIN, VO2_MAX, BODY_COMPOSITION, WEIGHT`
|
|
1979
|
-
|
|
1980
|
-
`trend_direction`: `UP, DOWN, EQUAL`
|
|
1981
|
-
`trend_style`: `POSITIVE, NEGATIVE, NEUTRAL`
|
|
1
|
+
# WHOOP's app API
|
|
2
|
+
|
|
3
|
+
What totem knows about the API the WHOOP app uses, as of November 2026. The tables below are written from totem's own endpoint catalog (`src/data/endpoint_catalog.ts`) by `npx tsx scripts/whoop-md.ts`, so they match what the code was built against.
|
|
4
|
+
|
|
5
|
+
This is an unofficial description of a private API. WHOOP can change it at any time, and does.
|
|
6
|
+
|
|
7
|
+
## How it was mapped
|
|
8
|
+
|
|
9
|
+
- **Captures.** The WHOOP iOS app (5.78.0) was run through mitmproxy on two accounts, and every request was recorded.
|
|
10
|
+
- **A live probe.** 267 of the 290 endpoints below were then called on a test account through a proxy that paced requests to a person's speed and kept a record of every call. Writes were made, read back, and undone. The rest were left alone on purpose, or (like the social endpoints, which the probe skipped) are known from the captures alone; their verdict says which.
|
|
11
|
+
- **The heart-rate series and the bulk day history** were checked live the same day, including that another person's user id is refused.
|
|
12
|
+
- **Android routes.** [@Acetone1](https://github.com/Acetone1) shared the routes in WHOOP's Android app ([issue #5](https://github.com/thebriangao/totem/issues/5)). The ones that fit totem were called on the test account on 2026-11-22 and are marked "Android route" below.
|
|
13
|
+
|
|
14
|
+
No real person's data appears in totem's tests or this page.
|
|
15
|
+
|
|
16
|
+
## Basics
|
|
17
|
+
|
|
18
|
+
- **Host:** `https://api.prod.whoop.com`. Every service sits under a path prefix (`/home-service/`, `/core-details-bff/`, `/weightlifting-service/` and so on).
|
|
19
|
+
- **Auth:** a Cognito access token as a bearer token (about 24 hours). The token from a web login (app.whoop.com) works on the app API.
|
|
20
|
+
- **Refresh:** `POST /auth-service/v3/whoop/` with the Cognito `InitiateAuth` call (`REFRESH_TOKEN_AUTH`, the web client's id). **WHOOP returns a new refresh token every time, and the old one stops working.** Save the new one before using the new access token, and never let two processes refresh the same login.
|
|
21
|
+
- **Logging in** with a password now needs a device fingerprint from WHOOP's fraud check, which is why totem logs in through a real browser window instead.
|
|
22
|
+
- **Headers:** the app's identity headers (platform, app version and build, bundle name), a stable per-install `x-whoop-installation-identifier`, `x-whoop-time-zone` (an IANA name) and `x-whoop-clock-format`. totem sends the same set the app does, minus telemetry.
|
|
23
|
+
- **Errors worth knowing:** `401` means refresh and try once more; `412` ("cycle is concurrently being updated") on a write means wait and retry (totem waits 2 s, then 10 s); a `409` on an activity write means the time window overlaps another activity.
|
|
24
|
+
- **Days are cycles.** A WHOOP day runs from falling asleep to falling asleep. Day endpoints take a calendar date and answer with the cycle that date belongs to, in the user's time zone.
|
|
25
|
+
- **Units:** HRV comes in seconds from some endpoints and milliseconds from others; sleep durations in the bulk history are milliseconds. totem converts everything to ms, minutes, hours and °C/°F as its tools document.
|
|
26
|
+
|
|
27
|
+
## Verdicts
|
|
28
|
+
|
|
29
|
+
| Verdict | Meaning |
|
|
30
|
+
|---|---|
|
|
31
|
+
| `verified` | Worked live; writes were read back. |
|
|
32
|
+
| `verified-quirky` | Works, with a catch described in the notes. |
|
|
33
|
+
| `decided` | A design decision rather than a probe result (see the notes). |
|
|
34
|
+
| `exists-but-unclear` | Answers, but no request shape that does something useful was found. |
|
|
35
|
+
| `not-exercised` | Seen in the app but deliberately not called. |
|
|
36
|
+
| `not-probed` | Known but not called in this run. |
|
|
37
|
+
| `blocked-by-policy` | Left alone on purpose (it would change something that can't be undone). |
|
|
38
|
+
| `service-only-401` | Answers 401 to an app token: for WHOOP's own services. |
|
|
39
|
+
| `server-error-500` | Answers 500 whatever is sent. |
|
|
40
|
+
| `not-found` | Answers 404: gone, or never existed at that path. |
|
|
41
|
+
|
|
42
|
+
## Endpoints by area
|
|
43
|
+
|
|
44
|
+
`Used by` names the totem tools (or `whoop://catalog/...` resources) that call the endpoint. Paths are templated: `{user_id}`, `{date}` and the like stand for real values.
|
|
45
|
+
|
|
46
|
+
### Home, deep dives and calendar
|
|
47
|
+
|
|
48
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
49
|
+
|---|---|---|---|---|
|
|
50
|
+
| GET | `/activities-service/v1/user-state` | verified | whoop_now, whoop_day | {latestMetricsProcessed, source, startAt, state idle\|workout, activity, trackedSleep} |
|
|
51
|
+
| GET | `/coaching-service/v1/health/bff/monitor` | verified | whoop_recovery | KEY_METRIC_TILE ids RESPIRATORY_RATE\|BLOOD_OXYGEN\|RHR\|HRV\|SKIN_TEMPERATURE_FAHRENHEIT; analytics{ranges}; today only; skin temp is °F deviation |
|
|
52
|
+
| GET | `/core-details-bff/v1/start-activity/strain` | verified | – | cycle strain + optimal strain mapping for Start Activity screen |
|
|
53
|
+
| GET | `/entitlement-service/v1/entitlements` | verified | whoop_profile | entitlements{feature:{entitled, reasons[]}}, context{current_membership_tier}; explains 'feature unavailable' |
|
|
54
|
+
| GET | `/health-service/v2/stress-bff/{date}` | verified | whoop_stress, whoop_now | ~145 KB; stress_state, gauge, graphs, sessions, trend_list |
|
|
55
|
+
| GET | `/health-tab-bff/v1/health-tab` | verified | – | healthspan hero (locked), monitor tile, stress card, menstrual tile; no live-HR tile (live HR is BLE) → whoop_live_hr dropped |
|
|
56
|
+
| GET | `/home-service/v1/calendar/overview` | verified | whoop_calendar, whoop_workouts, whoop_lift_sessions | byte-identical to recovery; use has_data to prune per-day walks. days_of_month[{date_value_display, has_data, cycle_id, day_state}]; no full date; future days can show has_data |
|
|
57
|
+
| GET | `/home-service/v1/calendar/recovery` | verified | whoop_calendar | states LOW/MEDIUM/HIGH_RECOVERY\|NO_DATA. days_of_month[{date_value_display, has_data, cycle_id, day_state}]; no full date; future days can show has_data |
|
|
58
|
+
| GET | `/home-service/v1/calendar/sleep` | verified | whoop_calendar | HIGH_SLEEP\|NO_DATA observed; LOW_SLEEP inferred. days_of_month[{date_value_display, has_data, cycle_id, day_state}]; no full date; future days can show has_data |
|
|
59
|
+
| GET | `/home-service/v1/calendar/strain` | verified | whoop_calendar | states LOW_STRAIN\|HIGH_STRAIN\|NO_DATA. days_of_month[{date_value_display, has_data, cycle_id, day_state}]; no full date; future days can show has_data |
|
|
60
|
+
| GET | `/home-service/v1/deep-dive/recovery` | verified | whoop_recovery, whoop_day | SCORE_GAUGE, STEPPER (calibration filled/total), CONTRIBUTORS_TILE_{HRV,RHR,RESPIRATORY_RATE,SLEEP_PERFORMANCE} |
|
|
61
|
+
| GET | `/home-service/v1/deep-dive/recovery/trends` | verified | – | mini weekly GRAPHING_CARDs |
|
|
62
|
+
| GET | `/home-service/v1/deep-dive/sleep` | verified | whoop_sleep | SLEEP_SCORE_GAUGE, contributors; no activity ids |
|
|
63
|
+
| GET | `/home-service/v1/deep-dive/sleep/last-night` | verified | whoop_sleep, whoop_activity_edit | date = cycle day the main sleep opens; header_section.destination ACTIVITY_EDIT {activity_id,start_time,end_time}; null if no main sleep; naps never here |
|
|
64
|
+
| GET | `/home-service/v1/deep-dive/sleep/trends` | verified | – | GRAPHING_CARD_* tiles |
|
|
65
|
+
| GET | `/home-service/v1/deep-dive/strain` | verified | whoop_strain, whoop_day | ACTIVITY items CARDIO only (RECOVERY omitted), includes pending; contributors zones/strength/steps |
|
|
66
|
+
| GET | `/home-service/v1/deep-dive/strain/trends` | verified | – | mini weekly GRAPHING_CARDs |
|
|
67
|
+
| GET | `/home-service/v1/home` | verified | whoop_day, whoop_sleep, whoop_workouts, whoop_lift_sessions, whoop_coach_history | metadata.cycle_metadata (cycle_id unstable), gauges, KEY_STATISTIC by trend_key, ACTIVITY items {activity_v2_id, type CARDIO\|RECOVERY\|SLEEP, status, during}; sport_id always -1. Card lists the cycle's activities. |
|
|
68
|
+
| GET | `/home-service/v1/tilt-view` | verified | – | full-day HR line plot; activity ids only as OVERLAY_PLOT labels |
|
|
69
|
+
| GET | `/home-service/v1/widget/overview` | verified | whoop_now | ~446 B score strings; cheapest scores read |
|
|
70
|
+
|
|
71
|
+
Don't use:
|
|
72
|
+
|
|
73
|
+
| Method | Path | Verdict | Notes |
|
|
74
|
+
|---|---|---|---|
|
|
75
|
+
| GET | `/health-service/v2/stress-bff/{date}/calendar` | server-error-500 | 500 on test account (200 in May capture); account-specific or global unknown |
|
|
76
|
+
| GET | `/home-service/v2/home` | not-found | 404; no v2 home |
|
|
77
|
+
| GET | `/widget-service/v1/statistics/{statistic}` | server-error-500 | Android route (@Acetone1). 500 for RECOVERY and for composite?statistics=… on the test account. |
|
|
78
|
+
|
|
79
|
+
### Activities and cycles
|
|
80
|
+
|
|
81
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
82
|
+
|---|---|---|---|---|
|
|
83
|
+
| GET | `/activities-service/v1/sports` | verified | whoop://catalog/sports | 205 current sports {id=sport_id, name, activity_type_internal_name, is_current}; new 336–346 |
|
|
84
|
+
| GET | `/activities-service/v1/sports/history` | verified | whoop://catalog/sports | 214 incl. non-current -1,50,54,58,67,68,69,72,116 (rejected by create) |
|
|
85
|
+
| POST | `/activities-service/v2/activities` | verified | – | Any type; 409 plain text 'Overlapping activity found for user'; not needed |
|
|
86
|
+
| GET | `/activities-service/v2/activities/{id}` | verified | whoop_activity_edit, whoop_activity_log | Raw record; only place with live score_state (incomplete/complete); version, during, type |
|
|
87
|
+
| GET | `/activities-service/v2/activity-types` | verified | whoop://catalog/sports, whoop_activity_log, whoop_activity_edit | 208 types {internal_name, display_name, category, score_type, has_gps, msk_linkable}; no sport_id; 'cheeerleading ' typo (don't trim) |
|
|
88
|
+
| POST | `/core-details-bff/v0/create-activity` | verified | – | Legacy live Start/Stop (today's totem body). Non-current sport_id → 400; unknown sport_id → HTML 500. Superseded by v2 create. |
|
|
89
|
+
| GET | `/core-details-bff/v1/activity-score-type` | verified-quirky | – | RECOVERY → {score_type:RECOVERY}; CARDIO/SLEEP → 400; deleted/nonexistent → {score_type:CARDIO}. Don't use. |
|
|
90
|
+
| DELETE | `/core-details-bff/v1/cardio-details` | verified | whoop_activity_delete | 204 for every CARDIO/RECOVERY type and create path; re-delete → 404 text; not tried on SLEEP |
|
|
91
|
+
| GET | `/core-details-bff/v1/cardio-details` | verified | whoop_workouts, whoop_lift_sessions, whoop_activity_edit, whoop_activity_delete | 200 for CARDIO/RECOVERY in any state ('---' while unscored); 400 'Cannot view activity details for a pending activity' for pending SLEEP; details_edit_components, link_workout_option_enabled, weightlifting_cardio_details |
|
|
92
|
+
| DELETE | `/core-details-bff/v1/recovery-details` | verified | – | 204 on RECOVERY and CARDIO; redundant |
|
|
93
|
+
| PUT | `/core-details-bff/v1/recovery-details` | verified | – | Same effect as v2 cardio-details PUT, flat record; works on RECOVERY and CARDIO; redundant |
|
|
94
|
+
| GET | `/core-details-bff/v2/activity-type/user-created` | verified | – | recently used types; optional |
|
|
95
|
+
| PUT | `/core-details-bff/v2/cardio-details` | verified | whoop_activity_edit | Edit times/type for any type incl. CARDIO↔RECOVERY and nap→sleep; sleep→nap silently refused. 400 bounds; 404; 409 empty list; 412 retry; unknown type → 500 empty. |
|
|
96
|
+
| POST | `/core-details-bff/v2/create-activity` | verified | whoop_activity_log | Any v2 type incl. RECOVERY and nap/sleep. 400 unknown name / bad window / no-ms timestamp; 409 structured overlap list; 422 missing field (empty). Future times accepted (→ undeletable cycle). Main sleep re-cycles the day |
|
|
97
|
+
| GET | `/core-details-bff/v2/recovery-details` | verified | whoop_workouts | RECOVERY detail (MINUTES, MIN/AVG HR); CARDIO id → 400 'not a recovery activity' |
|
|
98
|
+
| GET | `/strap-location-service/v1/garment` | verified | whoop://catalog/garments | garment ids 1,2,3,6,7,9,10,11,12–15 (12–15 GEN_4 only); garment_id is optional and unvalidated on writes |
|
|
99
|
+
| GET | `/core-details-bff/v0/cycles/details` | verified | whoop_day | bulk history {records:[{cycle, recovery, sleeps[], workouts[], v2_activities[]}]}, newest first, every cycle overlapping the window; window ≤200 days (else 400); recovery and sleeps not seen live (account never slept): hrv_rmssd is seconds, sleep durations ms |
|
|
100
|
+
| GET | `/home-service/v1/home/activities/multi-modifications` | verified | – | Android route (@Acetone1). ?date=. The Edit Activities drawer: ACTIVITY_TILE_SELECTION items (activity_v2_id, during, selectable_state), footer Delete and Merge, limit callouts. |
|
|
101
|
+
| PATCH | `/core-details-bff/v1/activities/merge` | verified | whoop_activity_edit | Android route (@Acetone1). ?startTime&endTime, body [ids]. 200: the earliest activity (id, type) now spans the bounds; the others are deleted, in any id order. 422 while an activity inside the bounds is pending. |
|
|
102
|
+
|
|
103
|
+
Don't use:
|
|
104
|
+
|
|
105
|
+
| Method | Path | Verdict | Notes |
|
|
106
|
+
|---|---|---|---|
|
|
107
|
+
| GET | `/activities-service/v1/activity-types` | not-found | 404 |
|
|
108
|
+
| GET | `/activities-service/v1/cycles/aggregate/range/{user_id}` | not-found | legacy list gone |
|
|
109
|
+
| GET | `/activities-service/v2/activities` | not-found | ?start&end → 404; no collection GET |
|
|
110
|
+
| DELETE | `/activities-service/v2/activities/{id}` | service-only-401 | 401 'Authorization was not valid' even after refresh (2ebbff38); activity untouched |
|
|
111
|
+
| GET | `/core-details-bff/v1/recovery-details` | not-found | 405 |
|
|
112
|
+
| GET | `/core-details-bff/v2/cardio-details` | not-found | 405 |
|
|
113
|
+
| DELETE | `/core-details-bff/v1/activities/merge` | not-found | Android route (@Acetone1). ?id=. 405 Method Not Allowed, so a merge can't be undone. |
|
|
114
|
+
|
|
115
|
+
### Sleep
|
|
116
|
+
|
|
117
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
118
|
+
|---|---|---|---|---|
|
|
119
|
+
| GET | `/coaching-service/v1/sleepneed/onboarding` | verified | – | onboarding states TO_DO\|COMPLETE |
|
|
120
|
+
| DELETE | `/core-details-bff/v2/sleep-details/{id}` | verified | whoop_activity_delete | 204; cycle structure not restored |
|
|
121
|
+
| GET | `/core-details-bff/v2/sleep-details/{id}` | verified | whoop_sleep, whoop_activity_edit, whoop_activity_log | naps + main sleeps by id: labels, edit components (nap_to_sleep_available), sleep_metric_breakdowns (stages, efficiency, latency, RR, wake events), stage bars/hypnogram, HR graph; 404 text |
|
|
122
|
+
| PUT | `/core-details-bff/v2/sleep-details/{id}` | verified | whoop_activity_edit | Window edit. resolve_overlaps:true DELETES the overlapped activity. Type is server-derived (1/7 demoted to nap): read back. 409, 412, 422 (one bound). |
|
|
123
|
+
| GET | `/sleep-service/v1/heart-rate/baseline` | verified | whoop_sleep | bare JSON number (bpm) |
|
|
124
|
+
|
|
125
|
+
Don't use:
|
|
126
|
+
|
|
127
|
+
| Method | Path | Verdict | Notes |
|
|
128
|
+
|---|---|---|---|
|
|
129
|
+
| GET | `/coaching-service/v2/sleepneed` | server-error-500 | 500 all run on test account (smart-alarm prefs damage). Capture shape: need_breakdown{baseline,debt,naps,strain,total} ms, recommended_time_in_bed_formatted. Degrade to null. |
|
|
130
|
+
| PUT | `/core-details-bff/v2/sleep-details/{id}/nap-to-sleep` | not-found | 404; use cardio-details PUT with activity_internal_name 'sleep' |
|
|
131
|
+
| POST | `/vow-service/v1/coaching/vows/sleepcoach` | server-error-500 | read-like; body = sleepneed object; 500 on test account; returns bedtime sentence when healthy |
|
|
132
|
+
| GET | `/sleep-service/v1/sleep-events` | not-exercised | hypnogram {during, type LIGHT/REM/SWS/DISTURBANCES} per other open-source clients; not called live (no sleep on the test account); whoop_sleep reads stages from sleep-details instead |
|
|
133
|
+
| PUT | `/core-details-bff/v2/sleep-details/nap-to-sleep/{activity_id}` | not-exercised | Android route (@Acetone1). Not sent: whoop_activity_edit already turns a nap into a main sleep through cardio-details. |
|
|
134
|
+
|
|
135
|
+
### Trends and heart rate
|
|
136
|
+
|
|
137
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
138
|
+
|---|---|---|---|---|
|
|
139
|
+
| GET | `/coaching-service/v1/performance-assessment/{reportType}/data/{ts}` | verified | whoop_recovery | {is_assessment_needed, has_assessment, total_recoveries, required_recoveries, expected/next_assessment_during} |
|
|
140
|
+
| GET | `/progression-service/v3/trends/BODY_COMPOSITION/readings` | verified | – | alias of WEIGHT/readings (POST and DELETE {id} also verified; PUT untried); other graph keys → 400 'Unsupported graph key' |
|
|
141
|
+
| GET | `/progression-service/v3/trends/WEIGHT/readings` | verified | whoop_weight | sections.records[].measurements[MEASUREMENT_BOX{id, weight (display), weight_details_screen{timestamp, weight_kg, body_fat_percent (fraction), lean_body_mass_kg, save_title}}], sections.next_token; query params ignored; |
|
|
142
|
+
| POST | `/progression-service/v3/trends/WEIGHT/readings` | verified | whoop_weight_log | 204 no id (re-list). Same-day POST adds. 0<kg≤275; body_fat fraction (>1 → 422). Latest-timestamp reading sets profile weight. |
|
|
143
|
+
| DELETE | `/progression-service/v3/trends/WEIGHT/readings/{id}` | verified | whoop_weight_log | 204 always (idempotent); does NOT revert profile weight |
|
|
144
|
+
| PUT | `/progression-service/v3/trends/WEIGHT/readings/{id}` | verified | whoop_weight_log | Full replace (omitted optional → null; timestamp required) → 200 stored record; 404 deleted id |
|
|
145
|
+
| GET | `/progression-service/v3/trends/{metric}` | verified | whoop_trend | Always week/month/six_month; no year, no range param. Add HR_ZONES_ALL, RESTORATIVE_SLEEP_PERCENT; TOTAL_VOLUME_LOAD and SAGE 500; VO2_MAX week hidden; derive window dates from endDate. |
|
|
146
|
+
| GET | `/progression-service/v3/{measurement_type}/manual/readings` | verified | – | Android route (@Acetone1). measurement_type vo2max (VO2_MAX, VO2MAX, vo2_max: 404). Records list plus the Add Manual Value sheet: timestamp, vo2_max_value, mL/kg/min, sources MANUAL_LAB_TEST, MANUAL_WEARABLE, MANUAL_OTHER. |
|
|
147
|
+
|
|
148
|
+
Don't use:
|
|
149
|
+
|
|
150
|
+
| Method | Path | Verdict | Notes |
|
|
151
|
+
|---|---|---|---|
|
|
152
|
+
| GET | `/progression-service/v3/trends/WEIGHT/readings/paginated` | exists-but-unclear | page 2+; made-up tokens 400; real token unverified (first page = 100 on main) |
|
|
153
|
+
| GET | `/progression-service/v3/trends/WEIGHT/readings/{id}` | not-found | 405 |
|
|
154
|
+
| GET | `/progression-service/v{2,4}/trends/{metric}` | not-found | 404 |
|
|
155
|
+
| POST | `/vo2max-service/v2/{measurement_type}/manual` | exists-but-unclear | Android route (@Acetone1). vo2max: 422 with an empty body for six shapes built from the sheet's fields (VO2_MAX: 404). Body unknown; nothing was created. |
|
|
1982
156
|
|
|
1983
157
|
### Strength Trainer
|
|
1984
158
|
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
`
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
`
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
`
|
|
2007
|
-
|
|
2008
|
-
|
|
159
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
160
|
+
|---|---|---|---|---|
|
|
161
|
+
| GET | `/progression-service/v3/exercise/{id}` | verified | whoop_lift_exercise | AVG VOLUME LOAD segments |
|
|
162
|
+
| GET | `/weightlifting-service/v1/exercise/{id}` | verified | whoop_lift_exercise, whoop_lift_log, whoop_lift_exercise_set | alive: catalog ids, custom uuids, deleted customs (deleted:true); row usable verbatim as exercise_details |
|
|
163
|
+
| GET | `/weightlifting-service/v1/link-workout` | verified | – | link screen (templates, AI auto-link) |
|
|
164
|
+
| POST | `/weightlifting-service/v2/custom-exercise` | verified | whoop_lift_exercise_set | Create and edit (upsert by exercise_id). linked_exercise makes it trackable. laterality/exercise_type ignored. Bare 422. |
|
|
165
|
+
| DELETE | `/weightlifting-service/v2/custom-exercise/{uuid}` | verified | whoop_lift_exercise_set | 204 idempotent soft delete; v1/exercise still returns deleted:true; v3/prs tile remains |
|
|
166
|
+
| GET | `/weightlifting-service/v2/exercise` | verified | whoop://catalog/exercises, whoop_lift_log | 371 base rows + customs + filter_options |
|
|
167
|
+
| GET | `/weightlifting-service/v2/prebuilt-workout-template/{id}` | verified | whoop_lift_library, whoop_lift_template | WHOOP prebuilt workout detail |
|
|
168
|
+
| POST | `/weightlifting-service/v2/weightlifting-workout/activity` | verified | whoop_lift_log | Bare 422 on any schema error; 409 text on overlap (nothing deleted). weight in profile display unit. Saved window = union(during, set durings). Set without during = not performed. 0-rep weighted set wins a PR. |
|
|
169
|
+
| POST | `/weightlifting-service/v2/weightlifting-workout/link-cardio-workout` | verified | whoop_lift_log | Attach sets to an existing activity. template_id:-1 works (no template). 422 without template_id; 409 already linked; no unlink. Works while link_workout_option_enabled is false. |
|
|
170
|
+
| DELETE | `/weightlifting-service/v2/workout-template/{key}` | verified | whoop_lift_template | 204 idempotent |
|
|
171
|
+
| GET | `/weightlifting-service/v2/workout-template/{key}` | verified | whoop_lift_library, whoop_lift_template | user templates and AI drafts (is_draft); 404 HTML for deleted/prebuilt |
|
|
172
|
+
| GET | `/weightlifting-service/v3/exercise/{id}` | verified | whoop_lift_exercise | UI BFF; don't parse |
|
|
173
|
+
| GET | `/weightlifting-service/v3/exercise/{id}/exercise_history` | verified | whoop_lift_exercise, whoop_lift_sessions | one card per workout; sets without during excluded |
|
|
174
|
+
| GET | `/weightlifting-service/v3/exercise/{id}/personal_records` | verified | whoop_lift_exercise | cards per medal |
|
|
175
|
+
| DELETE | `/weightlifting-service/v3/one-rep-max/manual-entry/{entry_id}` | verified | whoop_lift_exercise_set | 204; estimate reverts; re-delete 404 'No manual one rep max entry' |
|
|
176
|
+
| GET | `/weightlifting-service/v3/one-rep-max/{exercise_id}` | verified | whoop_lift_exercise | value + Estimated/Manual; limits 1–999, 6 months back |
|
|
177
|
+
| PUT | `/weightlifting-service/v3/one-rep-max/{exercise_id}` | verified | whoop_lift_exercise_set | 204. Create; with id = edit; same date w/o id = replace. Value in display unit. 400s: 1–999, >6 months back, future. e1rm_eligible not enforced. |
|
|
178
|
+
| GET | `/weightlifting-service/v3/one-rep-max/{exercise_id}/history` | verified | whoop_lift_exercise, whoop_lift_exercise_set | MEASUREMENT_ENTRY_ITEMs; manual entry uuid only inside generic_interaction |
|
|
179
|
+
| GET | `/weightlifting-service/v3/prs` | verified | whoop_lift_exercise, whoop_lift_sessions | tiles (no record_date/medal); stale tiles survive deletion; deleted customs flagged; dedupe by exercise_id |
|
|
180
|
+
| GET | `/weightlifting-service/v3/workout-library` | verified | whoop_lift_library | my_workouts_list[{workout_template_key, name, source, created_at,…}], whoop_workouts_list[{id (string), title, paragraph, tag}]; no pagination; drafts not listed |
|
|
181
|
+
| POST | `/weightlifting-service/v3/workout-template` | verified | whoop_lift_template | Create (no key or -1); edit in place with existing key (±source); unknown key silently creates new. Sets {number_of_reps, weight?, time_in_seconds?}. |
|
|
182
|
+
|
|
183
|
+
Don't use:
|
|
184
|
+
|
|
185
|
+
| Method | Path | Verdict | Notes |
|
|
186
|
+
|---|---|---|---|
|
|
187
|
+
| PUT | `/weightlifting-service/v2/custom-exercise/{uuid}` | not-found | 405 (also on collection) |
|
|
188
|
+
| GET | `/weightlifting-service/v2/exercise/{id}` | not-found | 404 |
|
|
189
|
+
| GET | `/weightlifting-service/v3/workout-template/{key}` | not-found | 404 (DELETE too) |
|
|
190
|
+
| POST | `/weightlifting-service/v3/workout-template/{key}/duplicate` | not-found | 404 (v2 too); copy = GET + POST without key |
|
|
191
|
+
| GET | `/core-details-bff/v1/strength-workout/exercises` | not-found | Android route (@Acetone1). 404 with totem's iOS identity, as are /exercises/{id}, /history and /suggested (catalog ids like BENCHPRESS_BARBELL). |
|
|
192
|
+
|
|
193
|
+
### Journal
|
|
194
|
+
|
|
195
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
196
|
+
|---|---|---|---|---|
|
|
197
|
+
| GET | `/activities-service/v1/journals/behaviors/user` | verified | whoop_preferences, whoop_preferences_set | same data + total_count |
|
|
198
|
+
| PUT | `/activities-service/v1/journals/behaviors/user` | verified | whoop_preferences_set | Full tracked set (replace); untracking keeps old answers |
|
|
199
|
+
| GET | `/activities-service/v1/journals/stats/user/{user_id}` | verified | whoop_journal | yes/no counts per behavior (own id) |
|
|
200
|
+
| GET | `/ai-conversation-bff/v1/widget/journal/custom-behavior-proposal` | verified | – | proposal card (EDITABLE) |
|
|
201
|
+
| PUT | `/ai-conversation-bff/v1/widget/journal/custom-behavior-proposal/commit/{proposalId}` | verified | – | Creates a PERMANENT custom behavior (body {}; POST 405; no body 422). Not wrapped. |
|
|
202
|
+
| GET | `/behavior-impact-service/v1/impact` | verified | whoop_journal | new accounts nest member-average impact_cards under HEADER_ITEMS_CARD; walk recursively |
|
|
203
|
+
| GET | `/behavior-impact-service/v1/impact/summary-card/{date}` | verified | – | summary card |
|
|
204
|
+
| GET | `/journal-service/v1/journals/behaviors/{id}` | verified | – | single tracker; works for custom ids |
|
|
205
|
+
| GET | `/journal-service/v1/journals/preferences` | verified | whoop_preferences | {journal_enabled, journal_autopop_enabled, ai_autopop_enabled, …} |
|
|
206
|
+
| PUT | `/journal-service/v1/journals/preferences` | verified | whoop_preferences_set | Merges keys; journal_enabled required (422 otherwise) |
|
|
207
|
+
| GET | `/journal-service/v1/widget/talk-text/{date}` | verified | – | journal-agent entry; isIntraday=false points at yesterday |
|
|
208
|
+
| PUT | `/journal-service/v2/journal/entry/partial` | verified | whoop_journal_log | Merge across rows, replace within row; bare row clears; notes ignored; multi-date; 400 'Cannot log menstruation and ovulation at the same time' when 43+79 yes in one request. |
|
|
209
|
+
| GET | `/journal-service/v2/journals/behaviors` | verified | – | 308 records = totem bundle; excludes 171 and customs |
|
|
210
|
+
| GET | `/journal-service/v2/journals/behaviors/user/{date}` | verified | whoop://catalog/behaviors, whoop_journal, whoop_journal_log | 309 incl. 171 + custom; full trackers with magnitude specs |
|
|
211
|
+
| PUT | `/journal-service/v2/journals/entries/user/date/{date}` | verified | whoop_journal_log | Replace-all: unlisted rows deleted; omitted/'' notes → null. 400 text, atomic. One 204 didn't land during cycle reshuffle: read back. |
|
|
212
|
+
| GET | `/journal-service/v3/journals/behaviors` | verified | whoop_journal_log, whoop_preferences, whoop_preferences_set | customize-journal BFF (toggles, custom flag, custom_behaviors_widget) |
|
|
213
|
+
| GET | `/journal-service/v3/journals/date-picker/{date}` | verified | – | per-day status + fill_ratio |
|
|
214
|
+
| GET | `/journal-service/v3/journals/drafts/mobile/{date}` | verified | whoop_journal, whoop_journal_log | tracked_behaviors[{behavior_tracker, tracker_input}], notes (null when empty), cycle_id (may change), keyed by date |
|
|
215
|
+
| GET | `/journal-service/v3/journals/home-tile` | verified | – | 400 without date |
|
|
216
|
+
| GET | `/journal-service/v2/journals/{date}/calendar` | verified | whoop_calendar | Android route (@Acetone1). days_of_month[{date_value_display, cycle_id, day_state HAS_JOURNAL_ENTRY \| NO_DATA, has_data}] for the date's month. |
|
|
217
|
+
| GET | `/journal-service/v1/journals/behaviors/user` | verified | – | Android route (@Acetone1). The v1 tracker catalog (~309 rows with title, category, question_text). totem reads v3 behaviors instead. |
|
|
218
|
+
|
|
219
|
+
Don't use:
|
|
220
|
+
|
|
221
|
+
| Method | Path | Verdict | Notes |
|
|
222
|
+
|---|---|---|---|
|
|
223
|
+
| PUT | `/ai-conversation-bff/v1/widget/journal/custom-behavior-proposal/uncommit/{proposalId}` | not-found | 404 |
|
|
224
|
+
| GET | `/autopop-service/v1/autopop/JOURNAL/{cycle_id}` | not-found | 405 |
|
|
225
|
+
| PUT | `/autopop-service/v1/autopop/JOURNAL/{cycle_id}` | exists-but-unclear | 204 with/without {} body; no visible effect; tool dropped |
|
|
226
|
+
| GET | `/behavior-impact-service/v1/impact/details/{uuid}` | exists-but-unclear | same 400 |
|
|
227
|
+
| GET | `/behavior-impact-service/v1/impact/journal-trends/{uuid}` | server-error-500 | 500 for non-user uuid |
|
|
228
|
+
| GET | `/behavior-impact-service/v2/impact/details/{uuid}` | exists-but-unclear | 400 'Requested impact not found.' for member-average uuids; personal payload unverified live |
|
|
229
|
+
| POST | `/journal-service/v1/journals/behaviors` | service-only-401 | 401 |
|
|
230
|
+
| POST | `/journal-service/v1/journals/behaviors/{id}` | not-found | 405 (DELETE too) |
|
|
231
|
+
| PUT | `/journal-service/v1/journals/behaviors/{id}` | service-only-401 | 401 even with valid session (1f70f0ff) |
|
|
232
|
+
| POST | `/journal-service/{v1,v3}/journals/behaviors/custom` | not-found | custom-behavior REST create/edit/delete: 12 guesses (405/404/401); none exist. Delete = untrack. |
|
|
233
|
+
| GET | `/journal-service/v1/journals/stats/user/{cycle_id}` | exists-but-unclear | Android route (@Acetone1). records[{behavior_tracker_id, yes_count, no_count, last_value}] for ~310 trackers. Counts are neither lifetime nor as-of (an older cycle gave a higher count), so unused. |
|
|
234
|
+
|
|
235
|
+
### WHOOP Coach
|
|
236
|
+
|
|
237
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
238
|
+
|---|---|---|---|---|
|
|
239
|
+
| POST | `/ai-conversation-bff/v1/conversation` | verified | whoop_coach_ask, whoop_coach_history | Create/reopen keyed by fingerprint. Reopen of listed fp: no side effects. Unlisted fp: creates; daily-outlook___cycle___{id}/day-in-review___cycle___{id} GENERATES. |
|
|
240
|
+
| DELETE | `/ai-conversation-bff/v1/conversation/{fingerprint}` | verified | – | 204; UUID alias entry needs own DELETE; not wrapped in v2.0 |
|
|
241
|
+
| GET | `/ai-conversation-bff/v1/conversation/{fingerprint}/suggestions` | verified | whoop_coach_ask | {suggestions[]} |
|
|
242
|
+
| POST | `/ai-conversation-bff/v1/conversation/{fingerprint}/turn` | verified | whoop_coach_ask | Address by fingerprint (UUID works but creates phantom list entry). 409 while a turn is ACTIVE. |
|
|
243
|
+
| GET | `/ai-conversation-bff/v1/conversation/{fingerprint}/turn/{turnId}` | verified | whoop_coach_ask, whoop_coach_history | ONLY by fingerprint (UUID/list id → HTML 404). Poll until COMPLETE; join all MARKDOWN_CHAT_TEXT across assistant messages. |
|
|
244
|
+
| POST | `/ai-conversation-bff/v1/conversation/{fingerprint}/turn/{turnId}/seen` | verified | – | read receipt; never send (also /end-seen, /{fp}/last-viewed-turn) |
|
|
245
|
+
| GET | `/ai-conversation-bff/v1/conversations` | verified | whoop_coach_history | grouped by day; entry id ≠ metadata.id; only conversations with a user turn + outlooks |
|
|
246
|
+
| POST | `/ai-conversation-bff/v1/files` | verified | whoop_coach_ask | → {file_id:'<uuid>.png', size}; attach via turn file_ids |
|
|
247
|
+
| DELETE | `/ai-conversation-bff/v1/files/{file_id}` | verified | whoop_coach_ask | 204; deleted id silently dropped if re-attached |
|
|
248
|
+
| GET | `/ai-conversation-bff/v1/recommendation-widget` | verified | – | RECOMMENDATION_TILEs; deferred |
|
|
249
|
+
| POST | `/ai-conversation-bff/v1/recommendations/{id}/commit` | verified | – | no body; COMMITTED; no visible side effect; deferred |
|
|
250
|
+
| POST | `/ai-conversation-bff/v1/recommendations/{id}/uncommit` | verified | – | no body; UNCOMMITTED; deferred |
|
|
251
|
+
| GET | `/ai-conversation-service/v1/settings` | verified | whoop_preferences | WHOOP_COACH, _DATA, _CONCISE, _MEMORY |
|
|
252
|
+
| PUT | `/ai-conversation-service/v1/settings` | verified | whoop_memory_set | memory off → coach still claims to remember but stores nothing |
|
|
253
|
+
|
|
254
|
+
Don't use:
|
|
255
|
+
|
|
256
|
+
| Method | Path | Verdict | Notes |
|
|
257
|
+
|---|---|---|---|
|
|
258
|
+
| GET | `/ai-conversation-bff/v1/files/{file_id}` | not-found | 405 |
|
|
259
|
+
| POST | `/ai-conversation-bff/v1/recommendations/generate-alternatives` | exists-but-unclear | seen in widget; not called |
|
|
260
|
+
|
|
261
|
+
### Coach memory
|
|
262
|
+
|
|
263
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
264
|
+
|---|---|---|---|---|
|
|
265
|
+
| GET | `/context-hub-bff/v1/context-hub` | verified | – | landing LIST (talk-text widget, snapshot tiles, filtered list path) |
|
|
266
|
+
| DELETE | `/context-hub-bff/v1/context-hub/context-detail/{id}` | verified | whoop_memory_set | 204 permanent |
|
|
267
|
+
| GET | `/context-hub-bff/v1/context-hub/context-detail/{id}` | verified | whoop_memory | MARKS ITEM SEEN (read receipt); deleted id → 500 HTML |
|
|
268
|
+
| PUT | `/context-hub-bff/v1/context-hub/context-detail/{id}/status` | verified | whoop_memory_set | 204 |
|
|
269
|
+
| GET | `/context-hub-bff/v1/context-hub/items` | verified | whoop_memory | CONTEXT_CARDs; dynamic categories; no pagination |
|
|
270
|
+
|
|
271
|
+
### Cycle tracking (Hormonal Insights)
|
|
272
|
+
|
|
273
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
274
|
+
|---|---|---|---|---|
|
|
275
|
+
| POST | `/health-service/v1/hormonal-insights/settings/hormonal-goals` | verified | – | 204 replace; not wrapped (D13) |
|
|
276
|
+
| POST | `/health-service/v1/hormonal-insights/settings/mci` | verified | – | every call appends a contraception history row; not wrapped |
|
|
277
|
+
| PUT | `/health-service/v1/hormonal-insights/settings/mci/overlay` | verified | – | Not wrapped (D13) |
|
|
278
|
+
| GET | `/health-service/v1/pregnancy/onboarding/welcome` | verified | – | due-date window |
|
|
279
|
+
| GET | `/womens-health-service/v1/hormonal-insights/calendar` | verified | – | current month only; date ignored |
|
|
280
|
+
| GET | `/womens-health-service/v1/hormonal-insights/cycle-log-polling` | verified | – | internal post-log poll |
|
|
281
|
+
| GET | `/womens-health-service/v1/hormonal-insights/onboarding` | verified | – | survey enum source |
|
|
282
|
+
| GET | `/womens-health-service/v1/hormonal-insights/overview` | verified | whoop_cycle | HEADER_TILE, HORMONAL_INSIGHTS_CALENDAR_DAY days, SECTIONs (journal, trends & patterns); 400 before onboarding |
|
|
283
|
+
| GET | `/womens-health-service/v1/hormonal-insights/settings` | verified | whoop_cycle | drawers: mode MENSTRUATING\|PREGNANCY, contraception (8), goals; overlay toggle; previous pregnancies |
|
|
284
|
+
| GET | `/womens-health-service/v1/menstrual-cycle-insights` | verified | whoop_cycle | OLD screen, still alive; TYPICAL_CYCLE_TILE/CYCLE_PHASE_COACHING nested in MCI_TILE_SECTION (fallback source) |
|
|
285
|
+
| GET | `/womens-health-service/v1/menstrual-cycle-insights/cycles` | verified | whoop_cycle | cycles list; hide/unhide write path not exposed |
|
|
286
|
+
| GET | `/womens-health-service/v1/menstrual-cycle-insights/cycles/edit` | verified | – | read-only edit view |
|
|
287
|
+
| PUT | `/womens-health-service/v1/menstrual-cycle-insights/log` | verified | whoop_cycle_log | 200. Several entries per call; both period+ovulation same day → 400; period on empty date creates a sticky cycle; writes journal 43/79. |
|
|
288
|
+
| GET | `/womens-health-service/v1/menstrual-cycle-insights/symptoms` | verified | whoop_cycle | symptom tick rows per cycle segment |
|
|
289
|
+
| GET | `/womens-health-service/v1/pregnancy/edit` | verified | – | enum source |
|
|
290
|
+
| GET | `/womens-health-service/v1/pregnancy/screen` | verified | – | 404 text 'Pregnancy Settings turned off for user' when none active |
|
|
291
|
+
| GET | `/womens-health-service/v1/pregnancy/{id}` | verified | – | postpartum summary; method/weight not in read |
|
|
292
|
+
| PUT | `/womens-health-service/v1/pregnancy/{id}` | verified | – | 204; NO enum validation (BOGUS accepted); not wrapped |
|
|
293
|
+
| POST | `/womens-health-service/v1/symptom-insights/log/symptoms` | verified | whoop_cycle_log | tracker_inputs merge; menstruation & cervical_mucus REPLACE (omit = clear); flow logs a period day; invalid enum → 422 |
|
|
294
|
+
| GET | `/womens-health-service/v1/symptom-insights/log/symptoms/screen` | verified | whoop_cycle, whoop_cycle_log | current day selections + live enums (menstruation, cervical_mucus, symptom ids) |
|
|
295
|
+
| GET | `/womens-health-service/v1/menstrual-cycle-insights/deep-dives` | verified | – | Android route (@Acetone1). Static phase guidance for the four phases (45 KB). |
|
|
296
|
+
|
|
297
|
+
Don't use:
|
|
298
|
+
|
|
299
|
+
| Method | Path | Verdict | Notes |
|
|
300
|
+
|---|---|---|---|
|
|
301
|
+
| DELETE | `/health-service/v1/hormonal-insights/settings/mci` | not-exercised | disables HI; can't be restored |
|
|
302
|
+
| PUT | `/health-service/v1/hormonal-insights/settings/mci/survey` | not-exercised | onboarding; rewrites period history |
|
|
303
|
+
| PUT | `/health-service/v1/pregnancy/settings` | exists-but-unclear | only a 400 probe; real call creates a pregnancy and switches mode |
|
|
304
|
+
|
|
305
|
+
### Weekly Plan
|
|
306
|
+
|
|
307
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
308
|
+
|---|---|---|---|---|
|
|
309
|
+
| GET | `/progression-service/v1/weekly-plan` | verified | whoop_weekly_plan | Mon–Sun; no plan → locked PLAN_TILEs; plan → CURRENT_PLAN_TILE{plan_id}, goal_section[{id TargetGoalType}] |
|
|
310
|
+
| GET | `/progression-service/v1/weekly-plan/presets` | verified | whoop_weekly_plan | plan tiles + cancel copy |
|
|
311
|
+
| GET | `/progression-service/v2/weekly-plan/home-tile/{date}` | verified | whoop_weekly_plan | WEEKLY_PLAN_HOME_TILE (plan) or TEXT_WITH_ILLUSTRATION (none) |
|
|
312
|
+
| GET | `/progression-service/v2/weekly-plan/setup` | verified | whoop_weekly_plan_set | {plan_id, screens[]}; plan_id random per call until a plan record exists; ?screens= one of STRAIN, SLEEP_PERFORMANCE, SLEEP_CONSISTENCY, ACTIVITIES, BEHAVIORS, WEIGHT, STEPS, HR_ZONES_ONE_TO_THREE, HR_ZONES_FOUR_TO_FIVE, STRENGTH_TRAINING_TIME, SLEEP_HOURS |
|
|
313
|
+
| PUT | `/progression-service/v2/weekly-plan/{plan_id}/goal/target` | verified | whoop_weekly_plan_set | 204. Creates Custom plan / edits / adds a goal. Verified STEPS, STRENGTH_TRAINING_TIME only. {} → 422. |
|
|
314
|
+
| DELETE | `/progression-service/v2/weekly-plan/{plan_id}/goal/target/{type}` | verified | whoop_weekly_plan_set | 204; removing the last goal ends the plan in the UI (empty record persists) |
|
|
315
|
+
|
|
316
|
+
Don't use:
|
|
317
|
+
|
|
318
|
+
| Method | Path | Verdict | Notes |
|
|
319
|
+
|---|---|---|---|
|
|
320
|
+
| GET | `/progression-service/v2/weekly-plan/setup/overview/{plan}` | server-error-500 | 500 (Cloudflare HTML) on test account; 200 on main |
|
|
321
|
+
| PUT | `/progression-service/v2/weekly-plan/{plan_id}` | exists-but-unclear | PutPlanRequest; every body 422. Don't call. |
|
|
322
|
+
| DELETE | `/progression-service/v{1,2}/weekly-plan/{plan_id}` | server-error-500 | always 500. Don't call. |
|
|
323
|
+
| PUT | `/progression-service/v2/weekly-plan/{plan_id}/goal/activity` | exists-but-unclear | Android route (@Acetone1). 204 for every body tried ({}, and goals/activities/goal_settings lists of tile ids like ANY_STRAIN), with and without a plan; nothing changed. Tiles: setup?screens=ACTIVITIES. |
|
|
324
|
+
| PUT | `/progression-service/v2/weekly-plan/{plan_id}/goal/behavior` | exists-but-unclear | Android route (@Acetone1). 204 for {}; nothing changed. Tiles come from setup?screens=BEHAVIORS (behavior tracker ids, AVOID options). |
|
|
325
|
+
| DELETE | `/progression-service/v2/weekly-plan/{plan_id}/goal/activity` | exists-but-unclear | Android route (@Acetone1). 204 (and the same for goal/behavior); the test plan had no such goals to remove. |
|
|
326
|
+
| GET | `/progression-service/v2/weekly-plan/setup/overview` | server-error-500 | Android route (@Acetone1). 500 on the test account. |
|
|
2009
327
|
|
|
2010
328
|
### Smart Alarm
|
|
2011
329
|
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
`
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
`
|
|
2035
|
-
|
|
2036
|
-
`
|
|
2037
|
-
`
|
|
2038
|
-
`
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
`
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
`
|
|
2053
|
-
|
|
2054
|
-
###
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
|
2063
|
-
|
|
2064
|
-
|
|
|
2065
|
-
|
|
|
2066
|
-
|
|
|
2067
|
-
|
|
|
2068
|
-
|
|
|
2069
|
-
|
|
|
2070
|
-
|
|
|
2071
|
-
|
|
|
2072
|
-
|
|
|
2073
|
-
|
|
|
2074
|
-
|
|
|
2075
|
-
|
|
|
2076
|
-
| `
|
|
2077
|
-
|
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
{
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
###
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
---
|
|
2170
|
-
|
|
2171
|
-
## Status code taxonomy
|
|
2172
|
-
|
|
2173
|
-
Covered in full under [Cross-cutting patterns → Pattern 5](#pattern-5-status-code-taxonomy). Quick reference: **200** success+body · **204** success / no body (writes) · **400** validation (`{code, message, location}`) · **401** JWT expired · **403** permission denied (e.g. a community you left) · **404** not found / feature not provisioned / no leaderboard data · **409** conflict (overlapping time ranges) · **414** URI too long (one-off) · **422** business-rule rejection · **428** precondition required · **500** rare server bug (behavior-impact 500'd on a stale UUID).
|
|
2174
|
-
|
|
2175
|
-
---
|
|
2176
|
-
|
|
2177
|
-
## Token cost analysis
|
|
2178
|
-
|
|
2179
|
-
Whoop's BFFs are extraordinarily verbose by design — they ship UI code, not data — so the MCP's projections cut most responses by **99%+**: the 848 KB sleep response → ~6 KB (`whoop_sleep`, mostly the hypnogram timeline), the 300 KB workout detail → ~500 chars (`whoop_workout`), the 118 KB trend → 0.5–12 KB depending on populated windows (`whoop_trend`), the 54 KB home → ~480 chars (`whoop_today`). Raw response sizes per endpoint are tabulated in [Appendix B](#appendix-b-bytes-per-endpoint-response-payload-observed) and noted inline in the per-service reference.
|
|
2180
|
-
|
|
2181
|
-
---
|
|
2182
|
-
|
|
2183
|
-
## Internal vocabulary glossary
|
|
2184
|
-
|
|
2185
|
-
Terms used inside Whoop's API responses that aren't externally documented.
|
|
2186
|
-
|
|
2187
|
-
- **BFF** — Backend For Frontend. An API endpoint that returns UI tree fragments instead of raw data. Whoop has many.
|
|
2188
|
-
- **MSK** — Musculo-Skeletal. The Strength Trainer feature. `msk_intensity_percent` is how hard your muscles worked relative to capacity. `total_volume_kg` is the cumulative weight × reps. `scaled_msk_strain_score` is the strength-adjusted contribution to day strain.
|
|
2189
|
-
- **MCI** — Menstrual Cycle Insights. Whoop's women's-health module. Must be configured before any cycle-related endpoint returns data.
|
|
2190
|
-
- **Vow** — Whoop's narrative-text generation service. Takes structured numeric data and emits a "coach voice" sentence.
|
|
2191
|
-
- **Cycle** — In Whoop's world, a "cycle" is a 24-hour period defined by the user's typical wake time, NOT a calendar day. It runs from wake yesterday to wake today. Most endpoints use `cycle_id` as their per-day index.
|
|
2192
|
-
- **Pillar** — The three top-level health categories: Sleep, Recovery, Strain. The `/home` response groups data by pillar (though in newer captures we only see one OVERVIEW pillar containing all three as sub-tiles).
|
|
2193
|
-
- **Strain Coach** — Whoop's coaching feature for advising on target day strain. Different from Sleep Coach.
|
|
2194
|
-
- **Sleep Coach** — Whoop's bedtime recommendation feature, driven by `/coaching-service/v2/sleepneed`.
|
|
2195
|
-
- **Whoop Coach** — Whoop's LLM-based chat assistant, accessed via `/ai-conversation-bff/`.
|
|
2196
|
-
- **Wake Up Report** — Morning summary the iOS app shows after the user wakes up. Backed by the `/deep-dive/sleep/last-night` endpoint.
|
|
2197
|
-
- **Tilt View** — When the user rotates the phone to landscape on a deep-dive screen, the iOS app fetches `/home-service/v1/tilt-view?date=` to get a wider chart layout.
|
|
2198
|
-
- **Healthspan** — Whoop's "are you aging well" composite metric. Behind the HEALTHSPAN hidden-metric flag.
|
|
2199
|
-
- **Body Comp** — Body composition (fat %, muscle %, etc.) from the Whoop scale integration. Behind the BODY_COMP flag.
|
|
2200
|
-
- **Healthkit Token** — Apple HealthKit sync cursor (an integer). The iOS app holds this client-side and increments after each successful sync.
|
|
2201
|
-
- **WBL** — Wake-By-Log. The Smart Alarm event telemetry log.
|
|
2202
|
-
- **Stealth Mode** — Hides all metrics from the home tab; replaces them with a generic "checking in" UI. The user still earns data but doesn't see scores. Can be set but not read via the API.
|
|
2203
|
-
- **Hidden Metric** — Per-metric visibility toggle. The user can hide Body Comp or Healthspan without going fully stealth.
|
|
2204
|
-
- **Pushcore** — Whoop's exercise-classification engine. `push_core_name` is the canonical exercise ID it assigns to a detected lift (used for custom exercises that are alternate names for official ones).
|
|
2205
|
-
- **Tonnage** — Strength workout total volume (sum of weight × reps across all sets). Reported in `lbs` units by default.
|
|
2206
|
-
- **PR** — Personal Record. Whoop tracks PRs per exercise per rep-range and awards GOLD/SILVER/BRONZE medals on the top set.
|
|
2207
|
-
- **Compliance** — In community leaderboards, "compliant" users are the ones with data points in the window. "Empty" users joined the community but have no data.
|
|
2208
|
-
|
|
2209
|
-
---
|
|
2210
|
-
|
|
2211
|
-
## Appendix A: Operation count by service
|
|
2212
|
-
|
|
2213
|
-
```
|
|
2214
|
-
101 /community-service Leaderboards + community CRUD + chat
|
|
2215
|
-
34 /membership-service Billing + plans + straps + referrals
|
|
2216
|
-
23 /users-service Bootstrap + preferences + hidden + stealth + privacy
|
|
2217
|
-
20 /onboarding-service Signup + education + overlays
|
|
2218
|
-
20 /metrics-service Protobuf sensor telemetry (skipped)
|
|
2219
|
-
20 /home-service Home + calendars + deep dives
|
|
2220
|
-
20 /coaching-service Health monitor + perf assessment + sleep need
|
|
2221
|
-
17 /weightlifting-service Strength Trainer (catalog + writes + BFF)
|
|
2222
|
-
11 /smart-alarm-service Schedules + preferences + WBL
|
|
2223
|
-
11 /health-service Hormonal insights + stress BFF
|
|
2224
|
-
11 /activities-service State machine + journals/behaviors + sport catalog
|
|
2225
|
-
9 /profile-service Profile CRUD + avatar
|
|
2226
|
-
9 /journal-service Journal v1/v2/v3
|
|
2227
|
-
9 /core-details-bff Activity detail + create + start-strain
|
|
2228
|
-
8 /womens-health-service MCI + symptom logging
|
|
2229
|
-
8 /membership Legacy bare /membership endpoints
|
|
2230
|
-
8 /auth-service Cognito proxy + legacy v2 user
|
|
2231
|
-
6 /progression-service Trends + weekly plan
|
|
2232
|
-
6 /behavior-impact-service Behavior correlations
|
|
2233
|
-
6 /ai-conversation-bff Whoop Coach
|
|
2234
|
-
5 /notification-service Push prefs + event tracking
|
|
2235
|
-
5 /hr-zones-service Zone CRUD
|
|
2236
|
-
5 /growth-content-service Marketing content
|
|
2237
|
-
5 /followers-service Social graph
|
|
2238
|
-
4 /integrations-bff Third-party integrations
|
|
2239
|
-
3 /smart-alarm-bff Schedule UI
|
|
2240
|
-
3 /ai-conversation-service Coach settings
|
|
2241
|
-
2 /widget-service iOS widgets
|
|
2242
|
-
2 /vow-service Narrative text generation
|
|
2243
|
-
2 /streaks-service Data streaks
|
|
2244
|
-
2 /strap-location-service Strap garments
|
|
2245
|
-
2 /privacy-service Recommendation opt-in
|
|
2246
|
-
2 /health-tab-bff Health tab UI
|
|
2247
|
-
2 /entitlement-service Feature flags
|
|
2248
|
-
2 /context-hub-bff UI lifecycle coordinator
|
|
2249
|
-
2 /commerce-service In-app shop
|
|
2250
|
-
2 /candidate-service HealthKit ingestion
|
|
2251
|
-
2 /app-notifications-service In-app notification inbox
|
|
2252
|
-
2 /advanced-labs-service Bloodwork
|
|
2253
|
-
1 /social-service Strava settings
|
|
2254
|
-
1 /sleep-service HR baseline
|
|
2255
|
-
1 /research-service Research campaigns
|
|
2256
|
-
1 /member-data-export-service GDPR export
|
|
2257
|
-
1 /enterprise-service Enterprise sharing
|
|
2258
|
-
1 /device-config Feature flags
|
|
2259
|
-
1 /autopop-service Journal auto-populate
|
|
2260
|
-
1 /achievements-service Achievement progression
|
|
2261
|
-
---
|
|
2262
|
-
419 unique operations total (→ 311 after path-templating; that's the count bundled in src/data/endpoints.ts)
|
|
2263
|
-
```
|
|
2264
|
-
|
|
2265
|
-
---
|
|
2266
|
-
|
|
2267
|
-
## Appendix B: Bytes per endpoint (response payload, observed)
|
|
2268
|
-
|
|
2269
|
-
The largest responses by byte size — what the iOS app pulls; the MCP reduces most by 99%+:
|
|
2270
|
-
|
|
2271
|
-
```
|
|
2272
|
-
1,529,442 /health-service/v2/stress-bff/{date} (~1.5 MB, estimated)
|
|
2273
|
-
848,428 /home-service/v1/deep-dive/sleep/last-night?date={date}
|
|
2274
|
-
538,889 /home-service/v1/tilt-view?date={date}
|
|
2275
|
-
385,000 /weightlifting-service/v2/exercise (exercise catalog)
|
|
2276
|
-
300,123 /core-details-bff/v1/cardio-details?activityId={uuid}
|
|
2277
|
-
176,630 /activities-service/v1/journals/behaviors/user
|
|
2278
|
-
118,399 /progression-service/v3/trends/{metric}?endDate={date}
|
|
2279
|
-
88,606 /activities-service/v1/sports/history?countryCode=US
|
|
2280
|
-
73,571 /journal-service/v3/journals/behaviors
|
|
2281
|
-
68,672 /commerce-service/v1/mobile/shop/home?source=menu
|
|
2282
|
-
66,646 /journal-service/v2/journals/behaviors
|
|
2283
|
-
54,998 /activities-service/v2/activity-types
|
|
2284
|
-
54,751 /home-service/v1/home?date={date}
|
|
2285
|
-
44,991 /home-service/v1/deep-dive/sleep/trends?date={date}
|
|
2286
|
-
37,346 /womens-health-service/v1/menstrual-cycle-insights?date={date}
|
|
2287
|
-
```
|
|
2288
|
-
|
|
2289
|
-
The rest are noted inline in the [per-service reference](#per-service-endpoint-reference).
|
|
2290
|
-
|
|
2291
|
-
---
|
|
2292
|
-
|
|
2293
|
-
## Appendix C: Endpoints not yet wrapped
|
|
2294
|
-
|
|
2295
|
-
The MCP wraps the high-value subset. These endpoints are documented but unwrapped — `whoop_raw` can hit any of them.
|
|
2296
|
-
|
|
2297
|
-
**Probably valuable, just not yet:**
|
|
2298
|
-
- `/home-service/v1/calendar/overview` — already accessed via `whoop_calendar` but the wrapping is thin
|
|
2299
|
-
- `/community-service/v1/communities` (POST, multipart/form-data) — create a community
|
|
2300
|
-
- `/onboarding-service/*` — useful for fresh-strap signup flow
|
|
2301
|
-
- `/membership-service/*` — billing / family plans / subscription management
|
|
2302
|
-
- `/strap-location-service/v1/garment` — change which body part you wear the strap on
|
|
2303
|
-
- `/social-service/v1/strava/bff/settings` — connect Strava
|
|
2304
|
-
- `/integrations-bff/*` — TrainingPeaks, Withings, etc.
|
|
2305
|
-
- `/research-service/research-bff-service/v1/campaigns` — opt into research studies
|
|
2306
|
-
- `/member-data-export-service/v1/member-data-export-details` — request GDPR export
|
|
2307
|
-
- `/notification-service/*` — fine-grained push preferences
|
|
2308
|
-
- `/users-service/v0/users/preference` (PATCH) — toggle autoDetectSleep, autoClassifyWorkout, etc.
|
|
2309
|
-
- `/users-service/v1/users/preferences/time` — set clock format + timezone
|
|
2310
|
-
- `/profile-service/v1/profile/avatar` (PUT raw PNG) — upload a profile avatar
|
|
2311
|
-
- `/advanced-labs-service/*` — bloodwork results (if subscribed)
|
|
2312
|
-
|
|
2313
|
-
**Probably skip:**
|
|
2314
|
-
- `/metrics-service/v1/metrics` — binary protobuf sensor data; would require protobuf RE
|
|
2315
|
-
- `/health-service/v2/stress-bff?timestamp=...` POST — deprecated binary upload path
|
|
2316
|
-
- `/notification-service/v1/notifications/events` — analytics-only
|
|
2317
|
-
- `/candidate-service/v1/applehealthkit/events` — only useful if mirroring iOS HealthKit
|
|
2318
|
-
- All OPTIONS preflights — automatic CORS, not actionable
|
|
2319
|
-
- `/device-config/v1/value` — empty array on this account
|
|
2320
|
-
- `/firmware-service/*`, `/log-service/*`, `/mobile-metric-service/*`, `/gps-service/*` — pure telemetry, skipped from dedup
|
|
2321
|
-
- `/auth-service/v3/whoop/` direct calls — auth happens via the MCP's TokenManager, not exposed as a tool
|
|
2322
|
-
|
|
2323
|
-
**Probably-deprecated:**
|
|
2324
|
-
- `/health-service/v2/stress-bff?timestamp=...` (POST) — 404 in all captures; data goes via metrics-service binary stream now
|
|
2325
|
-
- `/membership-service/v1/membership/native-account-header` — 400 on healthy accounts, looks broken
|
|
2326
|
-
|
|
2327
|
-
---
|
|
2328
|
-
|
|
2329
|
-
---
|
|
2330
|
-
|
|
2331
|
-
## BFF section / tile type taxonomy
|
|
2332
|
-
|
|
2333
|
-
Every `type` discriminator value observed across all captured responses, sorted by frequency. The `content` shape varies per type — example keys shown.
|
|
2334
|
-
|
|
2335
|
-
| Type | Count | Example `content` keys |
|
|
2336
|
-
|---|---|---|
|
|
2337
|
-
| `STANDARD` | 129 | (variable — used as a passthrough wrapper) |
|
|
2338
|
-
| `LINE_PLOT` | 31 | (graph plot specification) |
|
|
2339
|
-
| `EXERCISE_BREAKDOWN` | 16 | `number_of_columns, rows, table_titles, id` |
|
|
2340
|
-
| `REGION_HIGHLIGHT` | 14 | (graph annotation overlay) |
|
|
2341
|
-
| `GRAPHING_CARD` | 12 | `id, trends_cta, end_icon, destination, unlock_trends_card, icon, graph_legends, title, graph, sub_items, accessibility_label` |
|
|
2342
|
-
| `DIVIDER` | 11 | `title, divider_type` |
|
|
2343
|
-
| `BAR_PLOT` | 10 | (bar chart spec) |
|
|
2344
|
-
| `CARDIO` | 10 | (activity-specific overlay) |
|
|
2345
|
-
| `CARD_BUTTON` | 10 | `id, title, icon, icon_configuration, style, destination` |
|
|
2346
|
-
| `KEY_STATISTIC` | 9 | `trend_key, title, current_value_display, thirty_day_value_display, state, icon` |
|
|
2347
|
-
| `EXPANDABLE_CARD` | 8 | `icon_collapsed, icon_expanded, expanded, header_content, expanded_content, id` |
|
|
2348
|
-
| `EXERCISE_RECORD_HEADER` | 8 | `achievement_icon, record_date, record_subtitle, record_title, id` |
|
|
2349
|
-
| `TIME_MARKER` | 6 | (timestamp annotation on graphs) |
|
|
2350
|
-
| `HEADER` | 6 | `id, title, subtitle, subtitle_end, cta, cta_state, icon, style, destination` |
|
|
2351
|
-
| `DETAILS_GRAPHING_CARD` | 5 | `id, card_title, card_info, arrow_stat, graph_legends, card_content` |
|
|
2352
|
-
| `ACTIVITY` | 5 | `is_gps_enabled, title, score_display, start_time_text, end_time_text, icon_url, secondary_icon_url, status` |
|
|
2353
|
-
| `GRAPH` | 3 | `id, plane, plots, graph_title_display, graph_buttons` |
|
|
2354
|
-
| `MILESTONE_CARD` | 3 | `id, title, subtitle, image_url, cta, navigation` |
|
|
2355
|
-
| `PROGRESS_BAR` | 3 | (linear progress indicator) |
|
|
2356
|
-
| `BAR_GRAPH_CARD` | 2 | `duration_title_display, duration_display, typical_range_title_display, heart_rate_zones` |
|
|
2357
|
-
| `DETAILS_METRIC_TILES` | 2 | `title, icon, style, arrow_stat` |
|
|
2358
|
-
| `COMPARISON_BARS` | 2 | `graph_type, bars, legend_entries` |
|
|
2359
|
-
| `OVERLAY_PLOT` | 2 | (composite graph) |
|
|
2360
|
-
| `SPLIT_CONTAINER` | 2 | `start_item, end_item` |
|
|
2361
|
-
| `MINI_MONITOR` | 2 | `title, end_icon, body, destination` |
|
|
2362
|
-
| `TREND_PLOT` | 2 | (trend graph spec) |
|
|
2363
|
-
| `VIDEO` | 2 | (embedded video player) |
|
|
2364
|
-
| `RECOVERY_IMPACTS_TILE` | 1 | `icon, title, subtitle, description, items, destination` |
|
|
2365
|
-
| `HOME` | 1 | (pillar-type wrapper) |
|
|
2366
|
-
| `HEALTH` | 1 | (pillar-type wrapper) |
|
|
2367
|
-
| `COMMUNITY` | 1 | (pillar-type wrapper) |
|
|
2368
|
-
| `PROFILE` | 1 | (pillar-type wrapper) |
|
|
2369
|
-
| `SETTINGS` | 1 | (pillar-type wrapper) |
|
|
2370
|
-
| `SCORE_GAUGE_STICKY` | 1 | `id, gauges, header_item` |
|
|
2371
|
-
| `OVERVIEW` | 1 | (pillar-type wrapper) |
|
|
2372
|
-
| `NOTIFICATIONS_WRAPPER_V2` | 1 | `architecture_mini_component, chat_entry_point` |
|
|
2373
|
-
| `COACH_ENTRY_POINT` | 1 | `coach_pill, daily_outlook_tile` |
|
|
2374
|
-
| `ITEMS_CARD` | 1 | `footer, header, items, footer_items, id` |
|
|
2375
|
-
| `SLEEP` | 1 | (pillar-type wrapper) |
|
|
2376
|
-
| `SLEEP_PLANNER_ALARM_CARD` | 1 | `height_style, waketime_subtitle, waketime_label_style, bedtime_period_display, waketime_period_display, cta_button_text` |
|
|
2377
|
-
| `JOURNAL_HOME_TILE` | 1 | `path` |
|
|
2378
|
-
| `WEEKLYPLAN_WRAPPER` | 1 | `architecture_mini_component, auto_expanded` |
|
|
2379
|
-
| `STRESS_GRAPHING_CARD` | 1 | `icon, cta, last_updated_text, stress_graph_state, stress_graph_label, stress_graph_score` |
|
|
2380
|
-
| `LOGO_NAV` | 1 | `url, destination` |
|
|
2381
|
-
| `TITLE_ONLY` | 1 | (header with just a title) |
|
|
2382
|
-
| `user`, `staff`, `teams`, `profile`, `membership`, `bio_data` | various | (bootstrap response shape) |
|
|
2383
|
-
|
|
2384
|
-
**Pillar types** (used in `/home-service/v1/home` pillar discriminator): `OVERVIEW, RECOVERY, SLEEP, STRAIN, HEALTH, COMMUNITY, PROFILE, SETTINGS, HOME`. Only `OVERVIEW` was seen in our capture; the others are inferred from BFF wrapper types.
|
|
2385
|
-
|
|
2386
|
-
**Plot types** inside `graph.plots[].plot`:
|
|
2387
|
-
- `segments`: array of line segments, each with `points[]` (line plots)
|
|
2388
|
-
- `bar_groups`: array of bar groups, each with `bars[]` (bar plots)
|
|
2389
|
-
- `diagonal_points`: rare overlay
|
|
2390
|
-
- `style`: visual style (RECOVERY, SLEEP, STRAIN, MSK, etc.)
|
|
2391
|
-
|
|
2392
|
-
### How to walk a BFF response
|
|
2393
|
-
|
|
2394
|
-
The MCP's `findFirst` / `findAll` helpers in `src/lib/walk.ts` do a recursive descent looking for nodes matching a predicate. The most common predicates:
|
|
2395
|
-
|
|
2396
|
-
- `findByType(node, "GRAPHING_CARD")` — find a section by exact type match
|
|
2397
|
-
- `findAllByType(node, "GRAPHING_CARD")` — collect all
|
|
2398
|
-
- `findCardByTitle(node, "VARIABILITY")` — find a GRAPHING_CARD whose `content.title` contains the substring (case-insensitive)
|
|
2399
|
-
- `findDetailsCardByTitle(node, "HOURS OF SLEEP")` — same but for `DETAILS_GRAPHING_CARD.content.card_title`
|
|
2400
|
-
|
|
2401
|
-
The pattern for extracting today's value from a GRAPHING_CARD:
|
|
2402
|
-
|
|
2403
|
-
```ts
|
|
2404
|
-
const card = findCardByTitle(raw, "HEART RATE VARIABILITY");
|
|
2405
|
-
const label = latestGraphLabel(card); // "42" (string)
|
|
2406
|
-
const value = labelToNumber(label); // 42 (number)
|
|
2407
|
-
```
|
|
2408
|
-
|
|
2409
|
-
For bar plots (like the strain weekly bar chart):
|
|
2410
|
-
|
|
2411
|
-
```ts
|
|
2412
|
-
const card = findCardByTitle(raw, "STRAIN");
|
|
2413
|
-
const label = latestGraphLabel(card); // walks bar_groups[last].top_label.label
|
|
2414
|
-
// → "17.8"
|
|
2415
|
-
```
|
|
2416
|
-
|
|
2417
|
-
For time-format labels:
|
|
2418
|
-
|
|
2419
|
-
```ts
|
|
2420
|
-
const card = findCardByTitle(raw, "HR ZONES 1-3");
|
|
2421
|
-
const label = latestGraphLabel(card); // "1:41"
|
|
2422
|
-
const ms = timeLabelToMs(label); // 6060000
|
|
2423
|
-
```
|
|
2424
|
-
|
|
2425
|
-
---
|
|
2426
|
-
|
|
2427
|
-
## Captured fixture response samples
|
|
2428
|
-
|
|
2429
|
-
Full raw responses for the highest-value endpoints are committed under [`tests/fixtures/*.json`](tests/fixtures) (the projection test suite asserts exact field values against them). The structural keys each projection walks:
|
|
2430
|
-
|
|
2431
|
-
- **`home.json`** (54 KB, `whoop_today`) — `pillars[OVERVIEW].sections[].items[]`: `SCORE_GAUGE_STICKY.gauges[]` (SLEEP/RECOVERY/STRAIN `score_display` + `progress_fill_style`) for scores; `ACTIVITY` items for workout count. State from `progress_fill_style` (`RECOVERY_HIGH→GREEN`, `_MEDIUM→YELLOW`, `_LOW→RED`).
|
|
2432
|
-
- **`deep_dive_recovery.json`** (21 KB, `whoop_recovery`) — migrated May 2026 to `SCORE_GAUGE { id: RECOVERY_SCORE_GAUGE }` + `CONTRIBUTORS_TILE { id: RECOVERY_CONTRIBUTORS_TILE }.metrics[]` (HRV / RHR / RESPIRATORY_RATE / SLEEP_PERFORMANCE; `status` = today, `status_subtitle` = baseline). See [Pattern 2b](#pattern-2b-score_gauge--contributors_tile-may-2026-recovery--strain).
|
|
2433
|
-
- **`deep_dive_sleep.json`** (848 KB, `whoop_sleep`) — `DETAILS_GRAPHING_CARD[card_title].arrow_stat[0].current_stat_text` for HOURS OF SLEEP / HOURS VS. NEEDED / SLEEP CONSISTENCY / SLEEP EFFICIENCY; `BAR_GRAPH_CARD.duration_display` for time-in-bed; `BAR_GRAPH_CARD.heart_rate_zones[]` (misnamed — these are the sleep stages AWAKE / LIGHT_SLEEP / SWS_SLEEP / REM_SLEEP, each with `bar_graph_tile_time_display` + `_percentage_display`); start/end from `header_section.destination.parameters`. The per-stage HR-curve `LINE_PLOT`s (points with `data_scrubber_details.scrubber_style` = stage, `value_display` = bpm, `secondary_contextual_display` = clock time) are walked + merged to reconstruct the `hypnogram` (timed off the clock labels, anchored to the sleep window at its midpoint) and `sleep_hr` (avg/min).
|
|
2434
|
-
- **`deep_dive_strain.json`** (29 KB, `whoop_strain`) — migrated May 2026 to `STRAIN_SCORE_GAUGE` + `STRAIN_CONTRIBUTORS_TILE.metrics[]` (HR_ZONES_1_3 / HR_ZONES_4_5 / STRENGTH_TRAINING_TIME / STEPS); workout count from `ACTIVITY` items. `calories` / `avg_hr` / `max_hr` / per-zone granularity are no longer here — fetch per-workout `/cardio-details`.
|
|
2435
|
-
- **`cardio_details.json`** (300 KB) + **`cardio_details_nonstrength.json`** (540 KB), `whoop_workout` — `title_bar.title_display` (sport), `key_metric_carousel.key_metric_tile[]` by icon (CALORIES / HEART_RATE / MAX_HEART_RATE / DURATION), `bar_graph_container.heart_rate_zones[]` (id → zone: RESTORATIVE=0 … MAX=5), `graph_response.plots[].plot.segments[].points[]` (HR curve), `weightlifting_cardio_details.weightlifting_exercises.exercise_summary_carousel.items[]` (per-exercise aggregates; first item is the summary row), `strain_breakdown.msk_percent_display`. Non-strength: `strain_breakdown` + `weightlifting_cardio_details` are null.
|
|
2436
|
-
- **`trend_hrv.json`** (117 KB, `whoop_trend`) — `{week,month,six_month}_time_segment`, each with `metrics[]` (**an array** — read `metrics[0].current_metric_value` + `metric_change`, NOT `metrics.avg`) and `graph.plots[].plot.segments[].points[]` where `data_scrubber_details.value` is null and the real number is `value_display` / `graph_label.label` (strings).
|
|
2437
|
-
- **`bootstrap.json`** (1.2 KB, `whoop_profile`) — `{account, user, profile, membership, bio_data}`. Quirks the projection handles: `profile.birthday` is a full ISO datetime (the PUT wants YYYY-MM-DD); `profile.gender` is lowercase (the PUT wants uppercase).
|
|
2438
|
-
- **`lift_prs.json`** (10 KB, `whoop_lift_prs`) — `tiles[]` with exercise metadata + `volume_input_value` (a **string**, coerced via `asNumber`).
|
|
2439
|
-
- **stress** (`/stress-bff/{date}`, ~1.3 MB, `whoop_stress`) — `stress_state.timeline[]` (one `{started_at, ended_at, level}` per 15-min window; `level` is null during no-data windows). The 1.3 MB is mostly inline education + the `vow` narrative; the actual stress data is <100 KB.
|
|
2440
|
-
|
|
2441
|
-
---
|
|
2442
|
-
|
|
2443
|
-
## Captured request body samples (write endpoints)
|
|
2444
|
-
|
|
2445
|
-
The canonical write bodies are documented inline in the [per-service reference](#per-service-endpoint-reference) (HR zones, smart alarm, MCI survey, cycle / symptom log, custom exercise, workout log, profile PUT). The essentials, restated:
|
|
2446
|
-
|
|
2447
|
-
- **Activity create** (`POST /core-details-bff/v0/create-activity`): `{sport_id, gps_enabled, start_time, end_time}` with ISO timestamps → receipt `{id, cycle_id, during, timezone, source}`. (The v2 `activity_internal_name` variant 400s on non-ISO dates.)
|
|
2448
|
-
- **Journal save** (`PUT /journal-service/v2/journals/entries/user/date/{date}`): `{notes, tracker_inputs:[…]}` where each input is bare `{behavior_tracker_id}`, boolean `{…, answered_yes}`, or magnitude `{…, magnitude_input_value, magnitude_input_label}`. → 204.
|
|
2449
|
-
- **Strength workout log** (`POST /weightlifting-service/v2/weightlifting-workout/activity`): `{during, workout_groups:[{workout_exercises:[{sets:[{during, weight, number_of_reps, strap_location, strap_location_laterality, weightlifting_workout_set_id, [time_in_seconds]}], exercise_details:{…full denormalized exercise}}]}]}`. **`exercise_details.created_at`/`updated_at` must be non-empty** or it silently 422s. → receipt with `total_effective_volume_kg`, `scaled_msk_strain_score`, etc.
|
|
2450
|
-
- **MCI survey** (`PUT /health-service/v1/hormonal-insights/settings/mci/survey`): `{contraception_type, interest, last_period_date_range:[[Y,M,D],…], symptoms:["177",…] (stringified behavior IDs), typical_cycle_length}`.
|
|
2451
|
-
- **Cycle log** (`PUT /…/menstrual-cycle-insights/log`): `{period_logs:[{date:[Y,M,D], period:{answered_yes, magnitude_input_value}, ovulation:{…}}]}` — date as a 3-int array.
|
|
2452
|
-
- **Profile PUT** (`PUT /profile-service/v1/profile`): a near-complete body is required (too partial → 422); birthday `YYYY-MM-DD` (ISO datetime → 400); enums UPPERCASE; weight in **kg**, height in **m** regardless of `unit_system`.
|
|
2453
|
-
- **Behaviors reorder** (`PUT /activities-service/v1/journals/behaviors/user`): a bare JSON array of ~308 behavior IDs in display order.
|
|
2454
|
-
|
|
2455
|
-
`during` fields are PostgreSQL range literals: `"['<start_iso>','<end_iso>')"` (half-open). Set timestamps in `whoop_lift_log` default to a 100 ms placeholder range per set; Whoop accepts it.
|
|
2456
|
-
|
|
2457
|
-
---
|
|
2458
|
-
|
|
2459
|
-
## Discovery scripts
|
|
2460
|
-
|
|
2461
|
-
The reverse-engineering pipeline (archived separately, **not shipped** — the raw `.mitm` captures contain personal tokens):
|
|
2462
|
-
|
|
2463
|
-
1. `mitmproxy --listen-port 8080 --set save_stream_file=flows.mitm`; iPhone Wi-Fi proxy → the Mac; mitmproxy's CA trusted on the phone. (Whoop's iOS app does **not** pin certs — the single reason any of this works.)
|
|
2464
|
-
2. `dump_combined.py` walks all three captures and dedups by `(method, templated_path, body_signature, status)`, skipping pure-telemetry services. The two load-bearing pieces:
|
|
2465
|
-
|
|
2466
|
-
```python
|
|
2467
|
-
def templatize(p):
|
|
2468
|
-
p = re.sub(r"/conversation/[^/?]+", "/conversation/{conversation_id}", p)
|
|
2469
|
-
p = re.sub(r"/exercise/[A-Z][A-Z0-9]*_[A-Z0-9_]+", "/exercise/{exercise_id}", p)
|
|
2470
|
-
p = re.sub(r"/trends/[A-Z][A-Z0-9_]+", "/trends/{metric}", p)
|
|
2471
|
-
p = re.sub(r"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}", "{uuid}", p, flags=re.I)
|
|
2472
|
-
p = re.sub(r"\b\d{4}-\d{2}-\d{2}\b", "{date}", p)
|
|
2473
|
-
p = re.sub(r"/\d{6,}", "/{id}", p)
|
|
2474
|
-
# ...plus offset / limit / level / id query params -> placeholders
|
|
2475
|
-
return p
|
|
2476
|
-
|
|
2477
|
-
def body_signature(body): # the dedup key's body component
|
|
2478
|
-
# JSON dict -> sorted top-level keys; list -> "array[N]"; binary -> "binary"; empty -> "empty"
|
|
2479
|
-
...
|
|
2480
|
-
```
|
|
330
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
331
|
+
|---|---|---|---|---|
|
|
332
|
+
| POST | `/smart-alarm-bff/v1/schedule` | verified | whoop_smart_alarm_set | Create; steals overlapping days; turns master switch on; returns rows ([0].schedule_id) |
|
|
333
|
+
| GET | `/smart-alarm-bff/v1/schedule/components` | verified | whoop_smart_alarm_set | enum source: alarm_mode_value, sleep_goal_value; wake_time says 'Alarm will vibrate between %s - %s' for IN_THE_GREEN and SLEEP_GOAL only |
|
|
334
|
+
| GET | `/smart-alarm-bff/v1/schedule/components/populated/{id}` | verified-quirky | – | sleep_goal toggle_selected ALWAYS PEAK (PR #39 relies on it wrongly) |
|
|
335
|
+
| PUT | `/smart-alarm-bff/v1/schedule/{id}` | verified | whoop_smart_alarm_set | In-place edit (upsert; [] days clears). On damaged account: saves rows then 500. |
|
|
336
|
+
| GET | `/smart-alarm-service/v1/alarm-schedule` | verified | whoop_smart_alarm, whoop_smart_alarm_set | SOURCE OF TRUTH: rows {schedule_id, day_of_week, upper_time_bound HH:MM:SS, goal (incl. SLEEP_HEALTH_*), enabled, deleted}; works during damage |
|
|
337
|
+
| DELETE | `/smart-alarm-service/v1/alarm-schedule/{id}` | verified | whoop_smart_alarm_set | 204 idempotent |
|
|
338
|
+
| GET | `/smart-alarm-service/v1/alarm-schedule/{id}` | verified | whoop_smart_alarm_set | rows for one schedule; [] if unknown/empty |
|
|
339
|
+
| GET | `/smart-alarm-service/v1/user-info/default-wake-window` | verified | whoop_smart_alarm | Android route (@Acetone1). {default_wake_window_minutes} (60). IN_THE_GREEN and SLEEP_GOAL buzz between the latest wake time minus this and the latest wake time. |
|
|
340
|
+
|
|
341
|
+
Don't use:
|
|
342
|
+
|
|
343
|
+
| Method | Path | Verdict | Notes |
|
|
344
|
+
|---|---|---|---|
|
|
345
|
+
| GET | `/smart-alarm-bff/v1/preferences` | not-found | 404 (PUT too) |
|
|
346
|
+
| GET | `/smart-alarm-bff/v1/schedule/all` | server-error-500 | Verified before damage; now 500. alarm_mode lossy (disabled → NO_ALARM), no sleep_goal, 12-h display time |
|
|
347
|
+
| DELETE | `/smart-alarm-bff/v1/schedule/{id}` | not-found | 405 |
|
|
348
|
+
| PUT | `/smart-alarm-service/v1/alarm-schedule/disable` | server-error-500 | Verified 204 before damage (prefs schedule_enabled:false, enabled:false); now 500 |
|
|
349
|
+
| PUT | `/smart-alarm-service/v1/alarm-schedule/enable` | server-error-500 | Verified 204 before damage (re-derives prefs from next day); now 500 |
|
|
350
|
+
| GET | `/smart-alarm-service/v1/smartalarm/preferences` | server-error-500 | Verified before damage (next-alarm object); 500 since 02:40:33Z |
|
|
351
|
+
| POST | `/smart-alarm-service/v1/smartalarm/preferences` | not-found | 405 (DELETE too) |
|
|
352
|
+
| PUT | `/smart-alarm-service/v1/smartalarm/preferences` | server-error-500 | Verified for 7 safe goals before damage; ALARM_OFF_PEAK / EXACT_TIME_WEEKLY_PLAN / EXACT_TIME_SLEEP_HOURS broke the account. SAFE GOALS ONLY; never weekly_plan_goal/default. |
|
|
353
|
+
| POST | `/smart-alarm-service/v1/smartalarm/wbl` | exists-but-unclear | BLE alarm telemetry; only [] sent; don't wrap |
|
|
354
|
+
| GET | `/smart-alarm-service/v1/strap-status` | not-found | 405 |
|
|
355
|
+
| PUT | `/smart-alarm-service/v1/strap-status` | blocked-by-policy | App pushes alarm time to strap here; blocked; totem can't send it → alarms sync only via the app |
|
|
356
|
+
| GET | `/smart-alarm-service/v1/smartalarm/poll` | server-error-500 | Android route (@Acetone1). 500 on the test account, whose alarm preferences 500 too. |
|
|
357
|
+
| PATCH | `/smart-alarm-service/v1/smartalarm/preferences/timezone` | server-error-500 | Android route (@Acetone1). {time_zone_offset: profile offset} answered 500 on the test account (preferences already broken); stopped there. Untested on a healthy account. |
|
|
358
|
+
| PUT | `/smart-alarm-service/v1/smartalarm/override` | not-exercised | Android route (@Acetone1). Not sent: the test account's alarm preferences 500, so there was no value to restore. |
|
|
359
|
+
|
|
360
|
+
### Milestones and streaks
|
|
361
|
+
|
|
362
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
363
|
+
|---|---|---|---|---|
|
|
364
|
+
| GET | `/achievements-service/v1/progression` | verified | – | static 2021 level table, not user progress. Don't use. |
|
|
365
|
+
| GET | `/milestones-service/v1/bff/milestones/hub` | verified | whoop_milestones | counts + tag grids (all, sleep, recovery, strain, healthspan, other, activities) |
|
|
366
|
+
| GET | `/milestones-service/v1/bff/milestones/{type}/details` | verified | whoop_milestones | progress card + earned grid; unknown type → 400 text |
|
|
367
|
+
| GET | `/milestones-service/v1/bff/milestones/{type}/pill` | verified | – | lottie pill + count |
|
|
368
|
+
| GET | `/streaks-service/v1/bff/streaks/data-streak` | verified | whoop_milestones | streak detail (started, max, week tracker) |
|
|
369
|
+
| GET | `/streaks-service/v1/bff/streaks/data-streak/share` | verified | – | share assets |
|
|
370
|
+
| GET | `/streaks-service/v1/streaks/data-streak` | verified | whoop_milestones | {streak_value, streak_state} |
|
|
371
|
+
|
|
372
|
+
### Profile and settings
|
|
373
|
+
|
|
374
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
375
|
+
|---|---|---|---|---|
|
|
376
|
+
| GET | `/home-service/v2/home/dashboard/customize` | verified | whoop_preferences, whoop_preferences_set | gauge_metrics[4] (0 RECOVERY, 2 DAY_STRAIN fixed), pinned/unpinned sections |
|
|
377
|
+
| POST | `/hr-zones-service/v1/bff/custom` | verified | whoop_hr_zones_set | 5 contiguous zones (gap/overlap → 400 'Invalid custom zones submitted'; 4 zones → 422); Z5 max clamped; reset = defaults + is_custom:false |
|
|
378
|
+
| GET | `/hr-zones-service/v1/bff/settings` | verified | whoop_profile, whoop_hr_zones_set | is_custom = manual_heart_rate_zones_form.toggle_value; zone_rows effective; default_hr_zones for reset |
|
|
379
|
+
| GET | `/hr-zones-service/v1/bff/zones` | verified | whoop_profile, whoop_hr_zones_set | zones ZONE_0..5; NO is_custom |
|
|
380
|
+
| POST | `/hr-zones-service/v1/maxhr` | verified | whoop_hr_zones_set | 200 zones (HRR); 100/221/230 → 400; keeps custom zones but response shows defaults |
|
|
381
|
+
| GET | `/notification-service/v1/notifications/user-settings/bff` | verified | whoop_preferences, whoop_preferences_set | settings[{push_namespace StressSummary\|GPS\|ConversationalCheckIn\|CheckIn, active}] |
|
|
382
|
+
| PUT | `/notification-service/v1/notifications/user-settings/block/namespace` | verified | whoop_preferences_set | block; idempotent; case-sensitive (unknown → 400 'Namespace does not exist') |
|
|
383
|
+
| DELETE | `/notification-service/v1/notifications/user-settings/block/namespace/{ns}` | verified | whoop_preferences_set | unblock; unknown ns → 200 no-op |
|
|
384
|
+
| PUT | `/profile-service/v1/profile` | verified | whoop_profile_update | Full replace → true / false (rejected). Omit city clears; omit baseline keeps; state required for US; gender MALE\|FEMALE\|NON_BINARY\|PREFER_NOT; birthday/country invalidate session. |
|
|
385
|
+
| GET | `/profile-service/v1/profile/bff/edit` | verified | whoop_profile, whoop_profile_update | MERGE SOURCE: every PUT field in PUT format + locked_fields, countries, UI bounds |
|
|
386
|
+
| PUT | `/user-preferences-service/v1/home/dashboard/customize` | verified | whoop_preferences_set | 204; exactly 2 gauges (omit → reset to HRV+SLEEP_PERFORMANCE); pinned full ordered replace |
|
|
387
|
+
| DELETE | `/users-service/v1/hidden-metrics/{metric}` | verified | whoop_preferences_set | show; 204 idempotent |
|
|
388
|
+
| GET | `/users-service/v1/hidden-metrics/{metric}` | verified | whoop_profile | {is_hidden}; no server enum |
|
|
389
|
+
| POST | `/users-service/v1/hidden-metrics/{metric}` | verified | whoop_preferences_set | hide; 204 idempotent; any string accepted → allow BODY_COMP\|HEALTHSPAN only |
|
|
390
|
+
| GET | `/users-service/v1/stealth-mode` | verified | whoop_profile | bare JSON boolean |
|
|
391
|
+
| PUT | `/users-service/v1/stealth-mode` | verified | whoop_preferences_set | {enabled:true} or bare false → bare boolean |
|
|
392
|
+
| POST | `/users-service/v1/users/preferences/time` | verified | whoop_preferences_set | clock_format write; same values → existing row. Never change timezone. |
|
|
393
|
+
| PUT | `/users-service/v1/users/profile/offset` | verified | – | ZoneOffset parse; same-value write only; not for tools |
|
|
394
|
+
| GET | `/users-service/v2/bootstrap` | verified | whoop_profile, (client: unit helper, init_timezone), whoop_community, whoop_preferences_set, whoop_weight_log | physiological_baseline always null; gender display strings; profile.weight follows latest weight reading |
|
|
395
|
+
| GET | `/users-service/v2/bootstrap/{account\|user\|membership}` | verified | – | sub-resources |
|
|
396
|
+
|
|
397
|
+
Don't use:
|
|
398
|
+
|
|
399
|
+
| Method | Path | Verdict | Notes |
|
|
400
|
+
|---|---|---|---|
|
|
401
|
+
| GET | `/notification-service/v1/notifications/user-settings` | not-found | 404 (block/namespace GET → 405) |
|
|
402
|
+
| GET | `/users-service/v1/hidden-metrics` | not-found | 404 |
|
|
403
|
+
| GET | `/users-service/v1/users/preferences/time` | service-only-401 | 401 even after refresh (499cba4b) |
|
|
404
|
+
|
|
405
|
+
### Privacy
|
|
406
|
+
|
|
407
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
408
|
+
|---|---|---|---|---|
|
|
409
|
+
| GET | `/privacy-service-bff/v1/community/privacy/activity-summary` | verified | – | 163 KB |
|
|
410
|
+
| GET | `/privacy-service-bff/v1/screen/community` | verified | – | 230 KB BFF with PUT templates; too heavy |
|
|
411
|
+
| GET | `/privacy-service/v1/community/privacy/settings` | verified | whoop_profile | best read; sleep/recovery/strain composite strings (no_one, no_one_no_daily_stats, friends_no_daily_stats, friends_no_trends, friends_score_only) |
|
|
412
|
+
| PUT | `/privacy-service/v1/community/privacy/settings/{setting}` | verified | – | verified for sleep/recovery/searchable; not wrapped in v2.0 (D13); missing version → 422 |
|
|
413
|
+
| GET | `/privacy-service/v1/user_privacy_settings` | verified | – | {searchable, mutual_community_sharing, allow_recommendation}; trailing slash optional |
|
|
414
|
+
|
|
415
|
+
Don't use:
|
|
416
|
+
|
|
417
|
+
| Method | Path | Verdict | Notes |
|
|
418
|
+
|---|---|---|---|
|
|
419
|
+
| GET | `/privacy-service/v1/community/privacy` | not-found | 404 |
|
|
420
|
+
| PUT | `/privacy-service/v1/community/privacy/settings/access_*` | blocked-by-policy | consents; never wrap |
|
|
421
|
+
|
|
422
|
+
### Integrations
|
|
423
|
+
|
|
424
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
425
|
+
|---|---|---|---|---|
|
|
426
|
+
| GET | `/integrations-bff/v1/integrations/discovery` | verified | whoop_profile | 11 integrations {id, reporting_key, connected} |
|
|
427
|
+
| GET | `/integrations-bff/v1/integrations/{id}/details` | verified | whoop_profile | strava → 500, apple-health → 404. STRIP connection_url (live OAuth + state nonce) |
|
|
428
|
+
| GET | `/integrations-bff/v2/integrations/{id}/details` | verified | whoop_profile | peloton and zwift only; connection_sections; strip cta_connection_url |
|
|
429
|
+
| GET | `/social-service/v1/strava/bff/settings` | verified | whoop_profile | state; strip authorization URLs |
|
|
430
|
+
|
|
431
|
+
### Community
|
|
432
|
+
|
|
433
|
+
Seen working in the captures (the probe skipped these):
|
|
434
|
+
|
|
435
|
+
| Method | Path | Used by | Notes |
|
|
436
|
+
|---|---|---|---|
|
|
437
|
+
| GET | `/community-service/v1/communities/memberships` | whoop_community | Probes excluded social; capture says works. Own memberships only (D9). |
|
|
438
|
+
| GET | `/community-service/v1/leaderboards/communities/{communityId}/{window}/{metric}/{kind}` | whoop_community | Probes excluded social; capture 200×109 (404×89: no data in the window). A community's full ranking, paged by offset and limit; window is a date or average/week\|month (averages add startDate, endDate, includeCompliance, complianceCutoff). Other people's names and scores: read live, never cached (D9). |
|
|
439
|
+
| GET | `/community-service/v1/leaderboards/communities/{communityId}/{window}/{metric}/{kind}/user/{own_user_id}` | whoop_community | Your own row on that board (404 when you have no data in the window); whoop_community shows it beside the full ranking. |
|
|
440
|
+
| GET | `/followers-service/v1/badging` | – | Probes excluded social; capture 200×10. {show_community_badge}. |
|
|
441
|
+
| GET | `/followers-service/v1/followers-home/following` | whoop_community | Probes excluded social; capture 200×3. The people you follow, with the scores each shares with you: read live, never cached (D9). |
|
|
442
|
+
| GET | `/followers-service/v1/followers-home/manage/FOLLOWING` | – | Probes excluded social; capture 200×10. The manage-following screen's list. |
|
|
443
|
+
| POST | `/followers-service/v1/following/{user_id}` | – | Probes excluded social; capture 200×53. Follow someone. A social write: whoop_raw only (D9). |
|
|
444
|
+
| GET | `/followers-service/v1/moments/preview` | – | Probes excluded social; capture 200×3. An activity's share preview. |
|
|
445
|
+
| GET | `/followers-service/v1/onboarding` | – | Probes excluded social; capture 200×2. The follow-onboarding screen. |
|
|
446
|
+
| PUT | `/followers-service/v1/onboarding` | – | Probes excluded social; capture 200×1. Who can follow you. A social write: whoop_raw only (D9). |
|
|
447
|
+
| GET | `/followers-service/v1/snapshots/daily/{user_id}` | whoop_community | Probes excluded social; capture 200×14 (404×81: they share nothing with you). One person's daily scores: read live, never cached (D9). |
|
|
448
|
+
| GET | `/followers-service/v1/snapshots/{snapshot_id}/comments` | whoop_community | Probes excluded social; capture 200×10. Comments on a snapshot: read live, never cached (D9). |
|
|
449
|
+
|
|
450
|
+
### Health Monitor and the paid health features
|
|
451
|
+
|
|
452
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
453
|
+
|---|---|---|---|---|
|
|
454
|
+
| GET | `/advanced-labs-service/v1/advanced-labs` | verified | – | upsell-only BFF without results; no whoop_labs in v2.0 |
|
|
455
|
+
| GET | `/metrics-service/v1/metrics/user/{user_id}` | verified | whoop_day, whoop_now | continuous heart rate {values:[{time ms, data bpm}]}, sparse (holes, no padding); step must be 6, 60 or 600 (else 400); any window; another user's id → 403 |
|
|
456
|
+
| GET | `/healthspan-service/v1/healthspan/bff` | verified | whoop_health | Android route (@Acetone1). ?date=. {unlocked_content, locked_content}; locked on the test account ('21 SLEEPS TO UNLOCK'). Unlocked shape seen on a second real account (2026-11-22): whoop_age_amoeba / previous_whoop_age_amoeba (age, years vs actual age, pace of aging), date_picker range, and TILE_SECTION > CONTRIBUTORS_CONTAINER contributors (6 month avg, 30 day avg, impact in years). whoop_health projects those. |
|
|
457
|
+
| GET | `/healthspan-service/v1/widget` | verified | – | Android route (@Acetone1). {amoeba, locked_content}; locked on the test account. |
|
|
458
|
+
| GET | `/sage-service/v1/sage/bff` | verified | whoop_health | Android route (@Acetone1). ?date=. Blood Pressure Insights, same locked/unlocked shape; locked ('UPGRADE FOR ACCESS', WHOOP Life). |
|
|
459
|
+
| GET | `/sage-service/v1/sage/manual/input` | verified | – | Android route (@Acetone1). Manual blood pressure screens (guidelines, reading input). |
|
|
460
|
+
| GET | `/advanced-labs-service/v1/advanced-labs/biomarkers/summary` | verified | whoop_health | Android route (@Acetone1). Pie chart plus SEARCHABLE_BIOMARKERS_LIST biomarkers[{id, title, value, unit, status_type}]: 100 rows, all '--' and UNAVAILABLE without results (46 KB). |
|
|
461
|
+
| GET | `/advanced-labs-service/v1/advanced-labs/tests/history` | verified | whoop_health | Android route (@Acetone1). Lab History; one empty-tile section without tests. |
|
|
462
|
+
| GET | `/arrhythmia-service/v2/afibhistory/screen` | verified | whoop_health | Android route (@Acetone1). 404 'No anf user found' until irregular rhythm notifications are set up (also /v2/settings). |
|
|
463
|
+
| GET | `/arrhythmia-service/v1/about` | verified | – | Android route (@Acetone1). Static regulatory page. The Android list has no read route for ECG readings. |
|
|
464
|
+
| GET | `/advanced-labs-service/v1/advanced-labs/biomarkers/{biomarker_id}` | verified | whoop_health | Android route (@Acetone1). ?next_token=. {navigation_title, header{title, subtitle, pills}, sections, status}; without results status UNAVAILABLE with an Add Lab Results tile (seen live); an unknown id is 404. Filled-in shape unseen. |
|
|
465
|
+
| GET | `/ecg-service/v1/ecg/about` | verified | – | Android route (@Acetone1). {page_title, information_items[{info_label, info_value}]}: the ECG feature's regulatory facts. The Android list has no route that reads ECG recordings. |
|
|
466
|
+
|
|
467
|
+
Don't use:
|
|
468
|
+
|
|
469
|
+
| Method | Path | Verdict | Notes |
|
|
470
|
+
|---|---|---|---|
|
|
471
|
+
| GET | `/arrhythmia-service/v2/afibhistory/paginated` | not-exercised | Android route (@Acetone1). ?next_token=. The next page of AFib history. Used by whoop_health (experimental); never seen filled in: no test account has the feature. |
|
|
472
|
+
| GET | `/arrhythmia-service/v1/history/bff` | not-exercised | Android route (@Acetone1). ?historyDate=. One day of AFib history. Used by whoop_health (experimental); never seen filled in: no test account has the feature. |
|
|
473
|
+
| GET | `/advanced-labs-service/v1/advanced-labs/tests/{test_id}` | not-exercised | Android route (@Acetone1). One lab test's results; an unknown id is 404. Used by whoop_health (experimental); never seen filled in: no test account has the feature. |
|
|
474
|
+
| GET | `/advanced-labs-service/v1/advanced-labs/insights` | not-exercised | Android route (@Acetone1). ?testId=. Insights for one lab test. Used by whoop_health (experimental); never seen filled in: no test account has the feature. |
|
|
475
|
+
|
|
476
|
+
### Developer API (the public API's v2 paths, readable with an app token)
|
|
477
|
+
|
|
478
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
479
|
+
|---|---|---|---|---|
|
|
480
|
+
| GET | `/developer/v2/activity/sleep` | verified | – | 200 records:[] (only scored records; account has none); shape unverified live |
|
|
481
|
+
| GET | `/developer/v2/activity/workout` | verified | – | Works with web token but OMITS pending/incomplete cardio; RECOVERY as SCORED score:null; app never calls it. Off by default (D1). |
|
|
482
|
+
| GET | `/developer/v2/cycle` | verified | – | cycle records incl. undocumented step_count |
|
|
483
|
+
| GET | `/developer/v2/recovery` | verified | – | 200 records:[]; shape unverified live |
|
|
484
|
+
| GET | `/developer/v2/user/measurement/body` | verified | – | {height_meter, weight_kilogram, max_heart_rate} |
|
|
485
|
+
| GET | `/developer/v2/user/profile/basic` | verified | – | {user_id, email, first_name, last_name} |
|
|
2481
486
|
|
|
2482
|
-
|
|
2483
|
-
3. The deduped `all.txt` was split into 12 chunks; a single Opus pass over it produced the per-service brief that became this document.
|
|
487
|
+
Don't use:
|
|
2484
488
|
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
## Error message catalog
|
|
2490
|
-
|
|
2491
|
-
Specific error messages observed across the API, with the exact wire-level body text. Helpful when triaging a 4xx in the future.
|
|
2492
|
-
|
|
2493
|
-
### 400 errors
|
|
2494
|
-
|
|
2495
|
-
**Profile invalid country+state combo:**
|
|
2496
|
-
```json
|
|
2497
|
-
{"code": 400, "message": "Invalid state for country", "location": "line 1, column 73"}
|
|
2498
|
-
```
|
|
2499
|
-
Seen on `PUT /profile-service/v1/profile` with `country: "AS"` and `state: "AL"`.
|
|
2500
|
-
|
|
2501
|
-
**Profile invalid gender enum:**
|
|
2502
|
-
```json
|
|
2503
|
-
{"code": 400, "message": "Cannot deserialize value of type `com.whoop.users.models.v1.Gender` from String \"male\": not one of the values accepted for Enum class: [MALE, FEMALE, NON_BINARY, PREFER_NOT]"}
|
|
2504
|
-
```
|
|
2505
|
-
Seen on `PUT /profile-service/v1/profile` with lowercase `gender`. Whoop's GET returns lowercase, PUT requires uppercase.
|
|
2506
|
-
|
|
2507
|
-
**Profile invalid birthday:**
|
|
2508
|
-
```json
|
|
2509
|
-
{"code": 400, "message": "Valid birthday (YYYY-MM-DD) is required"}
|
|
2510
|
-
```
|
|
2511
|
-
Seen on `PUT /profile-service/v1/profile` with ISO datetime birthday like `"1990-01-01T00:00:00.000Z"`. The PUT only accepts date-only format.
|
|
2512
|
-
|
|
2513
|
-
**MCI invalid contraception_type:**
|
|
2514
|
-
```json
|
|
2515
|
-
{"code": 400, "message": "Cannot deserialize value of type `com.whoop.health.models.v1.hormonalinsights.ContraceptionType` from String \"IUD\": not one of the values accepted for Enum class: [VAGINAL_RING, ARM_IMPLANT, HORMONAL_IUD, INJECTION, NONE, PILL, NON_HORMONAL_IUD, PATCH]"}
|
|
2516
|
-
```
|
|
2517
|
-
Seen on `PUT /health-service/v1/hormonal-insights/settings/mci/survey`.
|
|
2518
|
-
|
|
2519
|
-
**MCI invalid interest:**
|
|
2520
|
-
```json
|
|
2521
|
-
{"code": 400, "message": "Cannot deserialize value of type `com.whoop.health.models.v1.hormonalinsights.settings.MCIInterest` from String \"TRACK_CYCLE\": not one of the values accepted for Enum class: [SUPPORT_REPRODUCTIVE_HEALTH_GOALS, OTHER_OR_NONE_OF_THE_ABOVE, MANAGE_HORMONAL_CONDITION, AVOID_PREGNANCY, ...]"}
|
|
2522
|
-
```
|
|
2523
|
-
(Truncated; there are at least 4 values.)
|
|
2524
|
-
|
|
2525
|
-
**Cycle endpoint requires contraception_type:**
|
|
2526
|
-
```json
|
|
2527
|
-
{"code": 400, "message": "User has no contraception status"}
|
|
2528
|
-
```
|
|
2529
|
-
Seen on `GET /womens-health-service/v1/menstrual-cycle-insights`. The user must run the MCI survey first.
|
|
2530
|
-
|
|
2531
|
-
**Create-activity malformed timestamps:**
|
|
2532
|
-
```json
|
|
2533
|
-
{"code": 400, "message": "Invalid start_time", "location": "line 1, column 31"}
|
|
2534
|
-
```
|
|
2535
|
-
Seen on `POST /core-details-bff/v2/create-activity` with `"May 25, 2026"`-style human dates. Must be ISO.
|
|
2536
|
-
|
|
2537
|
-
**Workout list limit too high:**
|
|
2538
|
-
```json
|
|
2539
|
-
{"errors": ["query param limit must be less than or equal to 25"]}
|
|
2540
|
-
```
|
|
2541
|
-
Seen on `GET /developer/v2/activity/workout?limit=50`. Cap is 25.
|
|
2542
|
-
|
|
2543
|
-
**Workout detail on pending activity:**
|
|
2544
|
-
```json
|
|
2545
|
-
{"code": 400, "message": "Cannot view activity details for a pending activity"}
|
|
2546
|
-
```
|
|
2547
|
-
Seen on `GET /core-details-bff/v1/cardio-details?activityId={just-created}`. Whoop hasn't computed the score yet; need to wait or query a different (scored) activity.
|
|
2548
|
-
|
|
2549
|
-
### 401 errors
|
|
2550
|
-
|
|
2551
|
-
**Access token expired:**
|
|
2552
|
-
```json
|
|
2553
|
-
{"__type": "NotAuthorizedException", "message": "Access Token has expired"}
|
|
2554
|
-
```
|
|
2555
|
-
Returned by the Cognito proxy on `GetUser` calls with stale tokens. The MCP's TokenManager catches this and refreshes.
|
|
2556
|
-
|
|
2557
|
-
**Refresh token expired:**
|
|
2558
|
-
```json
|
|
2559
|
-
{"__type": "NotAuthorizedException", "message": "Refresh Token has expired"}
|
|
2560
|
-
```
|
|
2561
|
-
After ~30 days. Re-bootstrap is required.
|
|
2562
|
-
|
|
2563
|
-
**Bad password:**
|
|
2564
|
-
```json
|
|
2565
|
-
{"__type": "NotAuthorizedException", "message": "Incorrect username or password."}
|
|
2566
|
-
```
|
|
2567
|
-
|
|
2568
|
-
### 404 errors
|
|
2569
|
-
|
|
2570
|
-
**Feature not enabled:**
|
|
2571
|
-
Empty body. Seen on `GET /growth-content-service/v1/advanced-labs/management/menu-item` for users without Advanced Labs.
|
|
2572
|
-
|
|
2573
|
-
**User not in leaderboard window:**
|
|
2574
|
-
Empty body. Seen on `GET /community-service/v1/leaderboards/.../user/{user_id}` when the user has no data point in that window.
|
|
2575
|
-
|
|
2576
|
-
**Strap pairing already aligned:**
|
|
2577
|
-
Empty body. Seen on `GET /membership-service/v2/straps/pairing-adjustment` when no adjustment is needed.
|
|
2578
|
-
|
|
2579
|
-
**Stress upload deprecated:**
|
|
2580
|
-
Empty body. Seen on `POST /health-service/v2/stress-bff?timestamp=...`. The endpoint is likely deprecated; uploads happen via `/metrics-service/v1/metrics` now.
|
|
2581
|
-
|
|
2582
|
-
### 409 errors
|
|
2583
|
-
|
|
2584
|
-
**Workout time conflict:**
|
|
2585
|
-
```
|
|
2586
|
-
Client exception, status code: 409
|
|
2587
|
-
```
|
|
2588
|
-
Seen on `POST /weightlifting-service/v2/weightlifting-workout/activity` with a time range overlapping an existing workout.
|
|
2589
|
-
|
|
2590
|
-
### 422 errors
|
|
2591
|
-
|
|
2592
|
-
Body usually empty. Seen on:
|
|
2593
|
-
- `POST /weightlifting-service/v2/weightlifting-workout/activity` when `exercise_details.created_at` or `updated_at` are empty strings.
|
|
2594
|
-
- `PUT /profile-service/v1/profile` when the body is too partial (Whoop expects a near-complete profile).
|
|
2595
|
-
- `POST /core-details-bff/v0/create-activity` when duration is < 1 minute.
|
|
2596
|
-
|
|
2597
|
-
### 428 errors
|
|
2598
|
-
|
|
2599
|
-
**Precondition missing:**
|
|
2600
|
-
```json
|
|
2601
|
-
{"code": 428, "message": "Precondition required"}
|
|
2602
|
-
```
|
|
2603
|
-
Seen once on `GET /membership?useReplica=true`. Likely missing an `If-Match` header.
|
|
2604
|
-
|
|
2605
|
-
### 500 errors
|
|
2606
|
-
|
|
2607
|
-
**Behavior impact for stale UUID:**
|
|
2608
|
-
```
|
|
2609
|
-
This is usually transient — try again in 30s.
|
|
2610
|
-
```
|
|
2611
|
-
Whoop returns 500 (not 404) on `GET /behavior-impact-service/v2/impact/details/{uuid}` when the UUID is from a different account or impact data has been purged. Should be a 404; isn't.
|
|
2612
|
-
|
|
2613
|
-
---
|
|
2614
|
-
|
|
2615
|
-
## Sports / activity-types catalog
|
|
2616
|
-
|
|
2617
|
-
Two related lists: the v2 `/activities-service/v2/activity-types` catalog (**197** records, keyed by `internal_name`) and the v1 `/activities-service/v1/sports/history?countryCode=US` list (**203** entries, keyed by numeric `sport_id`). The MCP bundles the v1 numeric mapping in [`src/data/sports.ts`](src/data/sports.ts), searchable via `whoop_sports_catalog`; `whoop_activity_create` takes a numeric `sport_id`. The `sport_id` ↔ `internal_name` mapping is held client-side by the iOS app and not exposed via the API.
|
|
2618
|
-
|
|
2619
|
-
v2 catalog breakdown — category: cardiovascular (109), restorative (33), muscular (32), non-cardiovascular (21), sleep (2). `score_type`: CARDIO (162), RECOVERY (33), SLEEP (2). GPS-enabled: 72/197. MSK-linkable (can tie to a Strength Trainer session): 9/197.
|
|
2620
|
-
|
|
2621
|
-
Verified numeric `sport_id` → name (full list in `src/data/sports.ts`): `-1` Activity (generic) · `0` Running · `1` Cycling · `17` Basketball · `33` Swimming · `45` Weightlifting · `48` Functional Fitness · `52` Hiking · `63` Walking · `123` Strength Trainer.
|
|
2622
|
-
|
|
2623
|
-
---
|
|
2624
|
-
|
|
2625
|
-
## Feature-education + overlay flags
|
|
2626
|
-
|
|
2627
|
-
`GET /onboarding-service/v1/feature-education-state?userId={id}` (15 KB) and `/onboarding-service/v1/overlay/all` (15 KB) return objects whose **top-level keys are feature / overlay names** — each value encodes whether the user has dismissed that teach-me modal. ~159 education flags + ~141 content articles + 22 overlays were observed. Representative keys: `PAIRING_MODE_EDUCATION`, `METABOLIC_HEALTH`, `ADVANCED_LABS_LH_CYCLE_RANGES`, `DATA_STREAK_MILESTONE_UNLOCK_EDUCATION`, `OVERLAY_HEALTH_TAB`, `OVERLAY_HOME_DEEP_DIVES_STRAIN`, `OVERLAY_STRENGTH_BUILDER_WORKOUT_BUILDER`. Marked complete via `PUT /onboarding-service/v1/feature-education-state` `{feature_education_id, completed:true}`. None are wrapped — pure onboarding state.
|
|
2628
|
-
|
|
2629
|
-
---
|
|
2630
|
-
|
|
2631
|
-
## Journal behavior catalog
|
|
2632
|
-
|
|
2633
|
-
All **308** active behaviors are bundled in [`src/data/behaviors.ts`](src/data/behaviors.ts) and searchable via `whoop_journal_catalog` (filter by category / magnitude type / name). Each entry: `{behavior_tracker_id, title, question, internal_name, category, magnitude}`. Integer IDs span 1–398 (gaps where Whoop deleted experimental behaviors).
|
|
2634
|
-
|
|
2635
|
-
By category: Drugs & Medication (24), Health & Symptoms (44), Hormonal Health (43), Lifestyle (33), Mental Wellbeing (28), Nutrition (41), Recovery (35), Sleep & Circadian Health (33), Supplements (27).
|
|
2636
|
-
|
|
2637
|
-
`magnitude` is one of `bare` (just "did it"), `boolean` (yes/no), or `magnitude` (numeric value + label). Sample: `1` → alcohol (boolean), `80` → hydration ("22 oz", magnitude), `145` → calories ("1800 cal", magnitude). Full list: the `BEHAVIORS` array in `src/data/behaviors.ts`.
|
|
2638
|
-
|
|
2639
|
-
---
|
|
2640
|
-
|
|
2641
|
-
## Strength Trainer exercise catalog
|
|
2642
|
-
|
|
2643
|
-
All **372** official exercises are bundled in [`src/data/exercises.ts`](src/data/exercises.ts) and searchable via `whoop_lift_catalog` (filter by muscle / equipment / movement_pattern / laterality / name). Each entry: `{exercise_id, name, muscle_groups, primary_muscle, equipment, movement_pattern, laterality}`.
|
|
2644
|
-
|
|
2645
|
-
By primary muscle group: ARMS (27), BACK (36), CHEST (23), CORE (50), FULL_BODY (35), LEGS (157), OTHER (3), SHOULDERS (41).
|
|
2646
|
-
|
|
2647
|
-
Sample: `BENCHPRESS_BARBELL` → Bench Press - Barbell (CHEST · BARBELL · HORIZONTAL_PRESS), `DEADLIFT_BARBELL` → Deadlift - Barbell, `LATPULLDOWNFRONT_PULLEYMACHINE` → Lat Pulldown. IDs are upper-snake-case with original punctuation preserved (`ASSISTED_PULL_UPS_(BAND)`, `BAR-FACING_BURPEES_(LATERAL)`). Full list: the `EXERCISES` array in `src/data/exercises.ts`.
|
|
2648
|
-
|
|
2649
|
-
---
|
|
489
|
+
| Method | Path | Verdict | Notes |
|
|
490
|
+
|---|---|---|---|
|
|
491
|
+
| GET | `/developer/v2/activity/workout/{id}` | not-found | 404 |
|
|
2650
492
|
|
|
2651
|
-
|
|
493
|
+
### Sign-in
|
|
2652
494
|
|
|
2653
|
-
|
|
495
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
496
|
+
|---|---|---|---|---|
|
|
497
|
+
| POST | `/auth-service/v3/whoop/` | decided | (client: token_manager) | Cognito proxy. x-amz-target AWSCognitoIdentityProviderService.InitiateAuth, AuthFlow REFRESH_TOKEN_AUTH, ClientId 37365lrcda1js3fapqfe2n40eh. Refresh token rotates every call: persist before use. USER_PASSWORD_AUTH needs |
|
|
2654
498
|
|
|
2655
|
-
|
|
2656
|
-
GET 200 /home-service/v1/home?date={date}
|
|
2657
|
-
GET 200 /home-service/v1/deep-dive/recovery?date={date}
|
|
2658
|
-
GET 200 /home-service/v1/deep-dive/sleep/last-night?date={date}
|
|
2659
|
-
POST 200 /core-details-bff/v0/create-activity
|
|
2660
|
-
GET 200 /weightlifting-service/v3/prs
|
|
2661
|
-
POST 200 /weightlifting-service/v2/weightlifting-workout/activity
|
|
2662
|
-
GET 200 /journal-service/v3/journals/drafts/mobile/{date}
|
|
2663
|
-
PUT 204 /journal-service/v2/journals/entries/user/date/{date}
|
|
2664
|
-
GET 200 /progression-service/v3/trends/{metric}?endDate={date}
|
|
2665
|
-
DELETE 204 /core-details-bff/v1/cardio-details?activityId={uuid}
|
|
2666
|
-
PUT 204 /womens-health-service/v1/menstrual-cycle-insights/log
|
|
2667
|
-
```
|
|
499
|
+
### Other
|
|
2668
500
|
|
|
2669
|
-
|
|
501
|
+
| Method | Path | Verdict | Used by | Notes |
|
|
502
|
+
|---|---|---|---|---|
|
|
503
|
+
| GET | `/app-configuration-service/v1/config` | verified | – | tab config |
|
|
504
|
+
| GET | `/glp-service/v1/onboarding` | verified | – | GLP-1 onboarding LIST |
|
|
505
|
+
| GET | `/growth-content-service/v1/discover-more` | verified | – | marketing noise |
|
|
2670
506
|
|
|
2671
|
-
|
|
507
|
+
Don't use:
|
|
2672
508
|
|
|
2673
|
-
|
|
509
|
+
| Method | Path | Verdict | Notes |
|
|
510
|
+
|---|---|---|---|
|
|
511
|
+
| GET | `/user-journey-service/v1/user-journey/first-week-in-review` | not-found | Android route (@Acetone1). 404 'currently unavailable', as is the v2 year-in-review (seasonal). |
|