Connect Garmin Connect data to Sahha via the Garmin Health API.

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.

  1. Sign in to the Garmin Developer Portal.

  2. Create a new application.

  3. Configure the application’s name, description, and logo — these are shown to end users during the connection flow.

  4. Add the Sahha OAuth redirect URL:

    HTTP
    https://sandbox-api.sahha.ai/api/v1/integration/oauth/garmin/callback

    The Sahha Dashboard shows it too, as the Sahha callback URL, when you add a Garmin integration.

  5. Enable the APIs you want Sahha to ingest — e.g. the Health API and Activity API. (The Training API is not supported by Sahha.)

  6. Save, then copy your Client ID and Client Secret for the next step.


2. Create the integration in Sahha

  1. Go to the Sahha Dashboard.
  2. Navigate to Direct integrations → Integrations in the sidebar.
  3. Click Add integration and select Garmin as the provider.
  4. Under Add its details to Sahha, paste your Garmin Client ID and Client secret.
  5. 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.
  6. 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.

  1. In the Garmin Developer Portal, open the Endpoint Configuration page.
  2. For each endpoint below, paste the webhook URL from your Sahha integration into the endpoint’s URL field.
  3. Ensure each of those endpoints is enabled.
  4. Where a delivery mode is offered, select Push — not Pull.
  5. Save.
EndpointWhat Sahha takes from it
ActivitiesWorkouts
EpochsSteps, wheelchair pushes, active calories and distance
SleepsSleep stages and naps, with SpO₂ and respiratory rate during sleep
HRVHeart rate variability
Pulse OxSpO₂
RespirationRespiratory rate
Body CompositionsWeight, body fat, BMI and bone mass
Blood PressuresBlood pressure, and the pulse taken with it
User MetricsVO₂ max
DeregistrationsUsers who remove your app in Garmin Connect
User Permissions ChangeUsers 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:

Start Garmin connection
Shell
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}"
Response
JSON
{
	"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 dataLog typeData typeUnit
Stepsactivitystepscount
Wheelchair pushesactivitywheelchair_pushescount
Active caloriesenergyactive_energy_burnedkcal
Walking and running distanceactivitydistance_walking_runningm
Cycling distanceactivitydistance_cyclingm
Wheelchair distanceactivitydistance_wheelchairm
Workoutexerciseexercise_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 dataLog typeData typeUnit
Time in bedsleepsleep_stage_in_bedminute
Time asleep, and napssleepsleep_stage_asleepminute
Deep, light, REM and awake timesleepsleep_stage_deep, sleep_stage_light, sleep_stage_rem, sleep_stage_awakeminute
Unmeasurable timesleepsleep_stage_unknownminute
SpO₂ during sleepoxygenoxygen_saturationpercent
Respiratory rate during sleepoxygenrespiratory_ratecount/minute

Sleep stages arrive as a timeline: one log per period in each stage.

Heart, body and vitals

Garmin dataLog typeData typeUnit
Heart rate variabilityheartheart_rate_variability_rmssdms
SpO₂oxygenoxygen_saturationpercent
Respiratory rateoxygenrespiratory_ratecount/minute
VO₂ maxoxygenvo2_maxml/kg/min
Weightbodyweightkg
Body fatbodybody_fatpercent
BMIbodybody_mass_indexkg/m²
Bone massbodybone_masskg
Blood pressurebloodblood_pressure_systolic, blood_pressure_diastolicmmHg
Pulse, with a blood pressure readingheartheart_ratebpm

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 revoked and their data stops. When they share again, it’s connected again.
  • 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 deviceType is watch, 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.

Docs