/api/v1/chat/sessions/{session_id}/messages
Sends a user message and returns the assistant’s answer. The session’s previous turns are used as conversation context.
Path Parameters
string
required
The session ID returned by Create Session.
Request
string
required
The user message. Maximum 32,000 characters.
string[]
Restrict retrieval to these file IDs for this message.
string[]
Switch the session to these collections; the change persists on the session.
boolean
default:"false"
Stream the response as Server-Sent Events.
Response
integer
ID of the stored assistant message.
string
The session ID.
string
The generated answer, in Markdown, possibly containing
[citation:{id}] markers.array
Citation objects backing the answer.

