Docs

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).

GET
/v1/schedules

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

Headers
Authorization string required

Your API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.

Query parameters
  • user_id string (uuid)

    Only this user. Defaults to everyone you may view.

  • days integer min 1max 30

    How many nights from tonight to include, 1–30. Defaults to 1.

Response parameters

200 OK application/json
  • schedules record<string, object> required

    Keyed by user id

Errors

Every error answers { "error": { "code", "message" } }.

StatusCodeMeaning
400invalidInvalid input.
401unauthorizedMissing or unsupported API key.
403forbiddenNot allowed on this device or user.
429rate_limitedRate limit exceeded.
503unavailableNot available for this account.
Also an MCP tool: get_sleep_schedules