Skip to main content
GET
/
agents
/
{agentId}
/
kb
/
stats
Retrieve agent's knowledge base stats
curl --request GET \
  --url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "charCount": 123,
    "docsCount": 123
  }
}
Use this endpoint to monitor your knowledge base size and track growth over time.
Stats are calculated from processed documents only. Documents with PENDING or ERROR status are not included in the counts.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

The unique identifier of the agent

Response

Successful response

success
boolean
required

Indicates if the request was successful

message
string
required

Response message

data
object
required

Knowledge base statistics