> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/data-api-sdk/data-model-fields-and-units/resting-vs-average-hr-scope.md).

# What's the difference between resting and average HR in sleep?

**The two fields cover different scopes within the sleep session.**

* `avg_hr_bpm` is the average heart rate across the night.
* `resting_hr_bpm` is usually the lowest heart rate of the night. Some providers supply their own resting value instead of the minimum, and not all providers populate both.

Resting HR carries more significance in **daily** payloads, where it reflects the user's normal day-level resting rate.

Small discrepancies against a source health app are usually a scope mismatch: the sleep payload's `resting_hr_bpm` is averaged across that sleep session, whereas the app typically shows a whole-day value (which corresponds to the daily payload). One-BPM differences can also be SDK rounding and are within normal variance.

Some providers (for example Polar) do not measure resting HR during sleep, so `resting_hr_bpm` is expected to be absent there. This reflects what the provider measures rather than data loss.

See the [data models reference](https://docs.tryterra.co/reference/health-and-fitness-api/data-models) for field definitions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tryterra.co/faq/help-topics/data-api-sdk/data-model-fields-and-units/resting-vs-average-hr-scope.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
