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

# List Knowledge Bases

> Returns all registered knowledge bases.

## Endpoint

`GET https://gateway.orkeia.ai/knowledge-bases`

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

## Headers

```
authorization: <your_token>
```

## Example (cURL)

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

## Responses

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": [
    {
      "id": "KB_123456",
      "name": "Base A",
      "description": "Description of the base",
      "enabled": true,
      "sectors": ["hr"],
      "content": "https://storage.orkeia.ai/kb/base-a.pdf",
      "type": "file",
      "multimodal": false,
      "tags": ["tag1","tag2"]
    }
  ]
}
```

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

## Fields

| Name        | Type                      | Description                                                                                 |
| ----------- | ------------------------- | ------------------------------------------------------------------------------------------- |
| id          | string                    | Unique identifier of the knowledge base.                                                    |
| name        | string                    | Name of the knowledge base.                                                                 |
| description | string                    | Brief description of the content/usage.                                                     |
| enabled     | boolean                   | Indicates whether the base is active in the environment.                                    |
| sectors     | string\[]                 | Sectors that can consume this base (access governance).                                     |
| content     | string                    | Source of the content: file path/URL, external link, or literal text (according to `type`). |
| type        | "file" \| "url" \| "text" | Type of the content.                                                                        |
| multimodal  | boolean                   | Whether the base contains modalities beyond text (images/audio/video).                      |
| tags        | string\[]                 | Metadata/labels for search and organization.                                                |
