Skip to Content
Docs

Stream a response based on the question and retriever

POST
/stream

Stream a response based on the question and retriever.

Personal access token scope: chat:run.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
active_docs?string

Active documents

agent_id?string

Agent ID

api_key?string

API key

attachments?array<string>

List of attachment IDs

chunks?integer

Number of chunks

Default6
conversation_id?string

Existing conversation ID (loads history)

history?array<string>

Conversation history (only for new conversations)

index?integer

Index of the query to update

isNoneDoc?boolean

Flag indicating if no document is used

model_id?string

Model ID to use for this request

passthrough?

Dynamic parameters to inject into prompt template

prompt_id?string

Prompt ID

Default"default"
question*string

Question to be asked

retriever?string

Retriever type

save_conversation?boolean

Deprecated, 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.

Default"hidden"

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/stream' \  -H 'Content-Type: application/json' \  -d '{  "question": "string"}'
Example Response200
Empty