Admin

Update Ai Status

Toggle base AI features on/off at runtime; no provider-routing policy controls (admin only).

patch/admin/ai-status/

Request

  • The document declares no server URL.
  • Auth: one of:
    • OAuth 2 (password, token URL /api/auth/login)
    • API key in header X-Api-Key
    • API key in query parameter api_key

Request body

enabledboolean required

Set to true to enable AI features (chat, generation, semantic search), false to disable.

Response

Successful Response

providerstring nullable required

Active AI provider name (e.g. 'anthropic', 'openai').

modelstring nullable required

Active model name (e.g. 'claude-sonnet-4-20250514').

enabledboolean required

Whether AI features are enabled for this instance.

configuredboolean required

Whether an API key is configured. AI features require both 'enabled' and 'configured'.

semantic_search_enabledboolean

Whether pgvector-backed semantic search is enabled.

has_embeddingsboolean

Whether at least one record has embeddings stored.

Changes

No recorded changes to this operation across all 50 revisions of this API.