Get a job
/v2/pre-recorded/{id} A job's status and request and, once done, its result.
Authentication: your API key in the x-gladia-key header (Authentication).
Example
curl https://eu1.api.gladia.io/v2/pre-recorded/0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b \ -H "x-gladia-key: $GLADIA_API_KEY"Try it
Parameters
-
idstring · path requiredIdentifier of the job (
idofPOST /v2/pre-recorded).
Responses
200 The job.
-
idstring requiredIdentifier of the job.
-
request_idstring requiredIdentifier of this answer, to quote to support.
-
version2 requiredVersion of the API.
-
statusstring requiredqueued: waiting to start.processing: being transcribed.done: the result is ready.error: the job failed,error_codesays how.one of:
queued,processing,done,error -
created_atstring requiredCreation date (ISO 8601, UTC).
-
completed_atstring requiredWhen the job ended (
doneorerror). -
custom_metadataobject requiredThe
custom_metadataof the request. -
error_codeinteger requiredHTTP status of the failure (
erroronly): 422 the file could not be transcribed, 500 the job failed or was lost, 504 it did not end in time. -
kind"pre-recorded" requiredAlways
pre-recorded. -
post_session_metadataobject requirederror: what went wrong, when the job failed. -
fileobject requiredThe job's audio.
5 fields
-
idstring requiredIdentifier of the file.
-
filenamestring requiredName of the file, when known.
-
sourcestring requiredThe
audio_urlthe job was given, when it was not an uploaded file. -
audio_durationnumber requiredDuration in seconds, once known.
-
number_of_channelsinteger requiredChannels of the audio, once known.
-
-
request_paramsobject requiredThe request, as you sent it.
-
resultobject requiredOnce
done:metadata(durations,billing_time),transcription(full_transcript,utterances,languages) and one entry per add-on asked for, in the shape of Gladia's pre-recorded API (other keys may appear).12 fields
-
metadataobject required6 fields
-
audio_durationnumber requiredDuration of the file, in seconds.
-
number_of_distinct_channelsinteger requiredDistinct channels transcribed.
at least 1
-
billing_timenumber requiredSeconds of audio transcribed and billed: the duration times the channels (a 10 min file with 4 channels is 2400).
-
transcription_timenumber requiredSeconds the transcription engine worked.
-
processing_timenumberSeconds from the job's creation (its file uploaded) to its end, its wait in the queue included: what you waited. Read with
GET /v2/pre-recorded/{id}and the list; thetranscription.successcallback does not carry it.default:
null -
rtfxnumberReal-time factor:
billing_time/processing_time, the seconds of audio transcribed per second waited. 60 means one hour of audio (every channel counted) done in one minute.default:
null
-
-
transcriptionobjectdefault:
null5 fields
-
full_transcriptstring requiredThe whole transcript, as text.
-
languagesarray of string requiredThe languages heard, most heard first.
-
sentencesarray of objectWith
sentences.default:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object or array of string requiredThe transcript, one sentence per item.
8 fields
-
sentencestring requiredThe sentence's text.
-
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1 (mean of the sentence's words).
-
channelinteger requiredThe audio channel, from 0.
-
speakerintegerThe speaker, with
diarization.default:
null -
wordsarray of object requiredThe words of the sentence.
-
languagestringThe sentence's language code.
default:
null
-
-
-
subtitlesarray of objectWith
subtitles.default:
null2 fields
-
formatstring requiredThe subtitle format.
one of:
srt,vtt -
subtitlesstring requiredThe whole file, in that format.
-
-
utterancesarray of object requiredThe utterances, in time order.
8 fields
-
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
channelinteger requiredThe audio channel, from 0.
-
speakerintegerThe speaker, with
diarization.default:
null -
wordsarray of object requiredThe words (empty in a translation).
4 fields
-
wordstring requiredThe word, with its leading space and punctuation.
-
startnumber requiredStart, in seconds from the start of the file.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
-
textstring requiredThe utterance's text.
-
languagestring requiredThe utterance's language code.
-
-
-
translationobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object requiredOne per target language.
6 fields
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
full_transcriptstring requiredThe whole translation, as text.
-
languagesarray of string requiredThe target language.
-
sentencesarray of objectWith
sentences.default:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
-
resultsarray of object or array of string requiredThe transcript, one sentence per item.
-
-
subtitlesarray of objectWith
subtitles.default:
null2 fields
-
formatstring requiredThe subtitle format.
one of:
srt,vtt -
subtitlesstring requiredThe whole file, in that format.
-
-
utterancesarray of object requiredThe utterances, translated.
8 fields
-
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
channelinteger requiredThe audio channel, from 0.
-
speakerintegerThe speaker, with
diarization.default:
null -
wordsarray of object requiredThe words (empty in a translation).
-
textstring requiredThe utterance's text.
-
languagestring requiredThe utterance's language code.
-
-
-
-
named_entity_recognitionobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object requiredThe entities found.
4 fields
-
entity_typestring requiredThe entity's type.
-
textstring requiredThe entity's words.
-
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
-
-
pii_redactionobjectOnly when
pii_redactionfailed:successfalse and itserror; the transcript is then returned as transcribed, not redacted.default:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsnullAlways null: the redaction is in the text.
default:
null
-
-
sentiment_analysisobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object or string requiredOne per sentence, or per utterance with
sentiment_analysis_config.unit: utterance.7 fields
-
sentimentstring requiredpositive,neutralornegative(Gladia's API also listsmixedandunknown, never given here). -
emotionstring requiredThe emotion heard.
-
textstring requiredThe sentence's text (the utterance's with
unit: utterance). -
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
channelinteger requiredThe audio channel, from 0.
-
speakerintegerWho speaks, with
diarization(per sentence only, as Gladia's API gives it).default:
null
-
-
-
name_consistencyobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsobject or string requiredThe names rewritten: each spelling found -> the one kept (
{"Catherine": "Katherine"}); empty when every name was already spelled one way.
-
-
sentencesobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object or array of string requiredThe transcript, one sentence per item.
8 fields
-
sentencestring requiredThe sentence's text.
-
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1 (mean of the sentence's words).
-
channelinteger requiredThe audio channel, from 0.
-
speakerintegerThe speaker, with
diarization.default:
null -
wordsarray of object requiredThe words of the sentence.
4 fields
-
wordstring requiredThe word, with its leading space and punctuation.
-
startnumber requiredStart, in seconds from the start of the file.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
-
languagestringThe sentence's language code.
default:
null
-
-
-
display_modeobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object requiredThe transcript regrouped into display lines: each utterance's words in time order, cut where another utterance's word falls between them, with the mean confidence of the line's words (two decimals, as Classic rounded it).
8 fields
-
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
channelinteger requiredThe audio channel, from 0.
-
speakerintegerThe speaker, with
diarization.default:
null -
wordsarray of object requiredThe words (empty in a translation).
4 fields
-
wordstring requiredThe word, with its leading space and punctuation.
-
startnumber requiredStart, in seconds from the start of the file.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
-
textstring requiredThe utterance's text.
-
languagestring requiredThe utterance's language code.
-
-
-
diarizationobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object requiredDeprecated: the utterances.
8 fields
-
startnumber requiredStart, in seconds.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
channelinteger requiredThe audio channel, from 0.
-
speakerintegerThe speaker, with
diarization.default:
null -
wordsarray of object requiredThe words (empty in a translation).
4 fields
-
wordstring requiredThe word, with its leading space and punctuation.
-
startnumber requiredStart, in seconds from the start of the file.
-
endnumber requiredEnd, in seconds.
-
confidencenumber requiredConfidence, 0 to 1.
-
-
textstring requiredThe utterance's text.
-
languagestring requiredThe utterance's language code.
-
-
-
summarizationobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsstring requiredThe summary, written by the cluster's LLM.
-
-
audio_to_llmobjectdefault:
null5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsarray of object requiredOne entry per prompt of
audio_to_llm_config.prompts, in their order.5 fields
-
successboolean requiredThe add-on succeeded.
-
is_emptyboolean requiredThe add-on found nothing.
-
exec_timenumber requiredSeconds the add-on took.
-
errorobject requiredNull on success, else why it failed.
3 fields
-
status_codeinteger requiredHTTP status of the failure.
-
exceptionstring requiredWhat failed.
-
messagestring requiredWhy.
-
-
resultsobject requiredThe prompt and its answer; null if it failed.
2 fields
-
promptstring requiredYour prompt, as sent.
-
responsestring requiredThe LLM's answer to it.
-
-
-
-
-
feedbackobjectYour rating of the job (
POST /v2/pre-recorded/{id}/feedback),nulluntil you rate it. Returned byGET /v2/pre-recorded/{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": "string", "version": 2, "status": "queued", "created_at": "2026-10-12T09:04:17.210Z", "completed_at": "string", "custom_metadata": {}, "error_code": 0, "kind": "pre-recorded", "post_session_metadata": {}, "file": { "id": "string", "filename": "string", "source": "string", "audio_duration": 0.5, "number_of_channels": 0 }, "request_params": {}, "result": { "metadata": { "audio_duration": 0.5, "number_of_distinct_channels": 1, "billing_time": 0.5, "transcription_time": 0.5, "processing_time": 0.5, "rtfx": 0.5 }, "transcription": { "full_transcript": "string", "languages": [ "string" ], "sentences": [ { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [] } ], "subtitles": [ { "format": "srt", "subtitles": "string" } ], "utterances": [ { "start": 0.5, "end": 0.5, "confidence": 0.5, "channel": 0, "speaker": 0, "words": [], "text": "string", "language": "string" } ] }, "translation": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [ { "error": { "status_code": 500, "exception": "string", "message": "string" }, "full_transcript": "string", "languages": [], "sentences": [], "subtitles": [], "utterances": [] } ] }, "named_entity_recognition": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [ { "entity_type": "string", "text": "string", "start": 0.5, "end": 0.5 } ] }, "pii_redaction": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": null }, "sentiment_analysis": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [ { "sentiment": "string", "emotion": "string", "text": "string", "start": 0.5, "end": 0.5, "channel": 0, "speaker": 0 } ] }, "name_consistency": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": {} }, "sentences": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [ { "sentence": "string", "start": 0.5, "end": 0.5, "confidence": 0.5, "channel": 0, "speaker": 0, "words": [], "language": "string" } ] }, "display_mode": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [ { "start": 0.5, "end": 0.5, "confidence": 0.5, "channel": 0, "speaker": 0, "words": [], "text": "string", "language": "string" } ] }, "diarization": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [ { "start": 0.5, "end": 0.5, "confidence": 0.5, "channel": 0, "speaker": 0, "words": [], "text": "string", "language": "string" } ] }, "summarization": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": "string" }, "audio_to_llm": { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": [ { "success": false, "is_empty": false, "exec_time": 0.5, "error": { "status_code": 500, "exception": "string", "message": "string" }, "results": { "prompt": "string", "response": "string" } } ] } }, "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": "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 job 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 Pre-recorded transcription is not available 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"}