Skip to main content
Garmin API giving you a headache? We feel your pain - that’s exactly why we created Open Wearables. Pop into our Discord if you have questions or want to discover how Open Wearables can solve your problems.

Overview

Garmin Connect provides access to comprehensive fitness and health data from Garmin devices through their Wellness API. The integration supports activities, daily summaries, sleep data, body composition, and more. Through the Garmin Connect platform, you can access data from:
  • Health API
  • Activity API
  • Women’s Health API
  • Training API
  • Courses API
Once you get access to the Developer Portal, you’ll find the full docs, including the FAQ page and specification documents.

Access tiers

Garmin has reopened the Garmin Connect Developer Program with two business tiers: Open Wearables works with push delivery, so both tiers are supported. Starter doesn’t include historical data, so the backfill described below is only available on Enterprise. You can move from Starter to Enterprise later. Garmin describes both business tiers as intended for organizations (company, university, hospital, research institution, etc.). Individuals who only need their own data should look at the Personal API below.
Personal API: Garmin also launched a Personal API that lets individual users access their own Garmin Connect data with a personal API key. It has a different base URL, authentication and endpoints than the business APIs, so it doesn’t work with Open Wearables yet. We may add support for it in the future.

What you need by the end

  • App credentials: Client ID + Client Secret
  • API Tools configured:
    • Endpoints enabled, all pointing at your instance’s webhook URL (it carries a secret token, see below)
    • Data types + OAuth scopes selected
  • Partner verification passed (to request production access later)
  • Production credentials (only after Garmin approves your evaluation app for production use)

Prerequisites

  • A registered legal entity (company / institution)
  • A public website
  • A public privacy policy page

Application walkthrough

1

Apply for Garmin developer access

Garmin access is approval-based. To apply, submit the official form:After approval, you create an app with Starter access. Enterprise access can be requested through the Garmin Developer Portal.
Tips to avoid rejection:
  • Apply as a company/institution, not as an individual.
  • Use a company-domain email.
  • Clearly explain the enterprise/commercial product or institutional use case.
  • Provide a public link to your app/website privacy policy.
Make sure your mail server allows messages from:
  • garmin.com
  • health.garmin.com
  • developer.garmin.com
2

Get access to Garmin Developer Portal and add your team

After approval, Garmin will invite you to the Developer Portal and share a “set password” link.
Common Garmin restrictions:
  • No generic inboxes (support@, info@, dev@, etc.)
  • No free mail (gmail, outlook, etc.)
  • Third-party integrators may require an NDA (handled with Garmin via ticket/email)
3

Create an Evaluation app (this gives you Client ID + Client Secret)

You must create an app in the Developer Portal first. Start with an evaluation app:
  • Go to your team apps page (example): https://developerportal.garmin.com/teams/{your_team_name}/apps
  • Create an app and set the type to Connect Developer - Evaluation
  • Set the OAuth redirect URL (where the user is sent after Garmin login in the 3-legged OAuth flow). Open Wearables derives this from your API_BASE_URL as {API_BASE_URL}/api/v1/oauth/garmin/callback, so register that exact URL here
  • Provide legal company details and describe how you will use Garmin data (aggregated/anonymous vs linked to identifiable users)
  • Select the APIs you intend to use (Health / Activity / Women’s Health / Training / Courses)
One company account can manage multiple apps (e.g., if you run separate apps for different clients).
This generates:
  • Client ID
  • Client Secret
Treat the Client Secret like a password. Store it in your secrets manager (and rotate if compromised).
4

Configure API Tools (endpoints + data types/scopes)

Garmin’s API Tools are configured per app. To access them, log in with that app’s Client ID + Client Secret.Enable endpoints
  • Print your webhook URL on the server where Open Wearables runs. Its last path segment is a secret token derived from SECRET_KEY, which is not shown anywhere else:
