---
title: "Replay sync events"
method: POST
path: "/sync/replay"
---

# Replay sync events

`POST /sync/replay`

Validate and replay a complete sync event history.

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `directory` string, required
  - `events` object[], required
    - `id` string, required
    - `aggregateID` string, required
    - `seq` integer, required
    - `type` string, required
    - `data` object, required

## Response `200`

Replayed sync events

- object
  - `sessionID` string, 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)
