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 the parent chat and usage.