Provide a response based on the question and retriever
Provide a response based on the question and retriever.
Personal access token scope: chat:run.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
active_docs?stringActive documents
agent_id?stringAgent ID
api_key?stringAPI key
chunks?integerNumber of chunks
6conversation_id?stringExisting conversation ID (loads history)
history?array<string>Conversation history (only for new conversations)
isNoneDoc?booleanFlag indicating if no document is used
model_id?stringModel ID to use for this request
passthrough?Dynamic parameters to inject into prompt template
prompt_id?stringPrompt ID
"default"question*stringQuestion to be asked
retriever?stringRetriever type
save_conversation?booleanDeprecated, no effect: conversations always persist. Use visibility to control sidebar listing.
visibility?string'listed' shows the conversation in the owner's sidebar; any other value (or omitting it) persists it hidden.
"hidden"Success
curl -X POST 'http://localhost:7091/api/answer' \ -H 'Content-Type: application/json' \ -d '{ "question": "string"}'Return the agent's starters POST
List the starters (suggested first questions) of the agent an API key belongs to. Returns {"starters": [...]}, empty when the agent has none. Returns: `{"starters": [...]}` with 200; 400 when `api_key` is missing and 401 when it belongs to no agent. [Personal access token](/API/personal-access-tokens) scope: `chat:run`.
Search for relevant documents based on query POST
Search for relevant documents based on query. [Personal access token](/API/personal-access-tokens) scope: `chat:run`.