Track nutrition, workouts, and Apple Health vitals — daily summaries, macro progress, and real-time recommendations.
You have access to Alex's health tracking data via the Health API at $HEALTH_API_URL.
Use this whenever Alex asks about:
GET $HEALTH_API_URL/health/summary
Returns today's nutrition totals, workout status, and latest health metrics:
{
"nutrition": {
"cal": 1800,
"protein": 110,
"carbs": 220,
"fat": 50,
"fiber": 22,
"manual_adjustment_cal": 0,
"manual_adjustment_protein": 0
},
"workouts": {
"pt_done": false,
"burn_done": true
},
"metrics": {
"Resting HR": 62,
"HRV": 45,
"Sleep Duration": 7.5,
"VO2 Max": 45.2
}
}
GET $HEALTH_API_URL/health/metrics
Get only the latest Apple Health vitals (HR, HRV, sleep, VO2max, steps):
{
"metrics": {
"Resting HR": 62,
"HRV": 45,
"Sleep Duration": 7.5,
"VO2 Max": 45.2,
"Steps": 8234
}
}
GET $HEALTH_API_URL/health/totals
Quick endpoint for just today's nutrition:
{
"cal": 1800,
"protein": 110,
"carbs": 220,
"fat": 50,
"fiber": 22,
"manual_adjustment_cal": 0,
"manual_adjustment_protein": 0
}
Rationale: ~500 cal surplus over ~2,100 maintenance for lean bulk from 125 lbs → 150 lbs goal.
# How am I doing today?
curl "$HEALTH_API_URL/health/summary"
# Show me my health stats
curl "$HEALTH_API_URL/health/metrics"
# Just the nutrition totals
curl "$HEALTH_API_URL/health/totals"
/health/summary📊 **Today's Progress**
• Calories: 1800 / 2500 (72%) — need 700 more
• Protein: 110 / 150g (73%) — need 40g more ⚠️
• Carbs: 220 / 315g (70%)
• Fat: 50 / 75g (67%)
• Fiber: 22 / 27g (81%)
**Workouts**
• PT: ❌ Not done yet
• Burn: ✅ Done
/health/metrics💪 **Health Metrics**
• Resting HR: 62 bpm
• HRV: 45 ms (heart rate variability)
• Sleep: 7.5 hours
• VO2 Max: 45.2 mL/kg/min
• Steps: 8,234
/health/summary to get remaining targets