Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ route.ts
File
route.ts
apps/sim/app/api/speech/token/route.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ createHash } from
'node:crypto'
2
import
{ db } from
'@sim/db'
3
import
{ chat, workflow } from
'@sim/db/schema'
4
import
{ createLogger } from
'@sim/logger'
Callers
nothing calls this directly
Calls
14
createLogger
Function · 0.90
withRouteHandler
Function · 0.90
getWorkspaceBilledAccountUserId
Function · 0.90
verifyWorkspaceMembership
Function · 0.90
getClientIp
Function · 0.90
checkActorUsageLimits
Function · 0.90
recordUsage
Function · 0.90
getCostMultiplier
Function · 0.90
getErrorMessage
Function · 0.90
hashVoiceToken
Function · 0.85
checkRateLimitDirect
Method · 0.80
error
Method · 0.80
Tested by
no test coverage detected