Skip to Content
Vatis TechAPI docs

Errors

Every refused request and every failed session says what went wrong in the same way: the shape and every code.

REST errors

Every error has this shape, with the HTTP status of the table below:

{"error": {"code": "invalid_parameter", "message": "Unknown parameter 'diarise'.", "param": "diarise", "request_id": "req_bf2fed760ba5437ba0933a57"}}
FieldMeaning
codeWhat went wrong. Your code reacts to this one.
messageOne sentence for people: what happened and what to do. It may change.
paramThe field or parameter at fault, or null.
request_idThe request's id, req_ and 24 hex digits. Every response carries it in its Request-Id header too, errors or not: give it to Vatis Tech support when you ask about a request.

A malformed request (a wrong type, a missing required field) answers the same shape, never another format. Here is how to read it:

# -i shows the status and the Request-Id header with the body
curl -sS -i -H "Authorization: Bearer $VATIS_KEY" "https://api.eu.vatis.tech/v1/usage?group=week"

Status codes

StatusCodeWhen
400invalid_parameterAn unknown, repeated or unsupported field or query parameter, a value out of range, or fields that do not go together; a bad Idempotency-Key; a url refused or that failed to download; no enabled webhook, or a bad webhook_id; form fields over 1 MB; more speakers than the API takes; subtitles of a transcript without word times; a vocabulary entry that breaks the rules (entries[3], a file's vocabulary[3]), or more than 10,000 entries (a file's own: 250); an unknown vocabulary_id; a vocabulary on a model or a server that takes none. param names the field.
missing_parameterA required field is missing: model_id; both file and url; format; type; a webhook's url; a vocabulary's name.
invalid_requestA body that is not a valid request: not multipart or urlencoded, malformed, a part without a name, more than 200 parts, JSON that is not an object; a 51st webhook.
unsupported_modelA model_id your workspace does not have, or a real-time model sent to batch.
invalid_audioAn empty file, no audio that can be decoded, or more than 2 channels with multichannel.
audio_too_longThe audio is longer than the API takes (10 hours).
401unauthorizedNo key; a wrong, revoked or expired key; a used, expired or wrong-type token.
403admin_onlyA request that takes an Admin key, made with a Member key (Authentication and API keys); a Member key's key_id for another key on GET /v1/activity.
account_pausedA new batch job of a paused workspace: its credit is used up, it is over its spend limit, or Vatis Tech paused it (Limits and free credit).
404not_foundAn unknown, deleted or expired transcript, webhook, key or vocabulary; another key's transcript, to a Member key; an unknown path.
405invalid_requestA method the path does not take. The Allow header lists the right ones.
409idempotency_conflictAn Idempotency-Key used before for another request.
not_completedAn export of a transcript that is still queued or processing, or failed.
last_adminRevoking the last active Admin key, or making it a Member.
name_takenA new key with the name of an active key; a vocabulary with the name of another one.
vocabulary_limitA 101st saved vocabulary: delete one first.
key_revokedA change to a revoked key.
413request_too_largeA file or download over 2 GiB, a request body over 2 GiB and 2 MB, or a JSON body over 64 KB (a vocabulary's: over 8 MB).
429busyToo many files wait to be transcribed. Try again after the seconds of the Retry-After header.
500internal_errorSomething failed on our side. Try again, and give the request_id to support if it stays.
503unavailableA service the request needs is not ready. Try again after the seconds of the Retry-After header.

When a transcription fails

A batch request is answered at once, so a transcription that fails after the API took the request does not answer with an error: the transcript you poll, and the webhook delivery, show status failed with its error, in the same shape (for example invalid_audio or internal_error; The transcript object).

429 concurrent_limit is reserved: it is not sent today.

Refused before the upload ends

Some refusals are decided on the request's headers, while your client is still sending the file: a 401, or a 413 by the declared length. Nothing of the file is kept.

  • A client that reads while it sends gets that status at once.
  • Another gets it when it stops sending: at the end of the file, or when the server closes the connection, about 30 s after the refusal.
  • The connection ends after such an answer, even when its Connection header says keep-alive.

Session errors

A live session that fails gets one error message, then the server closes the connection. Every refusal comes after the WebSocket opened, so a web page can read the reason too:

{"type": "error", "code": "invalid_parameter", "message": "diarise: unknown parameter", "param": "diarise"}
CodeWhenClose code
unauthorizedNo key or token, or one that is not valid: a wrong, revoked or expired key; a used, expired or wrong-type token.1008
invalid_parameterA query parameter that is unknown, empty, not supported or out of range (param names it), one sent without the one it needs (speaker_updates without diarize=true, turn_sensitivity without commit=turn), commit=turn with a model that is not Romanian, a vocabulary_id that names no vocabulary of your workspace, a vocabulary message with a bad entry (param entries[3]), or a text message the server does not know (param type).1008
audio_chunk_too_largeA frame of more than 1 s of audio.1009
capacityEvery live session your workspace may have open is in use (a two-channel session needs 2), or there is no free capacity for a new session. The message says which, for example "This account can run 10 real-time sessions at a time: try again when one ends."1013
account_pausedA paused workspace: its credit is used up, it is over its spend limit, or Vatis Tech paused it. Refused before session.started; an open session ends with it about a minute after the pause, after its last final messages. The message says which.1013
idle_timeout15 s without any message or audio.1008
session_time_limitThe session reached the longest a session runs: 4 hours. Its last finals come first. Open a new session to go on.1008
transcriber_errorThe speech service failed, was not available at the start, or did not finish within 30 s of your end.1011, or 1012 when the service stopped for an update
internal_errorSomething failed on our side, or the saved vocabulary of vocabulary_id cannot be read for a moment: connect again in a few seconds.1011
service_restartThe service restarts, for an update. The final messages of all the audio it received come first. resume_s is the second of the session's audio to send again from (Real-time transcription).1012
  • Refused before session.started: unauthorized, invalid_parameter, capacity, account_paused, transcriber_error (no speech service free), internal_error (a saved vocabulary that cannot be read for a moment) and service_restart.
  • speaker_updates without diarize=true is refused: {"type": "error", "code": "invalid_parameter", "message": "speaker_updates: needs diarize=true", "param": "speaker_updates"}, close code 1008.
  • turn_sensitivity without commit=turn is refused the same way: {"type": "error", "code": "invalid_parameter", "message": "turn_sensitivity: needs commit=turn", "param": "turn_sensitivity"}. End of turn is for Romanian models only: commit=turn with another model gets invalid_parameter with param commit (End of turn).
  • invalid_audio is reserved: raw audio cannot be invalid, so it is not sent today.
  • Speakers lost in the middle of a session do not end it: later words have "speaker": null.

Close codes

Close codeMeansWhat to do
1000A normal end, after your end and session.ended.Nothing.
1006The connection dropped without a close (a network failure). A connection that never opened (a wrong host or path) shows the same in a browser.Connect again, and go on from the end of the last final.
1008A refusal or a client error: the error's code says which.Fix the cause before you connect again.
1009A frame or message too large.Send smaller frames: 100 ms of audio is best.
1011A failure on our side.Connect again, and go on from the end of the last final.
1012The service restarts.Connect again at once, and send the audio again from resume_s.
1013No session free now, or a paused workspace.Try again later. A paused workspace needs credit first.

Strict parameters

A parameter the API does not know, or does not support, is refused, never ignored, so a result never silently lacks what you asked for. A misspelled diarise is refused rather than giving a transcript without speakers.

  • A REST request answers 400 invalid_parameter, with param naming it.
  • A live session gets an error message naming it, then closes with 1008.
  • The same holds for any query parameter an endpoint does not take, even with an empty value.
  • A field sent twice is refused on POST /v1/speech-to-text and on an export. In any other query, the last value counts.

An empty value (name=) depends on where it is sent:

WhereAn empty value
A form field of POST /v1/speech-to-text; the query of an export, of usage or of activity; after and status of GET /v1/transcripts; tokenCounts as not sent, so a required one is 400 missing_parameter.
limit of GET /v1/transcriptsIs refused: 400 invalid_parameter.
The query of a live session, token apartIs refused: invalid_parameter, message <name>: empty, close code 1008.

What to retry

You getRetry?
429 busy, 503 unavailableYes, after the seconds of the Retry-After header. To repeat a batch request safely, send it with the same Idempotency-Key (Batch transcription).
500 internal_errorYes, a few times, waiting longer each time. If it stays, give the request_id to support.
Close 1006, 1011, 1012Yes, at once and then after a growing wait, going on where the last final ended (from resume_s after 1012).
capacity, or transcriber_error before session.startedYes, for a while: a session ends, or the service is back.
account_pausedNot until the cause is gone: the message says it. Add credit when it is used up; wait a few minutes after the spend limit (Limits and free credit).
400, 401, 403, 404, 409, 413; close 1008, 1009No: the same request gets the same answer. Fix it first.

Ignore what you do not know

New fields, message types and codes may be added inside /v1. Ignore fields and messages you do not know, and treat an unknown code by its HTTP status or close code.

Next steps

On this page