> ## Documentation Index
> Fetch the complete documentation index at: https://openwearables.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Health Scores

> OW platform provides two custom health scores backed by science. The scores are designed to help users understand their habits and should not be treated as a clinical tool.

> [!WARNING]
>
> **Open Wearables native scores (Sleep Score and Resilience Score) are deprecated and will be removed from this repository on November 6, 2026.** They will be distributed as a separate package, available as an extension under a different license.
>
> The `GET /api/v1/users/{user_id}/health-scores` endpoint is not going away. Starting November 6, Open Wearables stops computing new OW scores. Scores computed before that date stay in the database and are still returned. See [Deprecation of OW native scores](#deprecation-of-ow-native-scores).

> [card] [Sleep Score](https://openwearables.io/docs/scores/sleep-score.md)
>
> A nightly 0-100 score measuring sleep quality across four pillars: duration, stages, consistency, and interruptions.

> [card] [Resilience Score](https://openwearables.io/docs/scores/resilience-score.md)
>
> A weekly 0-100 score measuring autonomic nervous system stability through Heart Rate Variability Coefficient of Variation.

The scores have been developed by a team of scientists and ML engineers and interpret physiological data into actionable score metric.

***

## Interpreting the Scores

Both scores use a 0-100 scale. A higher score indicates a better outcome.

| Score | Scale | Higher score means |
| - | - | - |
| Sleep Score | 0-100 | Better sleep quality |
| Resilience Score | 0-100 | Better HRV consistency |

Neither score is a diagnostic tool. They are intended to surface trends and patterns over time.

***

## Provider Scores vs. OW Native Scores

In addition to the OW native scores described above, users may also see scores fetched directly from their connected device providers - for example, a sleep score from Garmin or a readiness score from Oura. These provider scores are always clearly labelled with their source and are kept separate from the OW computed scores. They do not influence each other.

This means you can surface both in your application - the OW scores for a consistent cross-device baseline, and the provider scores for users who want to compare against what their device reports.

A provider's nightly sleep score is recorded at the end of the night it scores, the user's wake-up, with that night's `zone_offset`, so it belongs to the day the user wakes up. Polar's circadian bedtime score, also in the sleep category, is recorded at the start of its period.

### Which OW score the API returns

OW can compute a score from each of a user's data sources. `GET /api/v1/users/{user_id}/health-scores` returns one OW score per category and day: the one from the source ranked highest in the [provider and device type priorities](https://openwearables.io/docs/developer-portal/settings/priorities.md), the same ranking the summaries use. If one source has more than one sleep score on a day, for example an unflagged nap, the longest sleep is returned. Each score's `source` tells which source it came from. The pick is made over the whole day, so with a `start_date` or `end_date` inside a day, that day's score is returned only if it falls within the range. Provider scores are always returned as they are.

***

## Disabling OW Native Scores

Before November 6, 2026, self-hosted deployments compute both OW scores by default. To turn them off, set `OW_SCORES_ENABLED=false` in the backend `.env`.

Provider scores are still stored and shown. Scores computed before the switch stay in the database. Re-enabling backfills the last `SCORE_BACKFILL_DAYS` (30 by default).

***

## Deprecation of OW native scores

On November 6, 2026 the Sleep Score and Resilience Score computed by Open Wearables are removed from this repository. They will be distributed as a separate package, available as an extension under a different license.

What stays the same:

* The [`GET /api/v1/users/{user_id}/health-scores`](https://openwearables.io/docs/api-reference/external:-health-scores/list-health-scores) endpoint, its parameters and response format.
* Scores fetched from connected providers (Garmin, Oura, Whoop, Polar, and others).
* OW scores computed before November 6. They stay in the database and the endpoint keeps returning them.

What changes: Open Wearables no longer computes new Sleep Score and Resilience Score records.

To check whether your integration uses OW native scores, look for records with `"provider": "internal"` in the response. You can also filter for them directly:

```bash theme={null}
curl -X GET "http://localhost:8000/api/v1/users/{user_id}/health-scores?provider=internal" \
  -H "X-Open-Wearables-API-Key: YOUR_API_KEY"
```

These are the records that are no longer created starting November 6:

| Score | `provider` | `category` |
| - | - | - |
| Sleep Score | `internal` | `sleep` |
| Resilience Score | `internal` | `resilience` |

Sleep scores from providers use the same `sleep` category but carry the provider name (for example `"provider": "oura"`), so they are not affected.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.