AI agent
Get knowledge settings
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:read ability
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
active_modelstring | nullrequiredThe embedding model searches use now, written provider:model@dims, such as openai:text-embedding-3-small@1024. Null when none is set.
builtin_modelstring | nullrequiredThe embedding model built into this install, written provider:model@dims. Null when the install has none.
embedding_key_idstring | nullrequiredId of the AI provider key the active model embeds with, starting with aik_. Null means the built-in embedder.
embeddings_errorstring | nullrequiredWhy embeddings are not healthy, in words. Null when there is no error.
embeddings_statusstringrequiredWhere the workspace's embeddings stand: none, ready, building (a switch is in progress) or degraded.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
pending_key_idstring | nullrequiredId of the AI provider key the pending model embeds with, starting with aik_. Null for the built-in embedder or when no switch is under way.
pending_modelstring | nullrequiredThe model being built for a switch, written provider:model@dims. Null when no switch is under way.
previous_modelstring | nullrequiredThe model used before the last switch, written provider:model@dims. Null when there was none.
reembedobjectrequiredShow child attributesHide child attributes
doneintegerrequiredHow many pieces of text have been embedded with the new model so far.
Format: int32
failedintegerrequiredHow many pieces of text the provider refused to embed.
Format: int32
started_atstring | nullrequiredWhen building the new model's vectors began. Null when no build has run.
Format: date-time
totalintegerrequiredHow many distinct pieces of text the new model has to embed in all.
Format: int32
switched_atstring | nullrequiredWhen the workspace last switched to its active model. Null when it never switched.
Format: date-time
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.