Nutrición · Longevidad
Subí tu export.zip de Apple Health para importar datos históricos.
Configurá el shortcut en tu iPhone para sincronización diaria automática.
URL del endpoint: http://TU_IP:3002/api/import/apple-health/shortcut
El shortcut debe mandar un JSON POST con métricas y workouts del día.
{
"metrics": [
{
"type": "HKQuantityTypeIdentifierStepCount",
"value": 8500,
"unit": "count",
"start_date": "2026-05-12T00:00:00-03:00",
"source_device": "iPhone"
}
],
"workouts": [
{
"workout_type": "HKWorkoutActivityTypeRunning",
"duration_min": 30,
"distance_km": 5.2,
"energy_kcal": 320,
"start_date": "2026-05-12T07:00:00-03:00",
"end_date": "2026-05-12T07:30:00-03:00",
"source_device": "Apple Watch"
}
]
}