FitIQ · Health Sync

Apple Shortcuts (free sync)

This is the recommended no-native-app way to get Apple Health data into FitIQ. Your Shortcut reads daily totals and POSTs them to your private webhook URL.

Your webhook URL
Generate your token in /setup first.
Build the Shortcut (step-by-step)
  1. Open Shortcuts → tap + New Shortcut.
  2. Add actions to get your daily totals (these are the most reliable ones):
    • Find Health Samples (Type: Steps, Date: Today) → then Calculate Statistics (Sum) → name result steps
    • Find Health Samples (Type: Active Energy, Date: Today) → Calculate Statistics (Sum) → name result active_kcal
    • Find Health Samples (Type: Body Mass, Sort: Most Recent, Limit: 1) → name result weight
    • Workouts: Find Workouts (Date: Today) → Repeat with Each workout → build a list of dictionaries { "type": "...", "minutes": ... }
  3. Add action Get Current DateFormat Date as YYYY-MM-DD → name it date.
  4. Add action Dictionary and set keys exactly to:
    {
      "date": "YYYY-MM-DD",
      "steps": 1234,
      "active_kcal": 456,
      "workouts": [ { "type": "strength", "minutes": 45 } ],
      "weight": 180.2
    }
  5. Add action Get Contents of URL:
    • URL: paste your webhook URL (above)
    • Method: POST
    • Request Body: JSON
    • JSON: choose the Dictionary you built
    • Headers: set Content-Type = application/json
  6. Tap to run once and confirm FitIQ receives it (it should return { "ok": true, ... }).
Make it automatic (daily)
  1. In Shortcuts, go to Automation New Automation.
  2. Choose Time of Day (e.g., 9:00 PM) → Daily.
  3. Select Run Shortcut → pick your FitIQ Health Sync shortcut.
  4. Turn off Ask Before Running if iOS allows it for your setup.