# Create a vocabulary

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

`POST /v1/vocabularies` on `https://api.eu.vatis.tech`

> **Admin key only.** A Member key gets `403` `admin_only`. Roles: [Authentication and API keys](https://platform.vatis.tech/docs/authentication).

## Headers

| header | values | default | meaning |
|---|---|---|---|
| `Authorization` | `Bearer <api key>` | required | An Admin key ([Roles](https://platform.vatis.tech/docs/authentication#roles)). A Member key gets `403` `admin_only`. |

## Body fields (`application/json`)

| field | values | default | meaning |
|---|---|---|---|
| `name` | 1 to 64 letters, digits, dots, dashes or underscores | required | No two vocabularies of a workspace share a name. |
| `entries` | a JSON list of strings |  | The entries, written as they should appear, at most 10,000 ([Writing entries](https://platform.vatis.tech/docs/realtime/vocabularies#writing-entries)). Without it, the vocabulary starts empty. |

## Response fields

| field | when | meaning |
|---|---|---|
| `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

`201`: The vocabulary.

```json
{
  "id": "voc_3f9c1a2b7d4e",
  "name": "streets-bucharest",
  "entry_count": 2,
  "created_at": "2026-11-11T09:14:03Z",
  "updated_at": "2026-11-11T09:14:03Z",
  "entries": [
    "Calea Victoriei",
    "Strada 13 Septembrie"
  ]
}
```

`400` `missing_parameter`: No `name`.

`400` `invalid_parameter`: 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.

```json
{
  "error": {
    "code": "invalid_parameter",
    "message": "'entries[1]' must be 1 to 100 characters: letters, digits, spaces, and - ' . inside or after a word.",
    "param": "entries[1]",
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`400` `invalid_request`: A body that is not a JSON object.

`401` `unauthorized`: No key, or a wrong, revoked or expired one.

```json
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid, revoked or expired key.",
    "param": null,
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`403` `admin_only`: A Member key.

`409` `name_taken`: Another vocabulary of your workspace has that name. Pick another name, or change that one.

`409` `vocabulary_limit`: Your workspace has 100 vocabularies already. Delete one first.

```json
{
  "error": {
    "code": "vocabulary_limit",
    "message": "At most 100 vocabularies: delete one first.",
    "param": null,
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`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](https://platform.vatis.tech/docs/realtime/vocabularies#writing-entries)).
- **Use it** with `vocabulary_id` on [Start a live session](https://platform.vatis.tech/docs/endpoints/start-a-live-session) and on [Create a transcript](https://platform.vatis.tech/docs/endpoints/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.
