Docs

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

POST
/v1/timeline-events

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

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
  • serial string required

    Device serial number (from list_devices, e.g. "AA:BB:CC:DD:EE:FF")

  • at string required

    When the event fires: ISO 8601 datetime with timezone offset, e.g. "2026-06-11T22:30:00-07:00". Truncated to minute granularity.

  • zones object[] required min items 1

    Zone actions to apply at the scheduled time. Each needs temp and/or on.

  • label string

    Optional 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

200 OK application/json
  • id string required

    The event id cancel_timeline_events takes

  • label string
  • scheduledTime string required

    ISO 8601

  • status string required
  • zones object[] required

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