With the repository’s docker-compose.yml, make garmin_webhook_url runs the Docker command for you. The script needs only SECRET_KEY and API_BASE_URL from your backend configuration, so you can run it before adding the Garmin credentials. It prints the URL alone on stdout:
For local development with ngrok, set API_BASE_URL to your ngrok URL (https://<your-ngrok-id>.ngrok-free.app) before you run it.
  • Open API Endpoints
  • For every endpoint, set the URL to the one the script printed
  • Set delivery type to push (dropdown on the right)
  • Check enabled for each endpoint you want to activate
  • All endpoints use the same URL — Garmin distinguishes data types internally and sends the appropriate payload to this single endpoint. That includes Deregistrations and User Permissions
Garmin does not sign its notifications, and the garmin-client-id header it sends is public: your client ID appears in every OAuth authorization URL. The token in the URL path is what proves that a notification comes from Garmin. Open Wearables rejects every Garmin notification with 401 when the token in the path is wrong, or missing once GARMIN_ACCEPT_WEBHOOKS_WITHOUT_TOKEN is false (see Upgrading below). A new SECRET_KEY or API_BASE_URL changes the URL: run the script again and update every endpoint (see the Rotate the webhook URL step below).
Treat the webhook URL like a password. Anyone who knows it can send health data or account deregistrations in Garmin’s name. Open Wearables masks the token in its logs and in Sentry, but your reverse proxy’s access logs record full request paths. If the URL leaks, rotate SECRET_KEY (see the Rotate the webhook URL step below).
Which endpoints to enable:Enable all endpoints listed on the page. Open Wearables accepts data from all Garmin data types (activities, dailies, sleeps, epochs, HRV, body compositions, stress, respiration, pulse ox, and more).A subset of these types is actively requested during historical backfill — which ones is determined by BACKFILL_DATA_TYPES in backend/app/services/providers/garmin/backfill_config.py. All other enabled endpoints will passively receive data whenever Garmin pushes new updates.
Backfill requirement: backfill only works once the relevant endpoints are enabled on this page.Once backfill is enabled and data is ready, Garmin will deliver notifications via push and Open Wearables can ingest the backfilled data.
Backfill limits (practical gotchas):
  • Backfill needs historical data access, which is only included in the Enterprise tier.
  • Backfill typically returns ~last month of data.
  • Each data type can usually be backfilled only once.
  • Don’t retry backfill over and over—if you need more history, check the Garmin docs for the supported process and limits.
  • You can query just one day in the same time at maximum — you can’t fetch an entire month in a single request.
  • In the user authorization (consent) screen, the backfill scope is always turned off by default, so users must manually enable it each time.
(Optional) Modify data types and OAuth scopes
  • If you need to adjust what your app can access, open API Configuration
  • Pick which data domains your app is allowed to access
  • Pick which OAuth scopes will be shown/required during user authorization
Keep scopes minimal: only request what Open Wearables actually needs for your use case. If you add new data domains later, you’ll typically need to update this configuration and re-verify.
5

Provide Garmin credentials to Open Wearables

Once you have an app created, configure your Open Wearables backend with:
If you later move from evaluation to production, you’ll update these credentials to the production ones.
Upgrading an instance that already receives Garmin data? Older versions accepted Garmin notifications at /api/v1/providers/garmin/webhooks and at the deprecated /api/v1/garmin/webhooks/push and /api/v1/garmin/webhooks/ping, authenticated only by the public client ID, so anyone could send data in Garmin’s name. Those URLs keep working while GARMIN_ACCEPT_WEBHOOKS_WITHOUT_TOKEN is true, which is the default for now; a later release turns it off. Switch to the token URL now:
  1. Deploy the new version (backend and Celery workers). Garmin data keeps arriving at the old URLs.
  2. Print the webhook URL with docker compose exec app uv run python scripts/garmin_webhook_url.py (or uv run python scripts/garmin_webhook_url.py in backend/).
  3. In API Endpoints, change the URL of every data type to the one the script printed, Deregistrations and User Permissions included.
  4. Set GARMIN_ACCEPT_WEBHOOKS_WITHOUT_TOKEN=false and restart the backend. Only then are the old URLs closed.
While old URLs are accepted, the backend logs a warning (garmin_webhook_without_token_accepted) with the URL to set for every notification that arrives without the token. A data type that sends nothing logs nothing, so the warnings stopping is only a hint: check the URL of every data type in the portal before step 4.Once old URLs are off, the backend logs an error with the URL to set (the token shown as a placeholder) and the command that prints it, for every notification from your Garmin app (recognized by its garmin-client-id header) that it rejects: one sent to an old URL, or to a URL without the current token. Garmin retries a rejected notification with backoff, usually for long enough to fix the URL; to be sure nothing is lost, turn On Hold on for the affected data types while you fix them. The client ID is public, so others can trigger this error too. The URL is set per data type, so one type can stop while the others still arrive. Before acting on the error, check whether new data of some type has stopped arriving or a data type in the portal has another URL, and don’t rotate SECRET_KEY because of it alone.
6

Rotate the webhook URL

The token in the webhook URL is derived from SECRET_KEY, so rotating it means rotating SECRET_KEY. Do it if the webhook URL may have leaked. The URL also changes with API_BASE_URL; follow the same steps when you change it.
  1. In API Endpoints, turn On Hold on for every data type, Deregistrations and User Permissions included.
  2. Set a new SECRET_KEY (openssl rand -hex 32) and restart the backend and Celery workers. From now on, notifications sent to the old URL are rejected with 401.
  3. Print the new URL with the script and set it for every data type, Deregistrations and User Permissions included.
  4. Turn On Hold off for every data type.
Garmin queues notifications while On Hold is on, so none are lost during the rotation.
A new SECRET_KEY affects more than Garmin. It invalidates issued access tokens (refresh tokens stay valid, so sessions renew) and changes the other webhook secrets derived from it: Strava’s callback URL (register its subscription again, see the Strava guide), and the Google Health, Oura and Suunto secrets unless those are set explicitly. Those providers need their subscriptions or portal settings updated too.
7

Go to production (partner verification + production access)

Evaluation apps are for internal development. To go production, Garmin requires partner verification:
  • Open Partner Verification
  • Complete the checks/tests listed there
  • After you pass, apply for a production key / production access
Evaluation apps used for commercial/production purposes may be disabled without prior notification.

Managin your team

In the developer portal you can add team members who need access to specifications, internal tools, app credentials, source code, etc. You can manage your team at https://developerportal.garmin.com/teams, or use the Switch company menu (available on most developer portal pages) and select “Manage Company”.

Next Steps

API Reference

Explore the Open Wearables API endpoints.

Architecture

Understand the overall system architecture.

Support

Need Help?