Skip to main content
intu ai Support & Docs
← Home Sign in →
POST /api/v1/chats/:chat_id/messages

Send a message

Adds the student’s next message to an existing chat and returns the assistant’s reply. Set stream: true for SSE. As a conversation grows long, responses include a warning; past the maximum length the request is rejected so you can start a fresh chat.

Parameters

Name Type Required Description
user_id string required Your identifier for the student (billing)
message.content string required The student’s message
message.file file/url optional An image or PDF to attach
stream boolean optional Stream the reply as SSE (default false)

Returns

The latest assistant message plus usage. When diagrams are enabled and the reply includes a figure, a top-level visualisations array is returned alongside message (not inside it).