知识库
获取知识库详情
Changed on根据ID获取知识库详情。当使用共享智能体时,可传 agent_id 以校验该智能体是否有权访问该知识库。
get/knowledge-bases/{id}
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v1/knowledge-bases/{id}
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Path parameters
idstring required
知识库ID
Query parameters
agent_idstring
共享智能体 ID(用于校验智能体是否有权访问该知识库)
Response
知识库详情
Example response
{
"success": true
}Changes
- info
added the non-success response with the status
- info
- info
added the new optional
queryrequest parameteragent_id
- info