POST /v1/sessions/{sessionId}/rollback
Rollback to checkpoint — Restore the session to the state captured in the specified checkpoint.
ivy_ API key (Authorization: Bearer ivy_… or X-Ivy-Api-Key), a Clerk session JWT (Authorization: Bearer …) or the Clerk __session cookie (browser sessions). See Authentication.Restore the session to the state captured in the specified checkpoint. The session version is incremented; subsequent messages are truncated.
Request
Path parameters
Session UUID (UUIDv7 — time-ordered)
Request body
ID of the checkpoint to restore
Responses
200 OK
Response shape:
Graph step number of the restored checkpoint
New session version after rollback
400 Bad Request
Response shape: object
401 Unauthorized
Response shape: object
404 Not Found
Response shape: object
Was this page helpful?
GET /v1/sessions/{sessionId}/checkpoints
List checkpoints — Returns checkpoint history for this session, ordered by creation time descending. Use source to filter by what triggered the checkpoint.
GET /v1/sessions/{sessionId}/interrupts
List pending interrupts — Returns tool calls awaiting human approval.