Overview
Connect Garmin Connect data to Sahha via the Garmin Health API. You register an app with Garmin, add it to Sahha as an integration, configure webhooks, then connect end users. The connection flow itself is shared across providers — see Integrations for the concepts and Connect a user for the full round-trip.
| Status | GA Garmin approval required |
| API slug | garmin |
| Device | Watch |
| Connection | Cloud OAuth |
| Live sync | Push (webhooks) |
| Backfill on connect | 30 days — Requires the user to grant Garmin's historical-data permission |
Before you start
Access required
The Garmin Health API requires approval from Garmin through the Garmin Connect Developer Program. Garmin has paused new applications to the program at times, so check its current status before you plan around Garmin.
Examples use the sandbox environment. Replace sandbox-api.sahha.ai with api.sahha.ai for production — see API Environments.
1. Register your Garmin app
This gives Sahha the OAuth credentials it uses to request data on your users’ behalf.
-
Sign in to the Garmin Developer Portal.
-
Create a new application.
-
Configure the application’s name, description, and logo — these are shown to end users during the connection flow.
-
Add the Sahha OAuth redirect URL:
https://sandbox-api.sahha.ai/api/v1/integration/oauth/garmin/callbackThe Sahha Dashboard shows it too, as the Sahha callback URL, when you add a Garmin integration.
-
Enable the APIs you want Sahha to ingest — e.g. the Health API and Activity API. (The Training API is not supported by Sahha.)
-
Save, then copy your Client ID and Client Secret for the next step.
2. Create the integration in Sahha
- Go to the Sahha Dashboard.
- Navigate to Direct integrations → Integrations in the sidebar.
- Click Add integration and select Garmin as the provider.
- Under Add its details to Sahha, paste your Garmin Client ID and Client secret.
- Under Your app’s redirect URLs, add one or more URLs in your own app that Sahha may send users back to after they connect. The first is the default.
- Click Add integration.
About redirect URLs
When you start the OAuth flow you may optionally pass a redirectUrl — it must match one of your redirect URLs exactly. If omitted, Sahha uses the default.
The form also shows your integration’s Webhook URL, under Create your Garmin app. You’ll need it next; it’s on the integration’s page in the dashboard after you save, too.
3. Configure Garmin webhooks
Garmin delivers data to Sahha via push notifications, so you must register Sahha’s webhook URL with Garmin.
- In the Garmin Developer Portal, open the Endpoint Configuration page.
- For each endpoint below, paste the webhook URL from your Sahha integration into the endpoint’s URL field.
- Ensure each of those endpoints is enabled.
- Where a delivery mode is offered, select Push — not Pull.
- Save.
| Endpoint | What Sahha takes from it |
|---|---|
| Activities | Workouts |
| Epochs | Steps, wheelchair pushes, active calories and distance |
| Sleeps | Sleep stages and naps, with SpO₂ and respiratory rate during sleep |
| HRV | Heart rate variability |
| Pulse Ox | SpO₂ |
| Respiration | Respiratory rate |
| Body Compositions | Weight, body fat, BMI and bone mass |
| Blood Pressures | Blood pressure, and the pulse taken with it |
| User Metrics | VO₂ max |
| Deregistrations | Users who remove your app in Garmin Connect |
| User Permissions Change | Users who change what they share with your app |
Sahha ignores Dailies, Stress Details, Health Snapshot, Activity Details and Move IQ, so you can leave them off.
Push, not Pull
Sahha only supports push delivery. Any endpoint left in pull mode will not deliver data to Sahha.
4. Connect a user
Start the OAuth flow with the user’s profile token. Garmin’s slug is garmin:
curl -X GET "https://sandbox-api.sahha.ai/api/v1/integration/profile/oauth/garmin/authorize?redirectUrl=https://yourapp.com/integrations/callback" \
-H "Authorization: profile {your-profile-token}" {
"authorizationUrl": "https://connect.garmin.com/oauth2Confirm?..."
} Redirect the user to authorizationUrl to complete authorization. For the full round-trip and how to handle the redirect back to your app, see Connect a user.
What data you get
Every Garmin log has the source garmin and the deviceType watch — including readings from Garmin scales and blood pressure monitors. A workout or blood pressure reading the user entered by hand, or an SpO₂ spot check they started, has the recordingMethod MANUAL.
Activity and workouts
| Garmin data | Log type | Data type | Unit |
|---|---|---|---|
| Steps | activity | steps | count |
| Wheelchair pushes | activity | wheelchair_pushes | count |
| Active calories | energy | active_energy_burned | kcal |
| Walking and running distance | activity | distance_walking_running | m |
| Cycling distance | activity | distance_cycling | m |
| Wheelchair distance | activity | distance_wheelchair | m |
| Workout | exercise | exercise_session_{type} | minute |
Steps, pushes, calories and distance arrive in Garmin’s 15-minute epochs, one log of each per window: when a window holds more than one activity, such as a walk and a run, Sahha adds them together. A workout’s additionalProperties carry the figures Garmin computed for it: active calories (total_calories), distance in meters (total_distance), average and maximum heart rate (average_heart_rate, max_heart_rate), steps (steps), elevation gain in meters (elevation_gain) and average speed in meters per second (average_speed). A figure Garmin didn’t report is left out. A Garmin activity with no Sahha type of its own is exercise_session_other, with Garmin’s name for it in activity_type.
Sleep
| Garmin data | Log type | Data type | Unit |
|---|---|---|---|
| Time in bed | sleep | sleep_stage_in_bed | minute |
| Time asleep, and naps | sleep | sleep_stage_asleep | minute |
| Deep, light, REM and awake time | sleep | sleep_stage_deep, sleep_stage_light, sleep_stage_rem, sleep_stage_awake | minute |
| Unmeasurable time | sleep | sleep_stage_unknown | minute |
| SpO₂ during sleep | oxygen | oxygen_saturation | percent |
| Respiratory rate during sleep | oxygen | respiratory_rate | count/minute |
Sleep stages arrive as a timeline: one log per period in each stage.
Heart, body and vitals
| Garmin data | Log type | Data type | Unit |
|---|---|---|---|
| Heart rate variability | heart | heart_rate_variability_rmssd | ms |
| SpO₂ | oxygen | oxygen_saturation | percent |
| Respiratory rate | oxygen | respiratory_rate | count/minute |
| VO₂ max | oxygen | vo2_max | ml/kg/min |
| Weight | body | weight | kg |
| Body fat | body | body_fat | percent |
| BMI | body | body_mass_index | kg/m² |
| Bone mass | body | bone_mass | kg |
| Blood pressure | blood | blood_pressure_systolic, blood_pressure_diastolic | mmHg |
| Pulse, with a blood pressure reading | heart | heart_rate | bpm |
Percentages are sent as fractions: a body fat of 18% is 0.18. Heart rate logs come only with blood pressure readings; workouts carry their average and maximum heart rate as properties.
Not collected
Garmin’s daily summaries, so there’s no resting or all-day heart rate, floors, BMR or stress from Garmin. Nor sleep scores, muscle mass, body water, skin temperature, or menstrual cycle and pregnancy tracking.
Sync and history
- Live sync. Garmin pushes each summary to Sahha as the user’s device syncs to Garmin Connect, so data usually arrives within minutes.
- Backfill. When a user connects, or reconnects, Sahha asks Garmin to push their last 30 days — if they granted Garmin’s historical-data permission. If they grant it later in Garmin Connect, Sahha backfills then.
- Sharing. If a user stops sharing data with your app in Garmin Connect, their connection becomes
revokedand their data stops. When they share again, it’sconnectedagain. - Deregistration. If a user removes your app in Garmin Connect, their connection becomes
revoked, and they need to connect again. - Time zones. Times keep the offset Garmin reports with each summary. VO₂ max spans its calendar day in UTC.
- Deletions. Data a user deletes in Garmin Connect stays in Sahha.
The sharing and deregistration changes reach Sahha through the Deregistrations and User Permissions Change endpoints, so configure them with the others in step 3.
Garmin-specific notes
- Training API is not supported. Don’t rely on Sahha ingesting Training API data.
- Webhooks must be push. See step 3 — pull-mode endpoints deliver nothing.
- Every device is a watch. Garmin data’s
deviceTypeiswatch, even when a Garmin scale or blood pressure monitor took the reading.
For data freshness, the connection lifecycle, and disconnecting a user, see Managing connections on the Integrations page.
Support
Need help? Contact support@sahha.ai or join the Slack Community.