Chat

Send a single user message

Changed on

Send a single user message. The response format follows the Accept header: text/event-stream for SSE, application/json for a buffered assistant reply. Interactive HITL requires Accept: text/event-stream: the stream can emit a tool-hitl-approval event, whose decision must be delivered to /assistant/chat/permission. Buffered JSON responses do not provide an interactive HITL continuation contract. sessionId targets a concrete active chat. The resolved chat session ID is returned as chatSessionId in the JSON body and as the X-Chat-Session-Id response header on the SSE response.

post/assistant/chat/message

Request

  • Base URL
    https://api.mobilerun.ai
  • URL
    https://api.mobilerun.ai/assistant/chat/message
  • Auth
    HTTP bearer

Request body

messagestring required
agentstring
modelstring
sessionIdstring uuid required

Response

Streamed events (SSE) or buffered assistant reply (JSON), selected by Accept.

assistantTextstring required
errorTextstring
chatSessionIdstring uuid required

Changes