Skip to Content
Vatis TechAPI docs
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

Headers

Authorization (required)
Your API key (Authentication and API keys). A token cannot make a token.
ValuesBearer <api key>

Body fields

application/json

type (required)string
What the token opens: a live session, or one Create a transcript.
Valuesrealtime, batch

Response fields

token
vatis_tk_...: hand it to the page.
type
realtime or batch, as you asked.
expires_at
When it stops working: ISO 8601, UTC.

Responses

The token, valid 15 minutes, for one use.

400 missing_parameter

No type.

Another type or another field, or a query parameter. The param names it.

400 invalid_request

A body that is not a JSON object.

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

413 request_too_large

A JSON body over 64 KB.

503 unavailable

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

Notes

  • 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 batch token): 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).