Documentation

All endpoints are versioned under /v1 and require a bearer token.

Authentication

Authorization: Bearer <token>

Channels

A channel is a named stream of events. Create one with:

POST /v1/channels
{ "name": "orders", "retention": "7d" }

Sync endpoint

POST /v1/sync
{ "channel": "orders", "since": 1717000000 }

Streaming

Connect via WebSocket for realtime updates:

wss://api-sync.top/v1/stream?channel=orders