Skip to main content
GET
/
v1
/
knowledge
/
{kb_id}
Get Knowledge Base Details
curl --request GET \
  --url https://api.xpander.ai/v1/knowledge/{kb_id} \
  --header 'x-api-key: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "type": "managed",
  "organization_id": "<string>",
  "agent_id": "<string>",
  "total_documents": 0
}
Retrieve detailed information about a specific knowledge base including its configuration, document count, and metadata.

Path Parameters

kb_id
string
required
Unique identifier of the knowledge base (UUID format)

Response

id
string
Unique identifier for the knowledge base (UUID)
name
string
Display name of the knowledge base
description
string
Optional description of the knowledge base purpose (can be null)
type
string
Knowledge base type (e.g., managed)
organization_id
string
UUID of the organization that owns this knowledge base
agent_id
string
UUID of the agent this knowledge base is attached to (can be null)
total_documents
integer
Total number of documents in the knowledge base

Example Request

curl -X GET -H "x-api-key: YOUR_API_KEY" \
  https://api.xpander.ai/v1/knowledge/73dc30ca-bdbf-42f7-a39f-93aff4f8522e

Example Response

{
  "id": "73dc30ca-bdbf-42f7-a39f-93aff4f8522e",
  "name": "PeopleDB",
  "description": "Dataset contains data about people and their phone number",
  "type": "managed",
  "organization_id": "91fbe9bc-REDACTED",
  "agent_id": null,
  "total_documents": 0
}

Authorizations

x-api-key
string
header
required

Path Parameters

kb_id
string
required

Response

id
string
required
name
string
required
type
enum<string>
required
Available options:
managed,
external
organization_id
string
required
description
string | null
agent_id
string | null
total_documents
integer
default:0