Mint Stream Input Token
Mint Stream Input Token
Mint a short-lived JWT for browser clients connecting to the streaming WebSocket.
POST
Mint Stream Input Token
Overview
Mints a short-lived JWT scoped to your account that can be passed as thetoken query parameter when opening Realtime Speech (WebSocket). Call this endpoint from your backend so browser clients never see your long-lived API key.
Tokens are valid for 5 minutes and can only authorize a WebSocket session against the same org that minted them.
Headers
string
required
Your API key for authentication.
Body Parameters
This endpoint takes no body. POST an empty body or{}.
Response
string
JWT to pass as
?token=<token> on wss://api.bland.ai/v2/tts/ws.number
Lifetime of the token. Currently
300 (5 minutes).null | array
null on success.Docs for agents: llms.txt