Docs

Sleep configuration

Split a two-zone sleeper

For a user who holds both zones of a bed alone: keeps them on one zone and frees the other for a partner (as a guest sleeper), so each side can be set on its own.

POST
/v1/sleep-configuration/split

The step before swap_zones when someone joins the bed.

Request parameters

Headers
Authorization string required

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

Body application/json
  • user_id string (uuid)

    Target user id (from list_devices shared_with). Defaults to the authenticated user. Anyone on a bed may move themselves; acting on another user needs the owner or admin role on a shared bed.

Response parameters

200 OK application/json
  • success boolean required
  • anonymousUserId string required

    The new guest sleeper on the freed zone

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: split_zones