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

  • Base URL
    https://stardrift.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://stardrift.ai/internal/realtime-access
  • Auth
    none declared

Request body

tokenstring required
trip_idstring required

Response

Successful Response

user_idstring required

Changes

No recorded changes to this operation across all 34 revisions of this API.