- WebSocket for long-lived interactive clients that may want to change subscriptions after connecting
- SSE for simpler browser-friendly one-way event delivery
POST /ws/token.
1. Mint a realtime token
https://api.capout.ai or wss://api.capout.ai.
WebSocket example
SSE example
Scoping subscriptions
You can scope the initial stream in two ways:- Repeat
document_idto follow specific documents - Send
recent=10to follow the latest organization-owned documents
Reconnect behavior
Handle disconnects with token expiry in mind:- Detect closure or error.
- Mint a fresh realtime token.
- Re-open the connection with the same document scope.