Insights
Insights and sleep sessions
Read your sleep scores, metrics and nights, and rate nights good or bad.
Get sleep insights returns your sleep data as the Orion app shows it. Rate nights marks nights good or bad.
Insights are always your own. A key cannot read another person's insights.
What insights return
For each period (a day, a week or a month) you get:
- a score and a rating;
- metrics: total sleep, efficiency, sleep stages, sleep debt, consistency, breathing, heart rate, heart rate variability (HRV) and more;
- comparisons with the period before.
For days, the answer also carries the sleep sessions of the anchor day. A sleep session is one stretch of sleep in the bed, usually one night. Each session has:
- the time you fell asleep (onset) and the time you woke;
- sleep stages, heart rate, breath rate and HRV per epoch;
- a
session_id, which Rate nights takes.
An epoch is a fixed slice of the night. Each session's epoch_seconds gives its length, usually 30 seconds, so a value at index 10 covers seconds 300 to 330 of the session. Nightly averages, minimums and maximums come with the series. There is no per-second data.
The response is keyed by granularity:
Each granularity holds its periods, with their scores, metrics and sessions. The reference page lists the fields.
Choose the window
Three query parameters pick which periods come back:
Leave out granularity for the default bundle: the last 14 days, this week and last week, and this month and last month.
The last four weeks, up to the week of 30 November 2026:
Every night's sessions
By default only the anchor day carries its sessions. Add include_all_sessions=true to get the sessions, with their per-epoch series, of every day in the window. It needs granularity=day and returns at most 31 days per call. For a longer range, make several calls with consecutive anchors.
Rate nights
Rate nights marks your own nights good or bad. Send one session_id, or several in session_ids, with one rating.
Each id gets its own result. One failing does not stop the others: