GET
/
v2
/
agents
/
{agent_id}
/
stats
/
kb
curl --request GET \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/agents/{agent_id}/stats/kb \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Agent KB statistics retrieved successfully",
  "data": {
    "charCount": 123,
    "docsCount": 123
  }
}

Authorizations

Authorization
string
header
required

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

The ID of the agent to retrieve KB statistics from

Response

200
application/json
Agent KB statistics retrieved
success
boolean
message
string
data
object

KB statistics