undo
Put a timeline or a canvas back as it stood before its last edit, or with to_revision restore any kept revision, forward or back (which is how an undo is redone). The reply names the revision it reversed, what that edit did, and how many steps remain. An edit made by someone else is named and left alone unless to_revision names it. A timeline keeps 50 revisions and a canvas 20. The reply carries the timeline as it now reads. Free.
Authorizations
An API key (es_live_…) from Settings, under API keys, or an OAuth access token.
Headers
Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.
The workspace this one call acts in, when it is not the default: for a key or a connected agent, one of the workspaces the user allowed it.
Body
The timeline id.
A canvas instead of a timeline. Give one or the other.
A revision from get_timeline history or get_canvas history, or any write response (revision_before / revision_after), to restore instead of stepping back one.
Optional: one sentence shown to the user beside this action.
600
