---
title: "Restore session into workspace"
method: POST
path: "/experimental/workspace/{id}/session-restore"
---

# Restore session into workspace

`POST /experimental/workspace/{id}/session-restore`

Replay a session's sync events into the target workspace in batches.

## Path parameters

- `id` string, required

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `sessionID` string, required

## Response `200`

Session replay started

- object
  - `total` integer, required

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/kaaass/apis/opencode.md) · [All operations](https://skmtc.net/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kaaass/opencode/versions/8bb9a15bd144/schema)
