Skip to main content

Get a WebSocket token

GET 

/api/ws-token

Issues a token for opening the real-time editing WebSocket at /documents/{id}?token=..., which is where document body content is loaded and synced. The token is valid for five minutes, can be used for any document the caller can access, and is kept in server memory, so a restart invalidates it. Access to the document is checked when the socket connects, and editing over the socket requires write access. Available to users and guests.

Responses​

WebSocket token, valid for five minutes.