Tokens
Create a token
Makes a single-use token, so that a web page can open one live session or send one file without your API key.
Serverhttps://api.eu.vatis.tech
POST/v1/tokens
Body fields
application/jsontype (required)string
What the token opens: a live session, or one Create a transcript.
Values
realtime, batchvatis_tk_...: hand it to the page.realtime or batch, as you asked.When it stops working: ISO 8601, UTC.
application/json
The token, valid 15 minutes, for one use.
400 missing_parameter
No
type.application/json
Another
type or another field, or a query parameter. The param names it.400 invalid_request
A body that is not a JSON object.
application/json
No key, or a wrong, revoked or expired one.
413 request_too_large
A JSON body over 64 KB.
- One use, 15 minutes. Make a new token for every session. A used, expired or wrong-type token is refused as
unauthorized; a wrong-type token is not used up. - A live session:
wss://api.eu.vatis.tech/v1/speech-to-text/realtime?model_id=vatis_ro_v9_realtime&token=<token> - One file (a
batchtoken):POST https://api.eu.vatis.tech/v1/speech-to-text?token=<token> - It acts for its key, with the role the key has when the token is used. Revoking the key cancels its tokens. A token never opens
/v1/keys. - With both a key and a token, the key is used and the token is kept. On the WebSocket, a wrong key in the header is refused even with a good token.
- Call this from your server, never from a web page, which would need your key (Tokens for web pages).