v3
chats

Send chat message

Store the message and start the chat's agent on it; its steps and reply are listed as they are written. 409 while the agent is still answering the previous message.

post/v3/chats/{chat_id}/messages

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

chat_idstring uuid required

Headers

mentium-workspace-idstring nullable

Request body

textstring required

Response

Successful Response

idstring required
chat_idstring required
kind'user' | 'assistant' | 'tool_call' | 'tool_result' | 'approval_request' | 'approval' | 'error' | 'summary' required
rolestring nullable
textstring required
payloadobject nullable

Kind-specific fields (see libs.chat.contracts)

turn_idstring nullable

Id of the user message that started this row's turn

seqinteger required

Cursor for listing; rows are ordered by it

created_atstring date-time required
user_idstring nullable

Changes

No recorded changes to this operation across all 2 revisions of this API.