---
title: "获取知识库列表"
method: GET
path: "/knowledge-bases"
tags: ["知识库"]
---

# 获取知识库列表

`GET /knowledge-bases`

获取当前租户的所有知识库；或当传入 agent_id（共享智能体）时，校验权限后返回该智能体配置的知识库范围（用于 @ 提及）

## Query parameters

- `agent_id` string

## Response `200`

知识库列表

- object

## Other responses

- `500` — 服务器错误

## Changes

- **2026-02-26** `3762795e29b6` — 1 info
  - added the new optional `query` request parameter `agent_id`
- **2025-12-22** `e625bcd5b8b9` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2025-12-16** `edf61e68559d` — 1 warning, 1 info
  - deleted the `query` request parameter `agent_id`
  - the endpoint scheme security `ApiKeyAuth` was removed from the API

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledge-bases/get.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/08f8a25fbf1d/schema)
