1
Open the Shortcuts app on your iPhone
2
Tap Automation (the clock icon at the bottom)
3
Tap + Create Personal Automation
4
Select "Time of Day" → Set to when you wake up (e.g., 7:00 AM)
5
Tap Next → Tap Add Action
6
Search for "Get Health Samples" → Select "Sleep Analysis" → Set to "Last 8 hours"
7
Tap the ⓘ icon and select the sleep minutes value to pass to the next step
8
Add another action: "Get Health Samples" → "Heart Rate Variability" → Set to "Last 24 hours"span>
9
Add another action: "URL"
https://usssoiqchnmvonohlkod.supabase.co/functions/v1/ingest-health-data
10
Add another action: "Get Contents of URL"
Set Method to POST
Add header Authorization with value Bearer [your JWT]
Body (JSON):
{"source":"apple_health","sleep_min":0,"hrv_rmssd":0,"date":"2026-03-23"}
11
Tap Done. Your automation is live!