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

# List Knowledge Base Items

> List all items in a specific knowledge base.

# List Knowledge Base Items

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

## Request

### Headers

| Name          | Type   | Required | Description                     |
| ------------- | ------ | -------- | ------------------------------- |
| Authorization | string | Yes      | Bearer token for authentication |

### Path Parameters

| Name   | Type   | Required | Description                  |
| ------ | ------ | -------- | ---------------------------- |
| kb\_id | string | Yes      | The ID of the knowledge base |

### Query Parameters

| Name       | Type   | Required | Description                            |
| ---------- | ------ | -------- | -------------------------------------- |
| file\_type | string | No       | Filter items by file type (PDF or TXT) |
| status     | string | No       | Filter items by status                 |

## Response

### 200 OK

```json theme={null}
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "file_type": "string",
      "status": "string",
      "created_at": "string",
      "updated_at": "string",
      "knowledge_base_id": "string"
    }
  ]
}
```

### Response Fields

| Field               | Type   | Description                                   |
| ------------------- | ------ | --------------------------------------------- |
| id                  | string | Unique identifier for the item                |
| name                | string | Name of the item                              |
| file\_type          | string | Type of the file (PDF or TXT)                 |
| status              | string | Current status of the item                    |
| created\_at         | string | Timestamp when the item was created           |
| updated\_at         | string | Timestamp when the item was last updated      |
| knowledge\_base\_id | string | ID of the knowledge base this item belongs to |

## Example

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


## OpenAPI

````yaml GET /api/v1/knowledge-base/{kb_id}/items
openapi: 3.1.0
info:
  title: kollie-backend
  version: v1
servers: []
security: []
paths:
  /api/v1/knowledge-base/{kb_id}/items:
    get:
      tags:
        - knowledge-base
      summary: List Knowledge Base Items
      description: List all items in a specific knowledge base.
      operationId: list_knowledge_base_items_api_v1_knowledge_base__kb_id__items_get
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Kb Id
        - name: file_type
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/KnowledgeBaseItemType'
              - type: 'null'
            title: File Type
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/KnowledgeBaseItemStatus'
              - type: 'null'
            title: Status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    KnowledgeBaseItemType:
      type: string
      enum:
        - pdf
        - txt
      title: KnowledgeBaseItemType
    KnowledgeBaseItemStatus:
      type: string
      enum:
        - pending
        - vectorized
        - failed
        - processing
      title: KnowledgeBaseItemStatus
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer

````