Ellipsis APIReferenceSessions

Sync Agent Session

Sync a Claude Code transcript from a developer laptop. Requires a user token (device-flow `agent login`): the user is part of the sync's idempotency key, so API keys and sandbox tokens are rejected with a 403 rather than silently attributed.

POST
/v1/sessions/sync

Sync a Claude Code transcript from a developer laptop.

Requires a user token (device-flow agent login): the user is part of the sync's idempotency key, so API keys and sandbox tokens are rejected with a 403 rather than silently attributed.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

user-agent?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

One hook-driven transcript sync from a developer laptop. The CLI reads the live on-disk Claude Code transcript, redacts it client-side, gzips it, and POSTs it here — once per turn and at termination.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/sessions/sync" \  -H "Content-Type: application/json" \  -d '{    "cc_session_id": "string",    "transcript_gzip_b64": "string"  }'
{  "accepted": true,  "event_count": 0,  "process_id": "string",  "session_id": "string"}