Skip to Content
Vatis TechAPI docs
Status and usage

Get usage

Adds up the audio your workspace transcribed, by day or by month and by key.

Serverhttps://api.eu.vatis.tech

GET/v1/usage

Headers

Authorization (required)
Your API key (Authentication and API keys). An Admin key gets the whole workspace, a Member key its own work.
ValuesBearer <api key>

Query parameters

from
The first day, included.
Valuesa UTC day, YYYY-MM-DDDefaultthe first day of this month
to
The last day, included.
Valuesa UTC day, YYYY-MM-DDDefaulttoday
group
One period per day, or per month.
Valuesday, monthDefaultday

Response fields

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.

Responses

The usage.

A date that is not YYYY-MM-DD, from after to, a range too long, another group, or another query parameter. The param names it.

No key, or a wrong, revoked or expired one.

503 unavailable

The service is busy for a moment. Send the request again after the seconds of the Retry-After header.

Notes

  • The range is at most 366 days by day and 3660 days by month.
  • What counts, and when: What counts. The audio counted here is what your workspace's credit pays for, by the second.