---
title: "Query knowledge base items"
method: GET
path: "/agent-runtime/knowledge-base-items"
tags: ["Knowledge Base  Items"]
---

# Query knowledge base items

`GET /agent-runtime/knowledge-base-items`

## Request

- Base URL: `http://localhost:8090/agent-api`
- URL: `http://localhost:8090/agent-api/agent-runtime/knowledge-base-items`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/docs/agent-runtime/knowledge-base-items/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `order` string
- `size` integer
- `sort` string
- `start` integer

## Response `200`

Indicates the request was successful.

- DataResponseKnowledgeBaseItemResponse
  - `data` KnowledgeBaseItemResponse[]
    - `id` string, required: The unique identifier of a knowledge base item
    - `parentId` string: The parent identifier of a knowledge base item
    - `rootId` string: The root identifier of a knowledge base item
    - `knowledgeBaseDefinitionId` string, required: The knowledge base definition id of a item
    - `knowledgeBaseDefinitionName` string, required: The knowledge base definition name of a item
    - `scopeId` string, required: The scope id of the knowledge base item
    - `scopeType` string, required: The scope type of a knowledge base item
    - `tenantId` string, required: The tenant id of a knowledge base item
    - `container` boolean
  - `total` integer
  - `start` integer
  - `sort` string
  - `order` string
  - `size` integer

## Other responses

- `400`: Indicates the request had some invalid arguments.

---

[API](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/revisions/54fc1189496f?raw)
