Create realtime token
Mint a short-lived realtime token for WebSocket or SSE authentication.
Connection flow:
- Call
POST /ws/tokenwith yourcapout-api-key. - Read
token,ws_url, andsse_urlfrom the response. - Connect to
wss://api.capout.ai/ws/status?token=<token>for WebSocket updates, orhttps://api.capout.ai/sse/status?token=<token>for Server-Sent Events. - Optionally scope the initial subscription with either
document_id=<document_id>repeated one or more times, orrecent=10to subscribe to the most recent organization-owned documents.
After a WebSocket connection is established, clients can send JSON commands such as {"action":"subscribe","document_ids":["doc_123"]}.
Documentation Index
Fetch the complete documentation index at: https://docs.capout.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Organization-scoped API key used for REST endpoints and for minting realtime tokens.
Response
Successful response
Response body for POST /ws/token.
Short-lived realtime token for query-parameter auth.
"rt_123"
Organization bound to this realtime token.
"org_123"
UTC expiration time for the realtime token.
"2026-04-14T14:45:00Z"
WebSocket path to connect to with ?token=<token>.
"/ws/status"
SSE path to connect to with ?token=<token>.
"/sse/status"