Stream a response based on the question and retriever
Stream 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
attachments?array<string>List of attachment IDs
chunks?integerNumber of chunks
6conversation_id?stringExisting conversation ID (loads history)
history?array<string>Conversation history (only for new conversations)
index?integerIndex of the query to update
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/stream' \ -H 'Content-Type: application/json' \ -d '{ "question": "string"}'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`.
GET /api/approvals/{token} GET
What an approval link asks: its title, question, details, options and whether it was decided. Public (the token is the credential); reading it changes nothing. Public: the token in the path authorizes the request, so it needs no sign-in or other credential.