get_activity_intervals
Retrieve interval data for a specific activity, including interval groups and sample-index-based metrics, with legacy flat-list support for existing callers.
Instructions
Return the activity interval container with index fields intact.
The documented shape contains icu_intervals and optionally
icu_groups. A legacy flat list of interval objects is retained for
compatibility with existing callers; all other shapes and mixed rows are
explicit errors. Intervals use upstream sample indices, not invented
elapsed seconds, and an empty valid container remains empty.
average_tidal_volume is VT and average_tidal_volume_min is VE. For
Tymewear their volume scale is relative; no /100-to-liters conversion
applies. average_respiration is BR in breaths/min. See get_metric_definitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| activity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| error | No | ||
| query | No | ||
| source | Yes | ||
| status | Yes | ||
| coverage | Yes | ||
| warnings | No | ||
| pagination | No | ||
| request_id | No | ||
| schema_version | No | 1.0 |