Polar training data, running in your own cloud
One API for Polar and for the rest of the wearables your users own, connected through the official AccessLink API and returned in a single schema. Self-hosted in a cloud account you control, under an MIT licence.
Built on Open Wearables
Data coverage
Polar data we support
Everything below arrives in one schema, including Polar's own sleep score, Nightly Recharge and Cardio Load.
Training sessions
Sport, distance, calories, average and maximum heart rate.
Sleep
Stage timeline, duration, time in bed and sleep score.
Nightly Recharge
Recovery status with overnight HRV and breathing rate.
Cardio Load
Daily training strain, as Polar calculates it.
SleepWise
Daytime alertness and circadian bedtime.
Heart rate
Continuous samples across the day and night.
Daily activity
Steps, active time, active calories and distance.
Temperature
Body and skin temperature, with baseline deviation. Elixir devices.
Spot measurements
SpO2 and wrist ECG with HRV. Elixir devices.
What working with Open Wearables gives you
Two views of the same deployment. One for the people wiring it in, one for the people signing it off.
One schema, not one per provider
Polar arrives in the same shape as every other source, so your code carries no Polar-specific branches and adding a source later does not change the call.
- Training
- Sleep
- Recovery
- Heart rate
The two-step connection handled
Polar needs each user registered against your application after they authorise, which is a step people miss and then debug. Open Wearables does it as part of the connection flow.
- OAuth 2.0
- User registration
Signed webhooks, verified for you
Polar issues a signing secret once, at subscription time, and never shows it again. Open Wearables stores it and checks every incoming event against it, with hourly polling underneath as the safety net.
- Webhooks
- Signed events
- Hourly polling
Health scores computed in your deployment
Polar's own sleep score, Nightly Recharge and Cardio Load arrive as data, as Polar calculates them. Health scores from our science team run alongside them inside your deployment, validated before release, and are part of Pro.
- Polar scores
- Health scores
Access you control
It runs in your cloud account, under your credentials. When we work on your system, we do it under a DPA you sign.
- Your credentials
- Your region
The Polar relationship stays yours
Credentials issued in your name, data going straight from Polar into your account.
- Your Polar client
- Self-serve
Costs you can see
Running it costs your own cloud bill, paid to your provider. Deployment and Integration are one-off services, and health scores and the other licensed modules come with Pro.
- Your cloud bill
- One-off services
No dependency on us
MIT licence, full source, public roadmap and public issues, plus community support on Discord.
- MIT license
- Full source
- Discord
How it works
From nothing to your first Polar query
- 01
Bring it up
Clone the repository and run it with Docker Compose. First API call in five minutes, before any provider is connected.
Terminal
git clone https://github.com/the-momentum/open-wearables.git cd open-wearables && docker compose up -d - 02
Register your Polar app
Sign in to AccessLink admin with your Polar Flow account, create a client and bring the client ID and secret. The credentials stay in your name, so the data relationship is between you and Polar.
Polar AccessLink admin - 03
Connect a user
Your user authorises through Polar's own consent screen, and Open Wearables registers them against your application in the same flow. That second step is specific to Polar and easy to miss when you build this yourself.
- 04
Query the user, not the provider
Polar data arrives in the same schema as every other source, in your own database, so your application code carries no Polar-specific branches.
Polar API setup guide
The honest comparison
Hosted SaaS API, in-house build, or self-hosted
Where each one actually wins. If a hosted API fits your situation, use one.
| Hosted SaaS API | Build in-house | Open Wearables, self-hosted | |
|---|---|---|---|
| [01] Polar credentials | Theirs, already approved | Yours to obtain | Yours, in your own name |
| [02] User registration step | They handle it | Yours to discover and build | Handled in the connection flow |
| [03] Webhook secret | Theirs to keep | Shown once, lose it and you rebuild | Stored and verified for you |
| [04] Where Polar data sits | Their cloud, their regions | Yours | Your cloud account, your region |
| [05] The data model | Theirs, you build against their schema | Yours | Yours, in your database |
| [06] Polar API changes | They absorb them | Your team tracks and adapts | Fixed in a release you pull |
| [07] Cost shape | Scales with monthly active users | Salaries and infrastructure | Fixed, flattens as you grow |
What stays yours
The deployment, the data and what you build on it stay in your account, whoever runs it
Sovereignty
Polar data goes straight to your cloud, with no aggregator in between.
Residency
It stays in the region you chose, provable by pointing at an account.
Control
What you build on top of Open Wearables is yours, and the schema and the data are in your account.
Your own reasons
No regulator forcing it. You want the data in your own account anyway.
Polar is one integration in the same API
You query a user rather than a provider, so somebody with a Polar watch and a ring comes back in one shape. Adding the ring later does not change your code.
Deploy Open Wearables in your own cloud
The repository is public and the deployment is yours from the first commit. Start from the source, or bring us in to stand it up in your account with Polar connected and validated on real accounts.
FAQ
Do you have more questions?
Does Polar have an API?
Yes. It is called AccessLink, it uses OAuth, and you register a client to get an ID and secret. The credentials are issued in your name, so the data relationship is between you and Polar.
What is the difference between Polar Flow and AccessLink?
Polar Flow is the app your users already use. AccessLink is the developer API that reads what Flow holds. Connecting through AccessLink means your users keep using Flow exactly as before.
Do we need to do anything after a user authorises?
Polar needs each user registered against your application, which is a separate call after the OAuth handshake. Open Wearables does it inside the connection flow, so it is not something you find out about from a support thread.
Does it support webhooks or only polling?
Both. Polar pushes events for training sessions, sleep, daily activity, continuous heart rate and SleepWise, and hourly polling runs underneath as a safety net. Polar sends a lightweight notification rather than the data itself, so the event is acknowledged immediately and the matching records are fetched right after.
How does webhook verification work?
Polar sends a PING to your endpoint when the subscription is created and expects a clean response before it starts delivering. It then issues a signing secret, once, which is used to verify every event that follows. Open Wearables stores that secret and does the verification.
What happens if we lose the webhook secret?
Polar shows it only at creation, so there is no way to read it back. The fix is to delete the subscription and create a new one. Open Wearables saves it at creation, which is why this rarely comes up.
Do we get continuous heart rate from Polar?
Yes, sampled across the day and night rather than only during training, on the devices that record it. Open Wearables reads it in blocks and stitches them together, so a long backfill arrives as one continuous series.
How detailed is the sleep data?
Stage timestamps from the hypnogram, so deep, light, REM and awake as a timeline rather than nightly totals, plus duration, time in bed and the night's heart rate samples. Sleep efficiency is not something the Polar API returns, and nap detection is not available for Polar.
Which Polar scores do we get?
The sleep score, Nightly Recharge as the recovery read and Cardio Load as training strain. Where the user has SleepWise, its daytime alertness and circadian bedtime come too. You can also add our health scores, part of Pro and designed and validated by our science team, inside your own deployment.
Is heart rate variability available?
Yes, in two forms. Nightly Recharge carries an overnight HRV average, alongside breathing rate, from any device that runs it. Spot readings come from SpO2 tests and wrist ECG on a Polar Elixir device, which is also what body temperature, skin temperature and SpO2 need. If those are central to your product, check them against the devices your users actually own.
How far back does a first sync go?
Training sessions come from Polar Flow for the connected user without a date filter, so the first sync pulls what is there. Daily data goes back ninety days, fetched in four-week blocks, so a longer history arrives as a sequence of requests rather than one large one.





