Skip to main content
GET

Overview

List the knowledge bases in your organization, newest first, with pagination and search.

Prerequisites

  • An API key for your workspace

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
integer
default:"1"
Page number.
integer
default:"10"
Number of knowledge bases per page, up to 100.
Case-insensitive text matched against the name, description and status. Partial matches are returned.

Response

array[object]
required
The knowledge bases on this page.
string
Knowledge base ID. Use it in an agent’s knowledgeBase.
string
Name of the knowledge base.
string
Description of the knowledge base.
string
Always PENDING; it isn’t updated after creation. A knowledge base with a vectorDbCollection has been indexed.
string
Name of the search index. A video agent uses it as rag.vectorDBCollection. Empty if indexing failed.
object
required
Pagination details: total, page, limit, totalPages, hasNextPage and hasPrevPage.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – No KnowledgeBases found: no knowledge base matches, including when your organization has none or the page is past the end.
  • 429 Too Many Requests – More than 1,000 Knowledge Base requests in 15 minutes from your IP address.
  • 500 Internal Server Error – Unexpected server error.