Skip to main content
GET
Get Knowledge Base Settings

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

knowledge_base_id
string<uuid>
required

Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.

Response

The knowledge base's settings.

active_profile_available
boolean

true when both an embedding model and retrieval settings are live, which happens after the first document is indexed.

active_profile_revisions
object

Revisions of the live models. Each is null until the first document is indexed. Once a profile is active, a change through Update Knowledge Base Settings runs as a migration.

capabilities
object

Readiness of the published settings. Three flags stand for retrieval depths, with query standing for fast.

To check readiness for a specific depth, send that depth explicitly as mode and check its flag. Do not use a pending retrieval.default_mode to identify the depth of a query that omits mode.

configuration_state
string

active when an embedding model and complete retrieval settings (with an enabled rerank model) are stored. setup-required when either is missing. validation-failed when the pending settings failed validation while the first document was indexed. issues names the settings that failed.

embedding
object | null

Embedding model. The pending selection when one is stored, otherwise the live model. A pending selection can differ from the model queries use now. null when none is set.

Its dimension, revision, and vector_space_id are informational, and no operation takes them.

issues
object[]

What keeps the knowledge base from being ready. Empty when nothing does.

retrieval
object | null

Retrieval settings. The pending selection when one is stored, otherwise the live settings. A pending selection can differ from the settings queries use now. null when none is set.

revision
integer

Settings revision. Send it as expectedRevision in Update Knowledge Base Settings. The other revision fields in this response are not that value.