Get a session
/v2/live/{id} A session's status and options and, once it ended, its transcript.
Authentication: your API key in the x-gladia-key header (Authentication).
Example
curl https://eu1.api.gladia.io/v2/live/0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b \ -H "x-gladia-key: $GLADIA_API_KEY"import os
from gladiaio_sdk import GladiaClient
client = GladiaClient( api_key=os.environ["GLADIA_API_KEY"], api_url=os.environ.get("GLADIA_API_URL", "https://eu1.api.gladia.io"),)
session = client.live_v2().get("0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b")print(session.status, session.result)import { GladiaClient } from "@gladiaio/sdk";
const client = new GladiaClient({ apiKey: process.env.GLADIA_API_KEY, apiUrl: process.env.GLADIA_API_URL ?? "https://eu1.api.gladia.io",});
const session = await client.liveV2().get("0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b");console.log(session.status, session.result);Try it
Parameters
-
idstring · path requiredIdentifier of the session (
idofPOST /v2/live).
Responses
200 The session.
-
idstring requiredIdentifier of the session.
-
request_idstring requiredIdentifier to quote to support.
-
version2default:
2 -
statusstring requiredqueued: created, no WebSocket yet;processing: streaming (or dropped and still resumable);done: ended, the result is there;error: the session failed.one of:
queued,processing,done,error -
created_atstring requiredCreation date (ISO 8601, UTC).
-
completed_atstring requiredEnd date, once
doneorerror. -
custom_metadataobject requiredThe init body's
custom_metadata. -
error_codeinteger required500when the session failed, elsenull. -
kind"live"default:
"live" -
fileobject requiredThe session's audio, once it ended.
5 fields
-
idstring requiredIdentifier of the session.
-
filenamestring requiredName of the recording,
nullwhen the audio was not recorded. -
sourcestring requiredDownload URL of the recording (
GET /v2/live/{id}/file),nullwhen not recorded. -
audio_durationnumber requiredAudio received, in seconds.
-
number_of_channelsinteger required
-
-
request_paramsobject requiredThe session's options, as validated.
-
resultobject requiredThe transcript, once
done.4 fields
-
metadataobject required4 fields
-
audio_durationnumber requiredAudio received, in seconds.
-
billing_timenumber requiredBilled duration, in seconds.
-
number_of_distinct_channelsinteger requiredNumber of audio channels.
-
transcription_timenumber requiredHow long the session ran, in seconds.
-
-
transcriptionobject required3 fields
-
languagesarray of string requiredLanguages heard, in order of appearance.
-
utterancesarray of object requiredEvery final utterance, by start time.
11 fields
-
textstring requiredThe transcript. With named entity recognition or PII redaction on, it carries their inline elements (
<ner:name id="1">…</ner:name>,<pii:email id="1"/>). -
startnumber requiredStart, in seconds from the start of the audio.
-
endnumber requiredEnd, in seconds from the start of the audio.
-
languagestring requiredLanguage spoken (ISO 639-1).
-
confidencenumber requiredConfidence, from 0 to 1.
-
channelinteger requiredAudio channel the utterance was heard on, from 0.
-
speakerintegerSpeaker number, with
diarization.default:
null -
wordsarray of object requiredThe words with their timestamps.
5 fields
-
wordstring requiredThe word, with its leading space when it follows another.
-
startnumber requiredStart of the word, in seconds from the start of the audio.
-
endnumber requiredEnd of the word, in seconds from the start of the audio.
-
confidencenumber requiredConfidence, from 0 to 1.
-
speakerintegerSpeaker of the word, with
diarization.default:
null
-
-
text_rawstringThe transcript without inline elements (with named entity recognition; never with PII redaction).
default:
null -
entitiesarray of objectThe entities of the utterance, with named entity recognition or PII redaction.
default:
null7 fields
-
labelstringEntity type, for example
name,phone_number,location_city.default:
null -
idintegerThe entity's number in the session, per type: the same person is always the same number.
default:
null -
actionstringner: tagged; otherwise how the personal data was redacted.default:
null -
scorenumberConfidence, from 0 to 1.
default:
null -
textstringThe entity as heard (never sent for masked personal data unless
pii.return_entities).default:
null -
startintegerOffset of the entity's element in
text, in characters.default:
null -
endintegerEnd offset of the entity's element in
text, in characters.default:
null
-
-
forced"max_duration"Set when the utterance was closed by
maximum_duration_without_endpointingrather than by a pause.default:
null
-
-
full_transcriptstring requiredThe final utterances' text, joined.
-
-
translationobjectWith
realtime_processing.translation.default:
null5 fields
-
successboolean required -
is_emptyboolean requiredtruewhen nothing was translated. -
exec_timenumber required -
erroranydefault:
null -
resultsarray of object requiredOne result per target language.
6 fields
-
erroranyAlways
null.default:
null -
languagesarray of string requiredThe target language of this result.
-
full_transcriptstring requiredThe translated text, joined.
-
utterancesarray of object requiredThe translated utterances, one per final.
11 fields
-
textstring requiredThe transcript. With named entity recognition or PII redaction on, it carries their inline elements (
<ner:name id="1">…</ner:name>,<pii:email id="1"/>). -
startnumber requiredStart, in seconds from the start of the audio.
-
endnumber requiredEnd, in seconds from the start of the audio.
-
languagestring requiredLanguage spoken (ISO 639-1).
-
confidencenumber requiredConfidence, from 0 to 1.
-
channelinteger requiredAudio channel the utterance was heard on, from 0.
-
speakerintegerSpeaker number, with
diarization.default:
null -
wordsarray of object requiredThe words with their timestamps.
-
text_rawstringThe transcript without inline elements (with named entity recognition; never with PII redaction).
default:
null -
entitiesarray of objectThe entities of the utterance, with named entity recognition or PII redaction.
default:
null -
forced"max_duration"Set when the utterance was closed by
maximum_duration_without_endpointingrather than by a pause.default:
null
-
-
sentencesarray of any requiredAlways empty.
-
subtitlesarray of any requiredAlways empty.
-
-
-
messagesarray of any requiredThe final transcript messages, as sent on the WebSocket.
-
{ "id": "0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b", "request_id": "G-0199d7a2", "version": 2, "status": "queued", "created_at": "string", "completed_at": "string", "custom_metadata": {}, "error_code": 0, "kind": "live", "file": { "id": "string", "filename": "string", "source": "string", "audio_duration": 0.5, "number_of_channels": 0 }, "request_params": {}, "result": { "metadata": { "audio_duration": 0.5, "billing_time": 0.5, "number_of_distinct_channels": 0, "transcription_time": 0.5 }, "transcription": { "languages": [ "string" ], "utterances": [ { "text": "Hello, how can I help you?", "start": 0.5, "end": 0.5, "language": "en", "confidence": 0.5, "channel": 0, "speaker": 0, "words": [], "text_raw": "string", "entities": [], "forced": "max_duration" } ], "full_transcript": "string" }, "translation": { "success": false, "is_empty": false, "exec_time": 0.5, "error": null, "results": [ { "error": null, "languages": [], "full_transcript": "string", "utterances": [], "sentences": [], "subtitles": [] } ] }, "messages": [ null ] }}401 No API key, or an unknown one.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}403 The key may not do this (its scopes, or the addresses it may be used from).
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}404 No such session for your account.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}503 The service cannot answer right now: try again.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}