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'sduration_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
batchorrealtime, 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.
| Parameter | Values | Default | Meaning |
|---|---|---|---|
from | a UTC day, YYYY-MM-DD | the first day of this month | The first day, included. |
to | a UTC day, YYYY-MM-DD | today | The last day, included. |
group | day, month | day | One 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}}]}| Field | Meaning |
|---|---|
from | The range and grouping as applied, with to and group. |
scope | all: the whole workspace, every key listed (an Admin key). key: a Member key's own work. |
totals | batch, realtime and peak_realtime_sessions over the range. |
periods | Only the days (or months) with usage, oldest first. period is YYYY-MM-DD, or YYYY-MM by month. |
keys | Each key's totals over the range, by key_id and name, revoked keys too. |
count | Batch jobs, or live sessions, that ended in the range. |
failed | Of those, the ones that failed. Their audio is not in audio_s. |
audio_s | Seconds of audio of the ones that did not fail, rounded to 0.1 s. |
speakers_audio_s | The part of audio_s sent with diarize=true. |
peak_realtime_sessions | The 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_idis the key's id in the list of keys, next to its prefix (vatis_sk_and 6 more characters).GET /v1/mesays 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.
| Parameter | Values | Default | Meaning |
|---|---|---|---|
limit | 1 to 100 | 25 | Rows per page. |
offset | a whole number, 0 or more | 0 | Rows to skip. Past total: an empty page. |
type | batch, realtime, or both, comma-separated | all | Only rows of these kinds. Example: batch,realtime. |
status | queued, running, completed, failed | all | Only rows in this state. |
key_id | a key's id | all | Only 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. |
id | the 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
| Field | Meaning |
|---|---|
activity | The rows: running and queued first, newest first, then the rest, newest first. |
total | The rows that match the filters. |
offset | As applied, with limit. |
summary | The 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_24h | How 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. |
keys | The keys that appear in the record, id and name, by name. |
retention_days | How long finished rows are kept, in days: 7, as transcripts are. |
A row
Every row has every field, null where it does not apply.
| Field | Meaning |
|---|---|
seq | The row's number, increasing. |
id | The transcript's id (tr_...) or the session's (sess_...). null when not kept. |
type | batch or realtime. |
status | queued (a file waiting), running, completed or failed. |
kept | false: sent with store=false. The row then shows only seq, type, status, the times and error or end. |
created_at | When the file was accepted, or the session began. |
started_at | When the file's transcription began (null while it waits); a session's created_at. |
ended_at | When it ended; null while queued or running. |
deleted_at | When a client deleted the transcript. |
queued_s | A file: the seconds it waited, then processing_s, the seconds its transcription took. |
first_text_ms | A session: the milliseconds from session.started to the first text sent, once it ended. |
audio_s | A file: its length, once completed. A session: the audio received, once ended. |
model_id | The model, then speakers (whether diarize was asked) and channels (2 with multichannel, else 1). |
translation | Always null on the cloud. |
key | The API key that sent it: id and name. |
error | A failed row: code and message. |
end | A 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,runningonce its transcription starts, thencompletedorfailed. A session isrunningonce it starts, thencompletedorfailed. - 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, withend. A transcript deleted before its job ended iscompletedwithenddeleted. - No content: a row holds no text, file name, URL,
metadataorclient_reference. Eachmessageis 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 key | Member key | |
|---|---|---|
GET /v1/usage | the whole workspace, scope all | its own work, scope key, peak_realtime_sessions null |
GET /v1/activity | every key's rows, summary and keys | its 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 code | When | What to do |
|---|---|---|
400 invalid_parameter | Usage: 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 unauthorized | No key, or a wrong, revoked or expired one. | Check the key. |
403 admin_only | A Member key asked for another key's rows (key_id). | Ask for your own rows, or use an Admin key. |
Next steps
- Limits and free credit: the free credit, the spend limit, and what pauses a workspace.
- Errors: every code, and what to do about it.
- All endpoints: every request the API takes.