Skip to main content
GET
/
user
/
knowledgebases
Вземи база знания
curl --request GET \
  --url https://call.aiployees.com/api/user/knowledgebases \
  --header 'Authorization: Bearer <token>'
{
  "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"
    }
  ]
}
Този endpoint връща списък с всички бази знания, свързани с вашия акаунт. Базите знания се използват за съхраняване на документи, които предоставят контекст и информация на вашите AI асистенти.

Отговор

data
array
Масив от обекти база знания
{
  "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"
    }
  ]
}

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

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