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": { "name": "<string>", "content": "<string>", "metadata": { "description": "<string>" }, "tags": [ "<string>" ], "sourceType": "doc", "status": "ERROR", "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 body is of type object.
object
Search results
The response is of type object.