Oura Ring API sleep and readiness, in your own cloud
One API for Oura and for the rest of the wearables your users own, connected through the official Oura developer 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
Oura data we support
Everything below arrives in one schema, including Oura's own sleep, readiness and activity scores.
Sleep
Stages in 30-second epochs, efficiency, time in bed and naps.
Readiness
Oura's daily readiness score, its read on recovery.
Activity
Activity score, steps, active calories and walking distance.
Heart rate
Samples across the day and night, plus resting heart rate.
Heart rate variability
RMSSD at five-minute intervals through the night.
Blood oxygen
SpO2, breathing disturbance and respiratory rate.
Heart health
VO2 max and cardiovascular age.
Skin temperature
Deviation and trend against the user's own baseline.
Workouts
Activity type, intensity, calories, distance and duration.
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
Oura arrives in the same shape as every other source, so your code carries no Oura-specific branches and adding a source later does not change the call.
- Sleep
- Readiness
- Activity
- Heart rate
Webhooks and tokens, renewed for you
Switch live sync to webhook mode and the subscriptions are created for you, one per data type. They expire after ninety days, so a monthly job renews them, and token refresh keeps a user connected in January syncing in December.
- Webhooks
- Monthly renewal
- OAuth 2.0
Continuous data, not just daily totals
Heart rate arrives across the day and night, HRV at five-minute intervals through sleep and sleep stages in thirty-second epochs, so you can look at a night rather than one number for it.
- 24/7 heart rate
- 30-second sleep stages
Health scores computed in your deployment
Oura's own sleep, readiness and activity scores arrive as data, as Oura calculates them. Health scores from our science team run alongside them inside your deployment, validated before release, and are part of Pro.
- Oura 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 Oura relationship stays yours
Credentials issued in your name, data going straight from Oura into your account.
- Your Oura app
- 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 Oura 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 Oura app
Create an application at cloud.ouraring.com and bring the client ID and secret. Oura is self-serve, so this is minutes rather than weeks, and the credentials stay in your name.
Oura developer portal - 03
Connect a user
Your user authorises through Oura's own consent screen. Open Wearables requests the scopes it needs and handles the token lifecycle, including the refresh that keeps the connection alive months later.
- 04
Query the user, not the provider
Oura data arrives in the same schema as every other source, in your own database, so your application code carries no Oura-specific branches.
Oura 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] Oura credentials | Theirs, already approved | Yours to obtain | Yours, in your own name |
| [02] Time to credentials | None for you | Short, Oura is self-serve | Short, and the setup guide is written |
| [03] Webhook endpoint | They host it | You build, host and renew it | Your deployment hosts it, renewal automated |
| [04] Where Oura 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] Oura 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
Oura 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.
Oura is one integration in the same API
You query a user rather than a provider, so somebody with a ring and a watch comes back in one shape. Adding the watch 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 Oura connected and validated on real accounts.
FAQ
Do you have more questions?
Does Oura have an API?
Yes. The Oura API is an official developer API with OAuth, and you register an application at cloud.ouraring.com to get a client ID and secret. It is self-serve, so you are not waiting on an approval queue.
Which version of the Oura API does this use?
Version two, against api.ouraring.com/v2. That is the current one and the one Oura documents.
Do we need our own Oura credentials?
Yes, and that is the point. The application is registered in your name, so the data relationship is between you and Oura. Open Wearables handles the connection flow, the scopes and the token lifecycle.
Which scopes does this need?
personal, daily, heartrate, workout, session, spo2, ring_configuration and heart_health by default. That covers the daily scores, continuous heart rate, blood oxygen, VO2 max and cardiovascular age. The setup guide in the docs has the exact string.
Does it support webhooks or only polling?
Both, and the webhooks register themselves. Switch live sync to webhook mode and Open Wearables creates the subscriptions for sleep, readiness, activity, SpO2, heart health and workouts. Hourly polling runs underneath as a safety net.
Oura subscriptions expire. Is that handled?
Yes. Oura webhook subscriptions lapse after ninety days, which is unusual among the sources we connect. A scheduled job renews every active subscription monthly, well ahead of the deadline, and retries if a renewal fails. This is the kind of thing that breaks quietly in a build-it-yourself integration, months after whoever wrote it moved on.
Do we get continuous heart rate from Oura?
Yes. Heart rate arrives as samples across the day and night, not only during exercise, and HRV at five-minute intervals through sleep. That is one of the main reasons teams pick the ring.
How detailed is the sleep data?
A stage-by-stage timeline rather than nightly totals. Oura returns the hypnogram in thirty-second epochs, with a five-minute version as the fallback, so you can chart the night rather than read one number for it. Efficiency, time in bed and nap detection come with it.
Can we get heart rate during a workout?
Not on the workout record. Oura's workouts carry type, intensity, calories, distance and duration, and heart rate is not among them. The continuous stream still covers that period, so the data exists, just not attached to the workout.
What does the temperature reading mean?
It is a deviation from that user's own baseline rather than an absolute body temperature. Useful for spotting a change, not for reporting a number in degrees.
How far back does the first sync go?
Ninety days by default when a user connects. You can switch that off and request a specific range yourself, up to a year back.





