Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AssemblyAI/realtime-transcription-browser-js-example/llms.txt
Use this file to discover all available pages before exploring further.
GET /token
Generates a temporary authentication token for AssemblyAI’s real-time transcription service.Request
Response
A temporary authentication token valid for 60 seconds. This token is used to establish a WebSocket connection with AssemblyAI’s streaming service.
Error Handling
Error Response (500 Internal Server Error)- The AssemblyAI API key is invalid or missing
- The token generation service is unavailable
- Network connectivity issues prevent token generation
Implementation Details
The endpoint is defined inserver.js:10-17 and internally calls the generateTempToken() function with a 60-second expiration time (the maximum allowed value is 600 seconds).
Usage Example
public/index.js:83-90.