Skip to Content
Vatis TechAPI docs

Usage

How much audio your workspace transcribed, by day or month and by key, and every job and session.

Two endpoints answer what your workspace did: GET /v1/usage adds up the audio, and GET /v1/activity lists each batch job and live session. The console's Usage and Activity pages show the same, for people.

What counts

  • A batch job, when it ends: the length of the recording (the transcript's duration_s). A two-channel file (multichannel=true) counts its length once.
  • A live session, when it ends: the audio it received (session.ended's duration_s). A two-channel session counts its length once.
  • Failed work is counted as failed, but its audio is not usage: a batch job that ended failed, or a session that ended with an error on our side (transcriber_error, internal_error, capacity). A session that ended for the client's own reasons (idle_timeout, session_time_limit, a refused message or frame) is not a failure, and its audio counts.
  • Each counts on the UTC day it ended, for the API key that sent it, as batch or realtime, with or without speakers (diarize).

The audio counted here is what your workspace's credit pays for, by the second. The record is kept apart from the transcripts: retention, store=false and deleting a transcript do not change it, and it holds no text.

Get usage

GET/v1/usage

The audio your workspace transcribed, by day or by month: an Admin key the whole workspace, a Member key its own.

ParameterValuesDefaultMeaning
froma UTC day, YYYY-MM-DDthe first day of this monthThe first day, included.
toa UTC day, YYYY-MM-DDtodayThe last day, included.
groupday, monthdayOne period per day, or per month.
curl -sS -H "Authorization: Bearer $VATIS_KEY" "https://api.eu.vatis.tech/v1/usage?from=2026-11-01&to=2026-11-30"

Expected result (curl, here on several lines):

{"from": "2026-11-01", "to": "2026-11-30", "group": "day", "scope": "all",
 "totals": {"batch": {"count": 3, "failed": 0, "audio_s": 512.3, "speakers_audio_s": 120.0},
            "realtime": {"count": 12, "failed": 1, "audio_s": 3605.1, "speakers_audio_s": 0.0},
            "peak_realtime_sessions": 3},
 "periods": [{"period": "2026-11-12", "batch": {"count": 3, "failed": 0, "audio_s": 512.3, "speakers_audio_s": 120.0},
              "realtime": {"count": 12, "failed": 1, "audio_s": 3605.1, "speakers_audio_s": 0.0},
              "peak_realtime_sessions": 3}],
 "keys": [{"key_id": "key_3f9c1a2b7d4e", "name": "crm-backend",
           "batch": {"count": 3, "failed": 0, "audio_s": 512.3, "speakers_audio_s": 120.0},
           "realtime": {"count": 12, "failed": 1, "audio_s": 3605.1, "speakers_audio_s": 0.0}}]}
FieldMeaning
fromThe range and grouping as applied, with to and group.
scopeall: the whole workspace, every key listed (an Admin key). key: a Member key's own work.
totalsbatch, realtime and peak_realtime_sessions over the range.
periodsOnly the days (or months) with usage, oldest first. period is YYYY-MM-DD, or YYYY-MM by month.
keysEach key's totals over the range, by key_id and name, revoked keys too.
countBatch jobs, or live sessions, that ended in the range.
failedOf those, the ones that failed. Their audio is not in audio_s.
audio_sSeconds of audio of the ones that did not fail, rounded to 0.1 s.
speakers_audio_sThe part of audio_s sent with diarize=true.
peak_realtime_sessionsThe most live sessions open at once in the workspace that day or month, a two-channel session counting 2. null for a Member key: the peak is the whole workspace's.
  • The range is at most 366 days by day and 3660 days by month.
  • Your own row: key_id is the key's id in the list of keys, next to its prefix (vatis_sk_ and 6 more characters). GET /v1/me says which key a request carries (Authentication and API keys).

List activity

GET/v1/activity

Every batch job and live session of the workspace (a Member key: its own), the open ones first, with a summary of the last 24 hours.

ParameterValuesDefaultMeaning
limit1 to 10025Rows per page.
offseta whole number, 0 or more0Rows to skip. Past total: an empty page.
typebatch, realtime, or both, comma-separatedallOnly rows of these kinds. Example: batch,realtime.
statusqueued, running, completed, failedallOnly rows in this state.
key_ida key's idallOnly one API key's rows, a revoked key's too. A Member key can name only itself: another key's id is 403 admin_only.
idthe start of an id, 3 to 64 letters, digits or _Only the rows whose id starts so, for example tr_3b4.

An empty value counts as not sent.

curl -sS -H "Authorization: Bearer $VATIS_KEY" "https://api.eu.vatis.tech/v1/activity?limit=10&status=failed"

Expected result (curl without filters, trimmed to two rows):

{"activity": [
   {"seq": 4186, "id": "sess_51d0c8e2f4a74b9e8c1d03a6f2b7e590", "type": "realtime", "status": "running", "kept": true,
    "created_at": "2026-11-12T09:21:40Z", "started_at": "2026-11-12T09:21:40Z", "ended_at": null, "deleted_at": null,
    "queued_s": null, "processing_s": null, "first_text_ms": null, "audio_s": null, "model_id": "vatis_ro_v9_realtime",
    "speakers": true, "channels": 1, "translation": null, "key": {"id": "key_7b21d0e4a9c3", "name": "crm-backend"},
    "error": null, "end": null},
   {"seq": 4182, "id": "tr_3b41a7db9aba4c10", "type": "batch", "status": "completed", "kept": true,
    "created_at": "2026-11-12T09:14:03Z", "started_at": "2026-11-12T09:14:04Z", "ended_at": "2026-11-12T09:14:36Z",
    "deleted_at": null, "queued_s": 0.842, "processing_s": 31.604, "first_text_ms": null, "audio_s": 741.2,
    "model_id": "vatis_ro_v9", "speakers": true, "channels": 1, "translation": null,
    "key": {"id": "key_7b21d0e4a9c3", "name": "crm-backend"}, "error": null, "end": null}],
 "total": 132, "offset": 0, "limit": 25,
 "summary": {"running": 1, "queued": 0, "last_24h": 87, "failed_24h": 3, "batch_speed_24h": 23.4,
             "types": {"batch": {"running": 0, "queued": 0, "last_24h": 40, "failed_24h": 2},
                       "realtime": {"running": 1, "queued": 0, "last_24h": 35, "failed_24h": 1}}},
 "keys": [{"id": "key_7b21d0e4a9c3", "name": "crm-backend"}],
 "retention_days": 7}

The page and its summary

FieldMeaning
activityThe rows: running and queued first, newest first, then the rest, newest first.
totalThe rows that match the filters.
offsetAs applied, with limit.
summaryThe whole workspace (a Member key: its own), not filtered: running (files being transcribed and sessions open), queued (files waiting), last_24h (rows created in the last 24 hours), failed_24h (of those, failed), batch_speed_24h, and types: the same four counts for batch and realtime.
batch_speed_24hHow many times faster than real time the files completed in the last 24 hours were transcribed (the median of audio_s / processing_s, 1 decimal). null when there were none.
keysThe keys that appear in the record, id and name, by name.
retention_daysHow long finished rows are kept, in days: 7, as transcripts are.

A row

Every row has every field, null where it does not apply.

FieldMeaning
seqThe row's number, increasing.
idThe transcript's id (tr_...) or the session's (sess_...). null when not kept.
typebatch or realtime.
statusqueued (a file waiting), running, completed or failed.
keptfalse: sent with store=false. The row then shows only seq, type, status, the times and error or end.
created_atWhen the file was accepted, or the session began.
started_atWhen the file's transcription began (null while it waits); a session's created_at.
ended_atWhen it ended; null while queued or running.
deleted_atWhen a client deleted the transcript.
queued_sA file: the seconds it waited, then processing_s, the seconds its transcription took.
first_text_msA session: the milliseconds from session.started to the first text sent, once it ended.
audio_sA file: its length, once completed. A session: the audio received, once ended.
model_idThe model, then speakers (whether diarize was asked) and channels (2 with multichannel, else 1).
translationAlways null on the cloud.
keyThe API key that sent it: id and name.
errorA failed row: code and message.
endA row that did not fail but ended otherwise than plainly: code and message, for example idle_timeout, session_time_limit, service_restart or deleted.

What the record holds

  • Which work has a row: every batch job the API accepted, waiting for the answer or not, and every live session that started. A connection refused before session.started (a wrong key or parameter, no free session) has none.
  • A row's life: a batch job is queued, running once its transcription starts, then completed or failed. A session is running once it starts, then completed or failed.
  • Failed means what Usage counts as failed, so the two agree. A session ended by the idle timeout, the time limit, a restart of the service or a refused message is completed, with end. A transcript deleted before its job ended is completed with end deleted.
  • No content: a row holds no text, file name, URL, metadata or client_reference. Each message is a fixed sentence for its code, never words from your file or your client.
  • How long: finished rows go after 7 days, with the transcripts. A deleted transcript's row stays, with deleted_at. Usage is kept apart and keeps everything.

Who sees what

Keys belong to the workspace, and each has a role (Authentication and API keys):

Admin keyMember key
GET /v1/usagethe whole workspace, scope allits own work, scope key, peak_realtime_sessions null
GET /v1/activityevery key's rows, summary and keysits own rows, summary and key; another key's key_id is 403 admin_only

In the console

On platform.vatis.tech, the Usage page charts the same numbers by day or month and by key, and the Activity page lists the same rows, with their filters. What a person sees there follows their role in the workspace, as a key's role does here.

Usage and credit

Usage is the audio your workspace transcribed. Its credit pays for that audio by the second; a workspace whose credit is used up is paused (Limits and free credit).

Common errors

Status and codeWhenWhat to do
400 invalid_parameterUsage: a date that is not YYYY-MM-DD, from after to, a range too long, or another group. Activity: a limit outside 1 to 100, another type or status, an unknown key_id, or an id shorter than 3 characters. Or an unknown parameter.Fix the parameter param names.
401 unauthorizedNo key, or a wrong, revoked or expired one.Check the key.
403 admin_onlyA Member key asked for another key's rows (key_id).Ask for your own rows, or use an Admin key.

Next steps

On this page