Schedules
Get sleep schedules
Returns sleep schedules keyed by user id, for you and everyone you may view on shared beds: `week` (per day name, the recurring schedule: enabled, alarm_enabled, and phases bedtime / night / dawn / alarm with clock time and temp_c), `nights` (tonight and the next nights as the bed will run them, including Orion Intelligence's changes and one-night edits, with `changes` saying what Orion Intelligence changed and why), `programs` (temperature programs Orion Intelligence runs over a range of nights), `timezone` and `today` (the current sleep day).
alarm_enabled is the alarm phase on: it wakes you at the alarm time and turns the bed off after it. Read this before editing a schedule. Pass user_id to get one user.
Request parameters
Authorization string requiredYour API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.
user_idstring (uuid)Only this user. Defaults to everyone you may view.
daysinteger min 1max 30How many nights from tonight to include, 1–30. Defaults to 1.
Response parameters
schedulesrecord<string, object> requiredKeyed by user id
Errors
Every error answers { "error": { "code", "message" } }.
get_sleep_schedules