REST endpoints for retrieving transcription history
/api/transcripts/:appSessionId
at line 18, but it should be just /transcripts/:appSessionId
since the router is mounted at /api
.Parameter | Type | Description |
---|---|---|
appSessionId | string | The app session identifier (in URL) |
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’ |
duration
OR startTime
/endTime
parameters.packages/cloud/src/routes/transcripts.routes.ts:18-70
TranscriptionManager.getTranscriptHistory()
TranscriptSegment
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 resulten-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)appSessionId
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.
Code | Description |
---|---|
400 | Missing required parameters (duration, startTime, or endTime) |
404 | Session not found |
500 | Internal server error |