Skip to main content
GET
/
api
/
v1
/
knowledge-base
/
{kb_id}
/
items
List Knowledge Base Items
curl --request GET \
  --url https://api.kollie.ai/api/v1/knowledge-base/{kb_id}/items \
  --header 'X-API-Key: <api-key>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

List Knowledge Base Items

This endpoint returns a list of all items in a specific knowledge base.

Request

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication

Path Parameters

NameTypeRequiredDescription
kb_idstringYesThe ID of the knowledge base

Query Parameters

NameTypeRequiredDescription
file_typestringNoFilter items by file type (PDF or TXT)
statusstringNoFilter items by status

Response

200 OK

{
  "data": [
    {
      "id": "string",
      "name": "string",
      "file_type": "string",
      "status": "string",
      "created_at": "string",
      "updated_at": "string",
      "knowledge_base_id": "string"
    }
  ]
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the item
namestringName of the item
file_typestringType of the file (PDF or TXT)
statusstringCurrent status of the item
created_atstringTimestamp when the item was created
updated_atstringTimestamp when the item was last updated
knowledge_base_idstringID of the knowledge base this item belongs to

Example

curl -X GET 'https://api.kollie.ai/api/v1/knowledge-base/123e4567-e89b-12d3-a456-426614174000/items' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'

Authorizations

X-API-Key
string
header
required

Path Parameters

kb_id
string<uuid>
required

Query Parameters

file_type
enum<string> | null
Available options:
pdf,
txt
status
enum<string> | null
Available options:
pending,
vectorized,
failed,
processing

Response

Successful Response