{
  "schema": "vector.bio.apple_health_shortcut.v1",
  "title": "Vector Bio-Performance · 1-Tap iOS Apple Health Sync",
  "version": "2026.11.18",
  "cost_usd": 0.0,
  "provider": "apple_health_shortcut",
  "description": "Zero-cost Apple Shortcuts automation that queries today's Apple Health / Apple Watch biometrics on-device and pushes a single authenticated HTTPS telemetry packet to /api/bio/telemetry so your 3-Layer Fuel Clock, muscle glycogen tank, and 48-hour culinary refueling prescription recalibrate immediately.",
  "target_endpoint": {
    "url": "https://vectorintel.net/api/bio/telemetry",
    "fallback_url": "https://board.104-131-179-36.sslip.io/api/bio/telemetry",
    "method": "POST",
    "headers": {
      "Content-Type": "application/json",
      "X-Vector-Provider": "apple_health_shortcut"
    }
  },
  "privacy_and_provenance": {
    "on_device_aggregation": true,
    "ttl_sec": 21600,
    "stale_guard": "STALE_FEED_ABSTAIN",
    "note": "Raw Apple HealthKit database never leaves your iPhone. Only the compact daily summary JSON below is sent when you tap the Shortcut or trigger an Automation."
  },
  "shortcut_actions": [
    {
      "step": 1,
      "action": "is.workflow.actions.health.quantity.get",
      "label": "Find Health Samples — Step Count (Today, Sum)"
    },
    {
      "step": 2,
      "action": "is.workflow.actions.health.quantity.get",
      "label": "Find Health Samples — Active Energy Burned (Today, Sum kcal)"
    },
    {
      "step": 3,
      "action": "is.workflow.actions.health.quantity.get",
      "label": "Find Health Samples — Heart Rate (Last 12h Average bpm) & Resting Heart Rate (Latest)"
    },
    {
      "step": 4,
      "action": "is.workflow.actions.health.quantity.get",
      "label": "Find Health Samples — Heart Rate Variability SDNN (Latest ms)"
    },
    {
      "step": 5,
      "action": "is.workflow.actions.health.quantity.get",
      "label": "Find Health Samples — Sleep Analysis (Last Night Asleep Hours)"
    },
    {
      "step": 6,
      "action": "is.workflow.actions.health.quantity.get",
      "label": "Find Health Samples — Body Mass (kg) & Body Fat Percentage (%)"
    },
    {
      "step": 7,
      "action": "is.workflow.actions.health.workout.get",
      "label": "Find Workouts (Last 24h Energy & Duration)"
    },
    {
      "step": 8,
      "action": "is.workflow.actions.dictionary",
      "label": "Build JSON Telemetry Payload (see payload_template)"
    },
    {
      "step": 9,
      "action": "is.workflow.actions.downloadurl",
      "label": "Get Contents of URL -> POST /api/bio/telemetry (JSON Body)"
    }
  ],
  "payload_template": {
    "provider": "apple_health_shortcut",
    "source_uri": "ios://shortcuts/apple-health/daily-sync",
    "ingested_utc": "<CURRENT_ISO8601_UTC>",
    "ttl_sec": 21600,
    "sample_n": 7,
    "steps": "<HEALTH_STEPS_TODAY>",
    "active_kcal": "<HEALTH_ACTIVE_ENERGY_KCAL>",
    "avg_hr_bpm": "<HEALTH_AVG_HR_BPM>",
    "resting_hr_bpm": "<HEALTH_RESTING_HR_BPM>",
    "hrv_ms": "<HEALTH_HRV_SDNN_MS>",
    "sleep_hours": "<HEALTH_SLEEP_HOURS>",
    "body_weight_kg": "<HEALTH_BODY_MASS_KG>",
    "body_fat_pct": "<HEALTH_BODY_FAT_PCT>",
    "workout_strain": {
      "kcal": "<LATEST_WORKOUT_KCAL>",
      "sets": 14,
      "rpe_equivalent": 7.5,
      "duration_min": "<LATEST_WORKOUT_MINUTES>"
    }
  }
}
