---
title: "Get all knowledge base items"
method: GET
path: "/knowledgebase/{id}/items"
tags: ["Knowledge Base"]
---

# Get all knowledge base items

`GET /knowledgebase/{id}/items`

Get all knowledge base items

## Path parameters

- `id` string, required

## Response `200`

A list of knowledge base items

- object
  - `status` boolean
  - `data` KnowledgeBaseItem[]
    - `_id` string, required — The unique identifier for the knowledge base item
    - `itemType` 'file' | 'text', required — The type of the knowledge base item
    - `metadata` object — Additional metadata for the item
    - `knowledgeBaseId` string, required — The ID of the knowledge base this item belongs to
    - `processingStatus` 'pending' | 'processing' | 'completed' | 'failed', required — The processing status of the item
    - `fileName` string — The name of the file (for file type items)
    - `contentType` string — The MIME type of the content
    - `size` number — The size of the file in bytes
    - `key` string — The storage key for the file
    - `title` string — The title of the item
    - `content` string — The content of the item (for text type items)
    - `createdAt` string, date-time, required — The date and time when the item was created
    - `updatedAt` string, date-time, required — The date and time when the item was last updated

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `500` — Internal server error

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/versions/6d1036a76fbc/schema)
