Timeline events
Schedule one-off timeline event
Schedules a ONE-OFF zone change at a future time (e.g. "set zone_a to 18°C at 22:30 tonight").
Must be in the future, at most 7 days out; events on the same zone must be ≥5 minutes apart. Sending the same event again does not add a second one. Events run only on the bed you are on now, on zones that bed has. An event that cannot run within 30 minutes of its time is skipped rather than run late. For recurring nightly behavior use update_sleep_schedules instead; for tonight-only schedule changes use override_sleep_schedule_tonight.
Request parameters
Authorization string requiredYour API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.
serialstring requiredDevice serial number (from list_devices, e.g. "AA:BB:CC:DD:EE:FF")
atstring requiredWhen the event fires: ISO 8601 datetime with timezone offset, e.g. "2026-06-11T22:30:00-07:00". Truncated to minute granularity.
zonesobject[] required min items 1Zone actions to apply at the scheduled time. Each needs temp and/or on.
labelstringOptional label for the event: lowercase slug like "pre_nap_cooling" (matching [a-z0-9_]{1,40}). Defaults to "manual". Labels the sleep schedule uses for its own steps (such as bedtime and turn_off) are refused.
Response parameters
idstring requiredThe event id cancel_timeline_events takes
labelstringscheduledTimestring requiredISO 8601
statusstring requiredzonesobject[] required
Errors
Every error answers { "error": { "code", "message" } }.
schedule_timeline_event