Update ai settings
POST
/api/v1/update_ai_settingsConfigure 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
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
Enable or disable the AI chatbot
One of: openrouter, openai, gemini, anthropic, vercel-ai-gateway.
API key for the AI provider
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. |