Search Agent Knowledge Bases (M2M)
Search the knowledge bases attached to an agent, scoped server-side from AgentKnowledgeBase - never from a caller-supplied list of knowledge base ids. Authenticated with a BundleAccessToken; agent_id is cross-checked against the token's own deployment before any search runs.
Authorization
BundleAccessToken AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body of POST /v1/bundler/knowledge/search. agent_id is resolved and deployment-scoped server-side against the caller's own BundleAccessToken - never trusted as sufficient authorization on its own.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/bundler/knowledge/search" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "query": "string" }'{ "results": [ { "text": "string", "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6", "filename": "string", "score": 0 } ]}Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}