Overview

Update ai settings

POST/api/v1/update_ai_settings

Configure the AI chatbot. REQUIRES PRO plan. Returns upgrade info for FREE workspaces.

Price — $0.00001 per call (twice what serving it costs us), charged to the workspace balance, the same as over MCP.

Also reachable by name at POST /api/v1/tools/update_ai_settings.

Authorization
Authorizationstringrequired

Your API key, sent as Authorization: Bearer dbk_YOUR_API_KEY.Sent as the Authorization header. Your key is used only by your browser for this request — it is never sent to Docsbook or stored.

Body
ai_enabledboolean

Enable or disable the AI chatbot

ai_providerstring

One of: openrouter, openai, gemini, anthropic, vercel-ai-gateway.

ai_api_keystring

API key for the AI provider

custom_questionsstring[]

Suggested questions in the AI chat

Request
curl -X POST 'https://docsbook.io/api/v1/update_ai_settings' \
  -H 'Authorization: Bearer dbk_YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"ai_provider":"openrouter"}'

Responses#

Status Meaning
200 The tool ran. Read ok to see whether it succeeded.
401 Missing or invalid API key.

Updated

Was this page helpful?