Skip to main content
POST
Handle Send Chat Message

Authorizations

Authorization
string
header
required

Authorization header with Bearer token

Body

application/json
message
string
required
llm_override
LLMOverride · object | null
llm_overrides
LLMOverride · object[] | null

For multi-model mode: up to 3 LLM overrides to run in parallel.

allowed_tool_ids
integer[] | null
forced_tool_id
integer | null
file_descriptors
FileDescriptor · object[]
internal_search_filters
BaseFilters · object | null
deep_research
boolean
default:false
mcp_headers
Mcp Headers · object | null

Headers to forward to MCP tool calls (e.g. Authorization, X-User-ID).

origin
enum<string>
default:unset

Origin of a chat message for telemetry tracking.

Available options:
webapp,
chrome_extension,
api,
slackbot,
widget,
discordbot,
whatsappbot,
teamsbot,
unknown,
unset
parent_message_id
integer | null
default:-1
chat_session_id
string<uuid> | null
chat_session_info
ChatSessionCreationRequest · object | null
stream
boolean
default:true
include_citations
boolean
default:true

When False, citation markers are removed and CitationInfo packets are not emitted.

additional_context
string | null

Context injected into the LLM call but NOT stored in chat history.

Response

If stream=true: text/event-stream of AnswerStreamPart packets. If stream=false: application/json ChatFullResponse.

Complete non-streaming response with all available data.

answer
string
required
answer_citationless
string
required
top_documents
SearchDoc · object[]
required
citation_info
CitationInfo · object[]
required
message_id
integer
required
pre_answer_reasoning
string | null
tool_calls
ToolCallResponse · object[]
chat_session_id
string<uuid> | null
error_msg
string | null