Skip to main content
get/knowledge-fs/spaces/{knowledge_base_id}/settings
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/settings

Authorization

Authorizationstringheaderrequired#

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_idstringrequired#
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.

Responses

application/json
The knowledge base's settings.
active_profile_availableboolean#
true when both an embedding model and retrieval settings are live, which happens after the first document is indexed.
active_profile_revisionsobject#
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.
capabilitiesobject#

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_statestring#
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.
embeddingobject#

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.

issuesobject[]#
What keeps the knowledge base from being ready. Empty when nothing does.
retrievalobject#
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.
revisioninteger#
Settings revision. Send it as expectedRevision in Update Knowledge Base Settings. The other revision fields in this response are not that value.