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

# Вземи база знания

> Вземи всички бази знания за удостоверения потребител

Този endpoint връща списък с всички бази знания, свързани с вашия акаунт. Базите знания се използват за съхраняване на документи, които предоставят контекст и информация на вашите AI асистенти.

### Отговор

<ResponseField name="data" type="array">
  Масив от обекти база знания

  <Expandable title="knowledgebase properties">
    <ResponseField name="id" type="integer">
      Уникалният идентификатор на базата знания
    </ResponseField>

    <ResponseField name="name" type="string">
      Името на базата знания
    </ResponseField>

    <ResponseField name="description" type="string">
      Опционално описание на базата знания
    </ResponseField>

    <ResponseField name="status" type="string">
      Текущо състояние: `empty`, `processing`, `active`, или `failed`
    </ResponseField>

    <ResponseField name="status_label" type="string">
      Етикет за състоянието, четлив от човек
    </ResponseField>

    <ResponseField name="documents_count" type="integer">
      Брой документи в тази база знания
    </ResponseField>

    <ResponseField name="assistants_count" type="integer">
      Брой асистенти, използващи тази база знания
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 времева отметка на създаване
    </ResponseField>

    <ResponseField name="updated_at" type="string">
      ISO 8601 времева отметка на последна актуализация
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 Response theme={null}
  {
    "data": [
      {
        "id": 1,
        "name": "Product Documentation",
        "description": "Technical documentation for our products",
        "status": "active",
        "status_label": "Active",
        "documents_count": 5,
        "assistants_count": 2,
        "created_at": "2025-01-05T10:30:00.000000Z",
        "updated_at": "2025-01-08T14:20:00.000000Z"
      },
      {
        "id": 2,
        "name": "FAQ Knowledge",
        "description": "Frequently asked questions and answers",
        "status": "processing",
        "status_label": "Processing",
        "documents_count": 1,
        "assistants_count": 0,
        "created_at": "2025-01-08T09:00:00.000000Z",
        "updated_at": "2025-01-08T09:05:00.000000Z"
      }
    ]
  }
  ```

  ```json 200 Empty Response theme={null}
  {
    "data": []
  }
  ```
</ResponseExample>

### Състояния на базата знания

| Състояние    | Описание                                            |
| ------------ | --------------------------------------------------- |
| `empty`      | Базата знания няма документи                        |
| `processing` | Един или повече документи се обработват             |
| `active`     | Всички документи са обработени и готови             |
| `failed`     | Един или повече документи не успяха да се обработят |

***
