Shortcuts & App Intents
Available intents
Section titled “Available intents”Export profiles
Section titled “Export profiles”Create and manage saved export profiles in Health.md on iPhone or Android. Apple profile management is currently documented for iPhone only. IPad and macOS management availability is not claimed.
All four export intents accept an optional Profile parameter. If profiles exist, an empty parameter uses the active profile. In legacy zero-profile mode, it uses the current in-app export settings. Pass a saved profile name to use its frozen configuration. This includes its metric selection, formats, and destination, regardless of the settings that the app shows.
After you create your first export profile, a shortcut with no Profile uses the active profile's saved settings. It does not use the app's live settings. If you rely on the old behavior, pin the shortcut to a specific profile or keep zero profiles. A profile name that no longer exists returns a clear error. It does not export the wrong profile.
Where to find them
Section titled “Where to find them”Open the Shortcuts app on iOS or macOS. Tap the + button to create a new shortcut, search for "Health.md" or any of the intent titles above. They live under the Health category.
Most intents have openAppWhenRun = false, so they execute headlessly, no app launch, no UI flash. They work from automations, Focus filters, the Hey Siri handoff, and the Action Button.
Apple protects HealthKit data while the iPhone is locked and relinquishes app access about ten minutes after locking. Allow Running When Locked lets Shortcuts start the action, but it does not override HealthKit data protection. The Health.md app-content permission in Shortcuts does not override it either.
If HealthKit is unavailable, Health.md preserves the requested dates as pending and posts a Health Export Needs Attention notification. Unlock the iPhone, then tap the notification or open Health.md to retry. A fully unattended export cannot be guaranteed while the phone remains locked.
Recipe: daily export with confirmation
Section titled “Recipe: daily export with confirmation”- Personal Automation → Time of Day → choose a time when you normally use your unlocked iPhone, such as 8:00 AM.
- Export Yesterday's Health Data intent.
- Get Last Export Status intent.
- Show Notification with the result.
Pending-status note: Get Last Export Status reads the most recent recorded export-history entry. If this run encountered locked HealthKit data, it may still show the previous export until you retry the pending request. Health.md's own recovery notification is the authoritative signal for pending work.
Recipe: backfill on a one-off
Section titled “Recipe: backfill on a one-off”- Create a shortcut.
- Export Health Data for Date Range with start = 2024-01-01, end = 2024-12-31.
- Run from Shortcuts. Walks the year, writes one file per day. May take a few minutes for full years.
Recipe: pause schedule on vacation
Section titled “Recipe: pause schedule on vacation”- Focus filter: when Vacation Focus turns on, run Turn Scheduled Export On or Off with Enabled = false.
- When Focus turns off, run again with Enabled = true.
Intents inherit your in-app HealthKit permission and vault selection. They will fail with a clear error if the app has not been opened-and-set-up at least once on this device.