Attach Agent Knowledge Base

Attach a knowledge base to an agent. The search_knowledge tool is auto-registered on the next conversation and can only query the attached knowledge bases.

Authentication

AuthorizationBearer

Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.

Path parameters

idstringRequired
kbIdstringRequired

Response

Knowledge base attached.

Errors

401
Unauthorized Error
404
Not Found Error