Skip to main content

Knowledge Bases

Knowledge bases store documents, URLs, and structured data that agents use for retrieval-augmented generation (RAG). Each KB has its own vector index, document registry, and optional knowledge graph.
All API requests require a valid JWT token in the Authorization: Bearer <token> header. The API Gateway decodes the JWT and forwards auth context (user-id, organization-id, user-email, x-platform-role, x-org-role) as headers to downstream services.

Create Knowledge Base

Create a new knowledge base in your organization.

Request Body

string
required
Knowledge base name.
string
Description of the knowledge base contents.
string
default:"private"
Visibility: private, shared, or public.
object
Custom KB settings (embedding config, chunking strategy, etc.).

Response (201)

object
The created knowledge base.

List Knowledge Bases

List all knowledge bases in your organization.

Query Parameters

number
default:"50"
Maximum results.
number
default:"0"
Pagination offset.

Response (200)

object[]
Array of KB objects.
number
Total count.
number
Applied limit.
number
Applied offset.
curl

Get Knowledge Base

Get a single knowledge base with full details.

Path Parameters

string
required
KB UUID.

Response (200)

object
Full KB object.

Update Knowledge Base

Update knowledge base metadata.

Path Parameters

string
required
KB UUID.

Request Body

string
Updated name.
string
Updated description.
string
Updated visibility.
object
Updated settings.

Response (200)

Returns the updated KB object.

Delete Knowledge Base

Permanently delete a knowledge base, including all documents, chunks, vectors, and graph data.

Path Parameters

string
required
KB UUID.

Response (204)

No content on success.
This action is irreversible. All documents, embeddings, and knowledge graph data for this KB will be permanently deleted.

Link a knowledge base to an agent, enabling RAG context retrieval for that agent’s conversations.

Path Parameters

string
required
KB UUID.
string
required
Agent UUID.

Request Body

object
Optional permission overrides for this link.
number
default:"0"
Priority level for search result ranking when multiple KBs are linked.

Response (200)


Remove the link between a knowledge base and an agent.

Path Parameters

string
required
KB UUID.
string
required
Agent UUID.

Response (200)


Get Agent’s Linked KBs

Get all knowledge bases linked to a specific agent.

Path Parameters

string
required
Agent UUID.

Response (200)

object[]
Array of KB objects with link metadata (permissions, priority, linked_at).
number
Number of linked KBs.