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.
6 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 -
recordingobjectThe workspace records its audio: whether it was recorded, and why not.
default:
null2 fields
-
statusstring requiredrecorded: nothing lost;partial: some audio lost;dropped: none kept.one of:
recorded,partial,dropped -
reasonstring requiredThe first reason audio was lost,
nullwhen nothing was (no_spool: the platform has no audio spool to record it).
-
-
-
request_paramsobject requiredThe session's options, as validated.
-
modelsobjectThe model the session asked for and the models that served it.
nullfor a session created before this field existed (not known).default:
null4 fields
-
requestedstring requiredThe model the session asked for,
nullwhen it named none: the default model then ran. Gladia's SDK sendssolaria-1by default; where no solaria-1 serves the session, it counts as none. -
servedarray of object requiredEvery model that served the session, in order: a handoff onto another model, or a fallback, adds one. Empty until its WebSocket opens.
4 fields
-
modelstring requiredThe model that ran,
nullwhen not known. -
reasonstring requiredWhy this model ran:
requested, the model the session named;workspace_default/cluster_default, it named none and the workspace's or the platform's default model ran;any_model, it named none and no default could take it;language_route, the platform's language routing chose the model for the session's language (it named none, or named a model that does not transcribe that language);fallback, the model it named had no capacity and another model served it;pinned/runtime, internal test routes.one of:
requested,workspace_default,cluster_default,any_model,language_route,fallback,pinned,runtime -
started_atstring requiredWhen this model started serving the session (ISO 8601).
-
profilestringThe latency profile it ran with, present only when it is not the one the session asked for: no GPU running the asked profile was up, and the nearest profile served the session at once instead of making it wait for a GPU to start.
default:
null
-
-
sentstringThe
modelof the session's init body exactly as sent,nullwhen the body had none (request_params.modelthen shows the default,solaria-1). Tells asolaria-1you sent from one you left out, whichrequesteddoes not. Absent for a session recorded before it was kept.default:
null -
noticestringSet when the session sent
solaria-1, a former real-time model, and ran on another model: which one, and what to do. Absent otherwise.default:
null
-
-
finalizationobjectWith
finalization: true: the post-call pass of the call, a pre-recorded job over its recording (id,result_url:GET /v2/pre-recorded/{id}), orerror: why it was not submitted.nullwithout the option or before the session ends.default:
null4 fields
-
idstringThe pre-recorded job's id.
default:
null -
result_urlstringWhere its result is read:
GET /v2/pre-recorded/{id}.default:
null -
errorstringWhy no pass was submitted:
not_recorded(the workspace does not record its audio, or the call had none),interrupted(the connection dropped and the session was not resumed),refused(no pre-recorded host runs it, or the workspace's queue is full),invalid_options,no_public_addressorunavailable.default:
null -
statusintegerWith
refused: the HTTP status.default:
null
-
-
resultobject requiredThe transcript, once
done; whenerror, what was transcribed before the failure.6 fields
-
metadataobject required4 fields
-
audio_durationinteger requiredAudio received, rounded to the whole second. The exact duration is
file.audio_duration. -
billing_timeinteger requiredBilled duration, rounded to the whole second. The usage counters meter the exact seconds (
GET /admin/usage, the workspace's Usage page). -
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.
14 fields
-
textstring requiredThe transcript. With PII redaction on, it carries its inline elements (
<pii:email id="1"/>); named entities are written inline (<ner:name id="1">…</ner:name>) only withinline_tags: true. -
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 -
committed_textstringOn a partial, with
messages_config.receive_committed_text: its first words, those the model will no longer change. It trailstextby about one decoding step.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
-
-
language_supportedfalsefalsewhen the language heard is one the model does not transcribe (with the language detected): the text is then unreliable. Absent otherwise.default:
null -
forced"max_duration"Set when the utterance was closed by
maximum_duration_without_endpointingrather than by a pause.default:
null -
speculationobjectWith
end_of_turn.speculation, on the final that closes a turn: the verdict of the speculative LLM turn (thespeculationmessage holds the same).default:
null7 fields
-
eager_textstringThe text of
end_of_turn.data.text, the one compared. Absent on a session that masks PII (piiin a mode other thantag): the partial it went out on is not masked.default:
null -
eager_endnumberSeconds of audio when the turn ended.
default:
null -
similaritynumberHow close the final is to
eager_text, from 0 (nothing in common) to 1 (the same). The scorerecommendationis decided on.default:
null -
lexical_similaritynumberThe same, on the words alone.
default:
null -
recommendationstring requiredkeep: the LLM call started onend_of_turnstill answers what was said;discard: cancel it and answer the final.one of:
keep,discard -
reasonstringWhy:
same_textandsimilarkeep;text_changed,caller_went_onandnew_entitydiscard (caller_went_on: the speaker kept talking after the end of turn, so the turn was not over;new_entity: the final names an entity the eager text lacked, seenew_entities). The engine may add values, read it as a label.default:
null -
new_entitiesarray of objectWith
named_entity_recognitionorpiion: the entities of the final whose words are not ineager_text;[]when there is none;nullwhen not checked (neither add-on on, orentities: false).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.
14 fields
-
textstring requiredThe transcript. With PII redaction on, it carries its inline elements (
<pii:email id="1"/>); named entities are written inline (<ner:name id="1">…</ner:name>) only withinline_tags: true. -
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 -
committed_textstringOn a partial, with
messages_config.receive_committed_text: its first words, those the model will no longer change. It trailstextby about one decoding step.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 -
language_supportedfalsefalsewhen the language heard is one the model does not transcribe (with the language detected): the text is then unreliable. Absent otherwise.default:
null -
forced"max_duration"Set when the utterance was closed by
maximum_duration_without_endpointingrather than by a pause.default:
null -
speculationobjectWith
end_of_turn.speculation, on the final that closes a turn: the verdict of the speculative LLM turn (thespeculationmessage holds the same).default:
null
-
-
sentencesarray of any requiredAlways empty.
-
subtitlesarray of any requiredAlways empty.
-
-
-
summarizationobjectWith
post_processing.summarization.default:
null6 fields
-
successboolean requiredfalse: the LLM failed, refused or took over 30 s. -
is_emptyboolean requiredtruewhen nothing was summarized (or it failed). -
exec_timenumber requiredSeconds the summary took.
-
erroranyNull on success, else
{status_code, exception, message}.default:
null -
resultsstring requiredThe summary, null when empty or failed.
-
partialbooleantrue: the session moved to another connection (a reconnection, a GPU handoff) and the summary covers the transcript since that move only.default:
null
-
-
language_detectionobjectOn a session whose model follows the language spoken: the last
language_detectionthe engine sent.default:
null6 fields
-
languagestring requiredThe language spoken (ISO 639-1).
-
confidencenumber requiredHow sure the engine is.
0 to 1
-
speech_snumberThe seconds of speech it decided on.
default:
null -
low_confidencebooleantrue: too unsure to act on; the session keeps its model.default:
false -
modelstringThe detector that decided.
default:
null -
alternativesarray of objectThe runners-up, the likeliest first.
2 fields
-
languagestring requiredAnother language it may be (ISO 639-1).
-
confidencenumber required0 to 1
-
-
-
messagesarray of any requiredThe final transcript messages, as sent on the WebSocket.
-
-
feedbackobjectYour rating of the session (
POST /v2/live/{id}/feedback),nulluntil you rate it. Returned byGET /v2/live/{id}, not by the list.default:
null3 fields
-
ratingstring requiredgoodorbad.one of:
good,bad -
commentstring requiredWhy, as you wrote it; null without a comment.
-
rated_atstring requiredWhen it was rated (ISO 8601, UTC); a new rating replaces the previous one.
-
{ "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, "recording": { "status": "recorded", "reason": "no_spool" } }, "request_params": {}, "models": { "requested": "string", "served": [ { "model": "solaria-3", "reason": "requested", "started_at": "string", "profile": "medium" } ], "sent": "string", "notice": "string" }, "finalization": { "id": "string", "result_url": "string", "error": "string", "status": 0 }, "result": { "metadata": { "audio_duration": 0, "billing_time": 0, "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, "committed_text": "I would like to book", "words": [], "text_raw": "string", "entities": [], "language_supported": false, "forced": "max_duration", "speculation": { "eager_text": "string", "eager_end": 0.5, "similarity": 0.5, "lexical_similarity": 0.5, "recommendation": "keep", "reason": "string", "new_entities": [] } } ], "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": [] } ] }, "summarization": { "success": false, "is_empty": false, "exec_time": 0.5, "error": null, "results": "string", "partial": false }, "language_detection": { "language": "fr", "confidence": 0.93, "speech_s": 2.1, "low_confidence": false, "model": "language-id-v2", "alternatives": [ { "language": "en", "confidence": 0.04 } ] }, "messages": [ null ] }, "feedback": { "rating": "good", "comment": "string", "rated_at": "2026-10-12T09:04:17.210Z" }}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_code": "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_code": "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_code": "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_code": "string"}