Skip to main content
POST
Rewinds the session to the state before the last prompt was executed. File changes made by the agent are reverted. Required scope: sessions:write

Path Parameters

string
required
The session ID (e.g. ses_abc123).

Headers

string
required
Bearer token. Example: Bearer runtm_xxx

Response

string
Session ID.
boolean
Whether the rewind was successful.
array
List of file paths that were reverted.