Skip to main content
GET
/
agents
/
{agentId}
/
kb
/
{docId}
Get a Knowledge Base by id
curl --request GET \
  --url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb/{docId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "vgKbDoc": {},
    "data": {},
    "chunks": [
      {
        "chunkID": "<string>",
        "content": "<string>"
      }
    ]
  }
}
The chunks array shows how the document content was split for vector embeddings. Each chunk has a chunkID and content field.
Use this endpoint to verify document processing status and inspect how content was chunked for the knowledge base.

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

docId
string
required

The unique identifier of the KB document

Response

Successful response

success
boolean
required

Indicates if the request was successful

message
string
required

Response message

data
object

KB document details