> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkeia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Knowledge Base Version

> Returns a snapshot of a specific version of the knowledge base.

## Endpoint

`GET https://gateway.orkeia.ai/knowledge-bases/{id}/version-control/{versionId}`

**Authentication**\
Requires header `authorization:  <your_token>`.

## Path Parameters

| Name      | Type   | Required | Description                                     | Example    |
| --------- | ------ | -------- | ----------------------------------------------- | ---------- |
| id        | string | Yes      | Identifier of the knowledge base.               | KB\_123456 |
| versionId | string | Yes      | Identifier/slug of the version to be retrieved. | v1.0.1     |

## Example (cURL)

```bash theme={null}
curl -X GET "https://gateway.orkeia.ai/knowledge-bases/KB_123456/version-control/v1.0.1" \
  -H "authorization:  <your_token>"
```

## Responses

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": {
    "id": "KB_123456",
    "snapshot": {
      "name": "Internal Policies",
      "description": "Official corporate documents",
      "enabled": true,
      "sectors": ["hr", "legal"],
      "content": "https://storage.orkeia.ai/kb/policies.pdf",
      "type": "file",
      "multimodal": false,
      "tags": ["compliance", "contracts"]
    },
    "versionId": "v1.0.1",
    "createdAt": "2024-07-10T09:30:00Z"
  }
}
```

### 500 — Server Error

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
