Chat

Send a message inside a webchat side thread

Changed on

Required scope: chat

post/api/v1/chat/threads/{thread_id}/messages

Request

  • Base URL
    http://localhost:6185
  • URL
    http://localhost:6185/api/v1/chat/threads/{thread_id}/messages
  • Auth
    API key in header X-API-Key

Path parameters

thread_idstring required

Request body

localestring

UI locale for built-in LLM error messages. Omitted or unsupported locales fall back to zh-CN.

selected_providerstring
selected_modelstring
enable_streamingboolean

Deprecated compatibility field. It is used only when flags.enable_streaming is absent; otherwise flags.enable_streaming takes priority.

Response

Server-sent chat stream or an error envelope

Changes