Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Update Ask AI settings

PUThttps://api.butterix.com/v1/sites/:site/ai

Requires the admin role. Only the fields you pass are updated.

  • When provider changes without model, the model resets to that provider's default; without apiKey, the old key is removed (keys belong to a provider).
  • apiKey: null removes the site's key and falls back to the platform key, if there is one. Keys are stored encrypted with AES-256-GCM.
  • The levels effort can take come from the model (see reasoning in the model list); an unsupported level is moved to the nearest one, and null uses the model's suggested level.
  • dailyLimit caps questions that call the model in a rolling 24 hours (1–1000000); null means no limit, and the default is 200.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

sitestringRequired

Site slug or id

Request

This endpoint expects an object.
enabledbooleanOptional
providerenumOptional
Allowed values:
modelstringOptional
apiKeystring or nullOptional

New key; null removes it

guidancestringOptional<=4000 characters

Guidance added to the system prompt

effortenum or nullOptional

Reasoning effort; null uses the model's suggested level

Allowed values:
dailyLimitinteger or nullOptional1-1000000

Maximum questions that call the model in a rolling 24 hours; null means no limit

agentbooleanOptional

Switch for console AI (agent, scheduled tasks, AI translation, documentation gaps), independent of Ask AI

gapsbooleanOptional

Sort documentation gaps every day

supportobjectOptional

Contact when AI has no answer. Only the fields you send change; turning it on needs at least one way to reach you

enabledbooleanOptional
urlstringOptional

Support page: an https:// address or a path that starts with /; an empty string removes it

emailstringOptional

Support email; an empty string removes it

Response

Updated settings
enabledbooleanOptional
providerenumOptional
Allowed values:
modelstringOptional
hasKeybooleanOptional

Whether a site key is set

keyMaskedstringOptional
platformKeyAvailablebooleanOptional

Whether the platform has a default key for the current provider

platformKeysmap from strings to booleansOptional

Whether each provider has a platform key

guidancestringOptional
effortenum or nullOptional

Reasoning effort; null uses the model's suggested level

Allowed values:
retentionDaysinteger or nullOptional

Days to keep questions; null keeps them forever

dailyLimitinteger or nullOptional

Maximum questions that call the model in a rolling 24 hours; null means no limit

agentbooleanOptional

Whether console AI is on

gapsbooleanOptional

Whether documentation gaps are sorted every day

supportobjectOptional

Contact when AI has no answer

enabledbooleanOptional
urlstringOptional
emailstringOptional