internal

Realtime Access

Resolve a Stytch session token + trip_id into our internal user_id.

Called by Hocuspocus's onAuthenticate to gate WebSocket handshakes. Returns 401 on bad token, 404 on no/insufficient trip access (the latter delegated to verify_trip_access so we share rules with HTTP routes).

post/internal/realtime-access

Request body

tokenstring required
trip_idstring required

Response

Successful Response

user_idstring required

Changes

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