Documentation Index
Fetch the complete documentation index at: https://cloud-docs.mentra.glass/llms.txt
Use this file to discover all available pages before exploring further.
Get Transcript History
Retrieve transcription history for an app session.Endpoint
Headers
Parameters
| Parameter | Type | Description |
|---|---|---|
appSessionId | string | The app session identifier (in URL) |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
duration | number | Seconds to look back from now |
startTime | string | Start time for transcript range (ISO format) |
endTime | string | End time for transcript range (ISO format) |
language | string | Language code (e.g., ‘en-US’, ‘fr-FR’), defaults to ‘en-US’ |
You must provide either
duration OR startTime/endTime parameters.Response
Success (200):Implementation
- File:
packages/cloud/src/routes/transcripts.routes.ts:18-70 - Service: Uses
TranscriptionManager.getTranscriptHistory() - Session: Extracts user session ID from app session ID by splitting on ’-‘
Time Range Options
-
Duration-based (most common):
Returns last 5 minutes (300 seconds) of transcripts
-
Time range:
Returns transcripts within specific time range
Transcript Segment Structure
Each segment is aTranscriptSegment object containing:
speakerId: Optional speaker identifierresultId: Unique identifier for this transcript segmenttext: The transcribed texttimestamp: ISO timestamp when the segment was createdisFinal: Whether this is a final or interim result
Language Support
The system supports multiple languages for transcription. Common language codes include:en-US- English (US) - defaultes-ES- Spanish (Spain)fr-FR- French (France)de-DE- German (Germany)it-IT- Italian (Italy)pt-BR- Portuguese (Brazil)ja-JP- Japanese (Japan)ko-KR- Korean (Korea)zh-CN- Chinese (Simplified)
Session ID Format
TheappSessionId parameter follows the format: {userSessionId}-{appIdentifier}
For example: session123-com.example.app
The endpoint extracts the user session ID by splitting on the first hyphen.
Error Codes
| Code | Description |
|---|---|
| 400 | Missing required parameters (duration, startTime, or endTime) |
| 404 | Session not found |
| 500 | Internal server error |
Notes
- Transcripts are stored in memory per user session
- Historical data availability depends on session duration
- Language filtering returns only transcripts in the specified language
- Apps should authenticate using API key headers (though validation is not shown in the current implementation)
- Console logs are present for debugging (lines 26, 59)