/v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id}/rollbackRollbackToCheckpoint rewinds a session to a checkpoint.
In-place restore: boots a fresh sandbox from the checkpoint and atomically swaps the session's sandbox pointer to it, so the session keeps its same session_id; the old sandbox is then torn down.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
A 401 is returned: Authentication failed due to invalid credentials. A 402 is returned: The team is blocked by the prepayment gate. A 403 is returned: Session belongs to another team. A 404 is returned: The resource was not found. A 409 is returned: Checkpoint is not READY, or session cannot be rolled back in its current state. A 423 is returned: This session is unavailable; contact support. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. A 501 is returned: Rollback is not supported for this agent/substrate. Any other status is an error: There was an unexpected error.