cURL
curl --request POST \ --url https://eu-vg-edge.moeaymandev.workers.dev/v2/agents/{agent_id}/kb/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "query": "<string>", "chunks": 123 } '
{ "success": true, "message": "Search successful", "data": [ { "similarity": 123, "doc": { "status": "ERROR", "name": "<string>", "content": "<string>", "metadata": { "description": "<string>" }, "tags": [ "<string>" ], "sourceType": "doc", "ts": 123 } } ] }
(VG Agents Only) Searches the agent’s knowledge base
Agent/Workspace secret API key as bearer token.
The ID of the agent to search the KB of
Search query
The search query
The maximum number of results to return
Search results
true
"Search successful"
Array of KB Docs
Show child attributes