Skip to main content
POST
Send a message with HTTP SSE streaming response

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json

Request payload for SSE streaming Q&A

inputs
string[]
required

User messages to send to the AI

Example:
requestArgs
object

Optional context arguments

Response

SSE stream of AI response chunks

Server-Sent Event payload structure for HTTP streaming. Each event is a JSON object sent as data: {json}\n\n. The type field determines which other fields are present.

type
enum<string>

Event type indicator:

  • connected: Stream established successfully
  • stream: AI-generated text chunk (cumulative + delta)
  • tool_call: Tool/function invocation started (RAG, web search, etc.)
  • tool_result: Tool/function execution completed with results
  • complete: Final response with usage metrics and full output
  • error: Error occurred during processing
  • done: Stream terminated — no more events will follow
Available options:
connected,
stream,
tool_call,
tool_result,
complete,
error,
done