Skip to Content
Vatis TechAPI docs
Vocabularies

Create a vocabulary

Saves a list of names and terms that live sessions use by its id.

Serverhttps://api.eu.vatis.tech

POST/v1/vocabularies

Admin key only

A Member key gets 403 admin_only. Roles: Authentication and API keys.

Headers

Authorization (required)
An Admin key (Roles). A Member key gets 403 admin_only.
ValuesBearer <api key>

Body fields

application/json

name (required)string
No two vocabularies of a workspace share a name.
Values1 to 64 letters, digits, dots, dashes or underscores
entriesstring[]
The entries, written as they should appear, at most 10,000 (Writing entries). Without it, the vocabulary starts empty.
Valuesa JSON list of strings

Response fields

id
voc_ and 12 hex digits: a session's vocabulary_id.
name
The vocabulary's name.
entry_count
How many entries it holds.
created_at
When it was made: ISO 8601, UTC.
updated_at
Its last change: ISO 8601, UTC.
entries
The entries, in the order they were added.

Responses

The vocabulary.

400 missing_parameter

No name.

A field that is unknown or not valid, an entry that is not one (param entries[<index>], its place in the list), more than 10,000 entries, or a query parameter. The param names it, and the message never quotes the entry.

400 invalid_request

A body that is not a JSON object.

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

403 admin_only

A Member key.

409 name_taken

Another vocabulary of your workspace has that name. Pick another name, or change that one.

Your workspace has 100 vocabularies already. Delete one first.

413 request_too_large

A JSON body over 8 MB.

503 unavailable

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

Notes

  • An entry is 1 to 100 characters: letters, digits, spaces, and - ' . inside or after a word. Upper and lower case are the same entry: of two that differ only by case, one stays, with the spelling given last (Writing entries).
  • Use it with vocabulary_id on Start a live session and on Create a transcript. Every key of your workspace may use it, a Member key too. Romanian live sessions and Romanian files only: English sessions take no vocabulary.
  • No extra price: a session or a file with a vocabulary is billed by its audio seconds, as any other.