Ask project docs
/api/v1/ask_project_docsAsk a question about THIS project's own documentation and get back a synthesized, cited answer — the SAME retrieval and model call the project's public 'Ask AI' widget runs for a real reader on its docs site, run here instead for the ADMIN of this documentation. Comes back with refs, the pages the answer actually drew on — quotable and checkable, not a guess. Use those when you already know, or want to find, the page; use this when you want the finished answer a reader would get. NOT docsbook_assistant — that tool answers CRAFT questions ('how should a comparison page be structured') from Docsbook's OWN published corpus about documentation practice. This one answers from THIS project's OWN published pages, about what THIS project's documentation actually says. Booked to this project's own AI usage the way the admin's other questions here are (see get_ai_usage) — works on every plan, including Free, and does not require the visitor-facing AI Chat capability to be turned on. session_id is optional: reuse the same one across calls to keep them grouped as one conversation; omit it and each call reads as a separate one. Any language — the answer comes back in whichever language the question was asked in.
Price — $0.00003 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/ask_project_docs.
Authorization: Bearer dbk_YOUR_API_KEY.Sent from your browser straight to the API — never to Docsbook, never stored.question, which is what retrieval embeds.200 with ok: false: the call was made and billed, and that refusal is its answer.- Use it when you want the ANSWER, not a page to go read yourself: 'what does our docs say the rate limit is', 'would a reader asking about refunds be told the right thing right now', «что у нас написано про...».
- NOT for browsing the content yourself — that is
search_project_docs(by meaning),search_docs(literal string),read_project_doc(one page in full) orget_project_doc_outline(what exists).
ok to see whether it succeeded.curl 'https://docsbook.io/api/v1/ask_project_docs?question=<question>' \
-H 'Authorization: Bearer dbk_YOUR_API_KEY'{
"ok": true,
"result": "<result>",
"duration_ms": 0
}