Skip to content
getgeolens.com

Update Ai Status

PATCH
/admin/ai-status/
curl --request PATCH \
--url https://example.com/api/admin/ai-status/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enabled": true }'

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

Media type application/json
AIStatusUpdate
object
enabled
required
Enabled

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

boolean
Example generated
{
"enabled": true
}

Successful Response

Media type application/json
AIStatusResponse
object
provider
required
Any of:
string
model
required
Any of:
string
enabled
required
Enabled

Whether AI features are enabled for this instance.

boolean
configured
required
Configured

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

boolean
semantic_search_enabled
Semantic Search Enabled

Whether pgvector-backed semantic search is enabled.

boolean
has_embeddings
Has Embeddings

Whether at least one record has embeddings stored.

boolean
Example
{
"semantic_search_enabled": false,
"has_embeddings": false
}

Bad request — invalid query parameters or payload

Unauthorized — missing or invalid credentials

Forbidden — caller lacks access to this resource

Not found

Validation error

Internal server error