---
title: "List sync events"
method: POST
path: "/sync/history"
---

# List sync events

`POST /sync/history`

List sync events for all aggregates. Keys are aggregate IDs the client already knows about, values are the last known sequence ID. Events with seq > value are returned for those aggregates. Aggregates not listed in the input get their full history.

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object

## Response `200`

Sync events

- object[]
  - `id` string, required
  - `aggregate_id` string, required
  - `seq` number, required
  - `type` string, required
  - `data` object, 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)
