internal

User Realtime Access

Authorize a WebSocket subscription to a user:{user_id} Y.Doc.

Used by Hocuspocus to gate the user-scoped notifications channel. Allowed iff the Stytch token resolves to the same internal user as the requested document — i.e. user A can only subscribe to user:A.

post/internal/user-realtime-access

Request body

tokenstring required
user_idstring required

Response

Successful Response

user_idstring required

Changes

No recorded changes to this endpoint across all 1 revision of this API.