# Build clients with cursor replay

Source: https://usecns.dev/cortex-topic-build-clients-with-cursor-replay/

[Start here](https://usecns.dev/manual-cortex/)
[CLI commands](https://usecns.dev/commands-cortex/)
[Configuration & integration](https://usecns.dev/cortex-topics/)

Use `protocolVersion: 1` and GET `/api/v1/bootstrap` to obtain seats/models/switchboard/identity, active conversation snapshot/entries and live panes together. Parameters include `seatId` (`seat` alias), `conversationId` (`conv` alias), `sessionKey`, `lite=1`, and `afterEntryId`. Navigation parameters `focus=1`, `stepUp=1` and `fromSeatId` can change focus; they are not pure data-fetch flags. Respect role constraints and the returned active seat/conversation.

The response includes `ok`, `protocolVersion`, `daemonVersion`, `seats`, `activeSeatId`, `activeConvId`, `conversations`, `taskGraph`, `snapshot`, `entries`, `entriesDelta`, `latestEntryId`, `herdrPaneOutput`, `switchboard`, `herdrAgents`, `identity`. Delta requests also echo `afterEntryId`; `lite=1` omits `models` and `ingress`, not the active history. Identity includes authenticated principal/binding and session events. Handle null durable state when focused on a live pane rather than inventing a conversation for it.

Retain the last durable entry ID per seat/conversation. On reconnect, request entries strictly after it with `afterEntryId`; bootstrap drains underlying pages and marks delta responses. `/ws` supports seat/conversation subscriptions with `sinceEntryId` and delta entries. It also pushes agent/tool/task/config updates and `herdr_updated`, `identity_updated`, `switchboard_updated` events. Deduplicate by entry ID and recover state on reconnect rather than appending snapshots as new history. CLI `tail` is not a resumable client.

| API family | Purpose |
| --- | --- |
| GET `/api/v1/health/preflight`, `/api/v1/models`, `/api/v1/seats` | Readiness/configuration, catalog and seat enumeration. |
| `/api/v1/seats/{seat}/conversations/{conversation}` | Snapshot and entries/context/submit/config/fork/abort/compact/reset/classify-system1 operations. Unscoped conversation routes use the default seat. |
| `/api/v1/seats/{seat}/tasks/graph` | Seat task graph/inspection; unscoped equivalent uses default seat. |
| Herdr bridge surfaces | Live session control and terminal observations. |
| `/api/v1/mcp/outbound`, `/mcp` | Outbound mounts and inbound MCP. |
| `/api/v1/channels/slack/*`, `/api/v1/channels/linear/*`, `/api/v1/voice/*` | Channel management and voice sessions/calling. |
| `/api/v1/identity/*`, `/api/v1/ingress/tunnel/*` | Identity/perimeter/pairing and ingress management. |

The wildcards group related routes, not arbitrary valid suffixes. Use the exact [HTTP operations](https://usecns.dev/cortex-topic-use-the-durable-http-api/), [management operations](https://usecns.dev/cortex-topic-administer-through-http/), [identity operations](https://usecns.dev/cortex-topic-manage-identity-through-http/) and [WebSocket messages](https://usecns.dev/cortex-topic-use-websocket-clients/) below. Replaying history for observation or branching does not safely reissue external effects; tool replay safety is separate.