GET /api/kiwi/events for live updates in the web UI or external integrations.
There is no WebSocket endpoint. SSE is the only real-time transport.
Event stream
SSE output
Event types
| Event | When it fires |
|---|---|
write | A file was created or updated |
delete | A file was deleted |
bulk | A bulk write completed |
import | An import job finished |
Client guidance
The SSE connection stays open indefinitely. Implement reconnection logic with backoff. Send the
Last-Event-ID header to resume where you left off.- Use
curl -N(no buffer) or a native SSE client library. - Authenticate the same way as other
/api/kiwiroutes when auth is enabled. - Events fire after the full pipeline: storage → git → index → broadcast.
Pipeline parity
Writes through any protocol (NFS, S3, WebDAV, FUSE, REST, MCP) emit the same event types.Related documentation
Agent interface
Protocol overview.
Webhooks
Outbound HTTP notifications (complementary to SSE).