---
title: "获取知识库详情"
method: GET
path: "/knowledge-bases/{id}"
tags: ["知识库"]
---

# 获取知识库详情

`GET /knowledge-bases/{id}`

根据ID获取知识库详情。当使用共享智能体时，可传 agent_id 以校验该智能体是否有权访问该知识库。

## Path parameters

- `id` string, required

## Query parameters

- `agent_id` string

## Response `200`

知识库详情

- object

## Other responses

- `400` — 请求参数错误
- `404` — 知识库不存在

## 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/:id/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/ef2e057b249e/schema)
