Docs

Timeline events

Cancel timeline events

Cancels pending one-off timeline events by id (from list_timeline_events): send event_id (one) or event_ids (several).

DELETE
/v1/timeline-events

Each id gets its own result { event_id, ok, status }: cancelled or not_found (already run or cancelled), forbidden or error. Cancelling another user's event needs the owner or admin role on the shared device. Only one-off events; change schedule steps with the schedule tools.

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

  • event_id string min length 1

    One event id from list_timeline_events

  • event_ids string[] min items 1max items 200each min length 1

    Several event ids

Response parameters

200 OK application/json
  • results 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: cancel_timeline_events