# Get a vocabulary

Returns one saved vocabulary with its entries.

`GET /v1/vocabularies/{id}` on `https://api.eu.vatis.tech`

## Path parameters

| parameter | values | default | meaning |
|---|---|---|---|
| `id` | a vocabulary id, `voc_...` | required | The vocabulary. |

## Headers

| header | values | default | meaning |
|---|---|---|---|
| `Authorization` | `Bearer <api key>` | required | Your API key ([Authentication and API keys](https://platform.vatis.tech/docs/authentication)). |

## 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

`200`: The vocabulary.

```json
{
  "id": "voc_3f9c1a2b7d4e",
  "name": "streets-bucharest",
  "entry_count": 3,
  "created_at": "2026-11-11T09:14:03Z",
  "updated_at": "2026-11-11T10:01:44Z",
  "entries": [
    "Calea Victoriei",
    "Strada 13 Septembrie",
    "Bulevardul Iuliu Maniu"
  ]
}
```

`400` `invalid_parameter`: A query parameter: this endpoint takes none ([Strict parameters](https://platform.vatis.tech/docs/errors#strict-parameters)).

`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"
  }
}
```

`404` `not_found`: No vocabulary of your workspace has that id.

```json
{
  "error": {
    "code": "not_found",
    "message": "Vocabulary not found.",
    "param": null,
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

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

## Notes

- Any key may read one, a Member key too.
