> 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/inactivity-seconds-includes-sleep.md).

# Does inactivity\_seconds include sleep?

For providers that don't report inactive time directly (like Garmin), `inactivity_seconds` is computed as **24 hours minus active time**. So it includes sleep and is **not** a sedentary-time metric.

For sedentary behaviour, use the more granular `activity_levels_samples` instead, since most wearable APIs don't expose a dedicated sedentary-minutes field.
