Skip to content

List sessions

GET /v2/live

Your account's sessions, newest first, one page at a time.

Authentication: your API key in the x-gladia-key header (Authentication).

Example

Terminal window
curl https://eu1.api.gladia.io/v2/live \
-H "x-gladia-key: $GLADIA_API_KEY"

Try it

status (query)
Only the sessions with these statuses (repeat it for several).

Parameters

  • limit integer · query

    Sessions per page, at most 100.

    default: 20 · 1 to 100

  • offset integer · query

    Sessions to skip, at most 1000; past that, follow next.

    default: 0 · 0 to 1000

  • cursor string · query

    Where the next page starts: set in next, never by hand.

  • date string · query

    Only the sessions created that day (2026-10-12).

  • after_date string · query

    Only the sessions created after that date (ISO 8601).

  • before_date string · query

    Only the sessions created before that date (ISO 8601).

  • status array of string · query

    Only the sessions with these statuses (repeat it for several).

  • custom_metadata string · query

    Only the sessions whose custom_metadata has these values: a JSON object ({"user": "john"}), or custom_metadata[user]=john, which matches a value by its text (custom_metadata[n]=5 finds 5, custom_metadata[vip]=true finds true).

Responses

200 A page of sessions.
  • first string required

    URL of the first page.

  • current string required

    URL of this page.

  • next string required

    URL of the next page (it carries a cursor), null on the last page.

  • items array of object required

    The sessions, newest first.

    15 fields
    • id string required

      Identifier of the session.

    • request_id string required

      Identifier to quote to support.

    • version 2

      default: 2

    • status string required

      queued: 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_at string required

      Creation date (ISO 8601, UTC).

    • completed_at string required

      End date, once done or error.

    • custom_metadata object required

      The init body's custom_metadata.

    • error_code integer required

      500 when the session failed, else null.

    • kind "live"

      default: "live"

    • file object required

      The session's audio, once it ended.

      6 fields
      • id string required

        Identifier of the session.

      • filename string required

        Name of the recording, null when the audio was not recorded.

      • source string required

        Download URL of the recording (GET /v2/live/{id}/file), null when not recorded.

      • audio_duration number required

        Audio received, in seconds.

      • number_of_channels integer required
      • recording object

        The workspace records its audio: whether it was recorded, and why not.

        default: null

        2 fields
        • status string required

          recorded: nothing lost; partial: some audio lost; dropped: none kept.

          one of: recorded, partial, dropped

        • reason string required

          The first reason audio was lost, null when nothing was (no_spool: the platform has no audio spool to record it).

    • request_params object required

      The session's options, as validated.

    • models object

      The model the session asked for and the models that served it. null for a session created before this field existed (not known).

      default: null

      4 fields
      • requested string required

        The model the session asked for, null when it named none: the default model then ran. Gladia's SDK sends solaria-1 by default; where no solaria-1 serves the session, it counts as none.

      • served array of object required

        Every model that served the session, in order: a handoff onto another model, or a fallback, adds one. Empty until its WebSocket opens.

        4 fields
        • model string required

          The model that ran, null when not known.

        • reason string required

          Why 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_at string required

          When this model started serving the session (ISO 8601).

        • profile string

          The 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

      • sent string

        The model of the session's init body exactly as sent, null when the body had none (request_params.model then shows the default, solaria-1). Tells a solaria-1 you sent from one you left out, which requested does not. Absent for a session recorded before it was kept.

        default: null

      • notice string

        Set 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

    • finalization object

      With finalization: true: the post-call pass of the call, a pre-recorded job over its recording (id, result_url: GET /v2/pre-recorded/{id}), or error: why it was not submitted. null without the option or before the session ends.

      default: null

      4 fields
      • id string

        The pre-recorded job's id.

        default: null

      • result_url string

        Where its result is read: GET /v2/pre-recorded/{id}.

        default: null

      • error string

        Why 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_address or unavailable.

        default: null

      • status integer

        With refused: the HTTP status.

        default: null

    • result object required

      The transcript, once done; when error, what was transcribed before the failure.

      6 fields
      • metadata object required
        4 fields
        • audio_duration integer required

          Audio received, rounded to the whole second. The exact duration is file.audio_duration.

        • billing_time integer required

          Billed duration, rounded to the whole second. The usage counters meter the exact seconds (GET /admin/usage, the workspace's Usage page).

        • number_of_distinct_channels integer required

          Number of audio channels.

        • transcription_time number required

          How long the session ran, in seconds.

      • transcription object required
        3 fields
        • languages array of string required

          Languages heard, in order of appearance.

        • utterances array of object required

          Every final utterance, by start time.

          14 fields
          • text string required

            The 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 with inline_tags: true.

          • start number required

            Start, in seconds from the start of the audio.

          • end number required

            End, in seconds from the start of the audio.

          • language string required

            Language spoken (ISO 639-1).

          • confidence number required

            Confidence, from 0 to 1.

          • channel integer required

            Audio channel the utterance was heard on, from 0.

          • speaker integer

            Speaker number, with diarization.

            default: null

          • committed_text string

            On a partial, with messages_config.receive_committed_text: its first words, those the model will no longer change. It trails text by about one decoding step.

            default: null

          • words array of object required

            The words with their timestamps.

          • text_raw string

            The transcript without inline elements (with named entity recognition; never with PII redaction).

            default: null

          • entities array of object

            The entities of the utterance, with named entity recognition or PII redaction.

            default: null

          • language_supported false

            false when 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_endpointing rather than by a pause.

            default: null

          • speculation object

            With end_of_turn.speculation, on the final that closes a turn: the verdict of the speculative LLM turn (the speculation message holds the same).

            default: null

        • full_transcript string required

          The final utterances' text, joined.

      • translation object

        With realtime_processing.translation.

        default: null

        5 fields
        • success boolean required
        • is_empty boolean required

          true when nothing was translated.

        • exec_time number required
        • error any

          default: null

        • results array of object required

          One result per target language.

          6 fields
          • error any

            Always null.

            default: null

          • languages array of string required

            The target language of this result.

          • full_transcript string required

            The translated text, joined.

          • utterances array of object required

            The translated utterances, one per final.

          • sentences array of any required

            Always empty.

          • subtitles array of any required

            Always empty.

      • summarization object

        With post_processing.summarization.

        default: null

        6 fields
        • success boolean required

          false: the LLM failed, refused or took over 30 s.

        • is_empty boolean required

          true when nothing was summarized (or it failed).

        • exec_time number required

          Seconds the summary took.

        • error any

          Null on success, else {status_code, exception, message}.

          default: null

        • results string required

          The summary, null when empty or failed.

        • partial boolean

          true: the session moved to another connection (a reconnection, a GPU handoff) and the summary covers the transcript since that move only.

          default: null

      • language_detection object

        On a session whose model follows the language spoken: the last language_detection the engine sent.

        default: null

        6 fields
        • language string required

          The language spoken (ISO 639-1).

        • confidence number required

          How sure the engine is.

          0 to 1

        • speech_s number

          The seconds of speech it decided on.

          default: null

        • low_confidence boolean

          true: too unsure to act on; the session keeps its model.

          default: false

        • model string

          The detector that decided.

          default: null

        • alternatives array of object

          The runners-up, the likeliest first.

          2 fields
          • language string required

            Another language it may be (ISO 639-1).

          • confidence number required

            0 to 1

      • messages array of any required

        The final transcript messages, as sent on the WebSocket.

    • feedback object

      Your rating of the session (POST /v2/live/{id}/feedback), null until you rate it. Returned by GET /v2/live/{id}, not by the list.

      default: null

      3 fields
      • rating string required

        good or bad.

        one of: good, bad

      • comment string required

        Why, as you wrote it; null without a comment.

      • rated_at string required

        When it was rated (ISO 8601, UTC); a new rating replaces the previous one.

Example
{
"first": "string",
"current": "string",
"next": "string",
"items": [
{
"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": [],
"utterances": [],
"full_transcript": "string"
},
"translation": {
"success": false,
"is_empty": false,
"exec_time": 0.5,
"error": null,
"results": []
},
"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": []
},
"messages": [
null
]
},
"feedback": {
"rating": "good",
"comment": "string",
"rated_at": "2026-10-12T09:04:17.210Z"
}
}
]
}
400 The request is invalid: validation_errors lists why. On POST /v2/live, also a model this region does not run (model … is not available in region …), or a feature the model named does not run (translation is not available with model … in region eu: use solaria-3), or a language no endpoint of the model transcribes (language fr is not available with model solaria-2 in region eu: use solaria-3), or a translation target no endpoint of the model translates into (translation target pl is not available with model solaria-3 in region eu: use solaria-4).
Error body
{
"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"
}
401 No API key, or an unknown one.
Error body
{
"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).
Error body
{
"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.
Error body
{
"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"
}