Only
user messages can be edited. Attempting to edit an assistant message returns 400. The re-streamed response uses the same SSE event format as Send Message.Bearer token obtained from the authenticate endpoint.
Set to
text/event-stream to receive SSE responses.Unique identifier of the chat containing the message.
Unique identifier of the user message to edit.
The new message content to replace the original.
ID of the database integration to query for the re-streamed response.
AI model to use for the re-streamed response. If omitted, the default model is used. See List Models for available values.
If
true, internal tool events (tool_call, tool_result, tool_message) are included in the stream. Defaults to false.Response
The response is a stream of Server-Sent Events — identical in format to Send Message.Event types
| Event | Data | Description |
|---|---|---|
chat_metadata | {"id": "chat_...", "user_message_id": "msg_..."} | Emitted first. Contains the chat ID and the new user message ID. |
processing | {"status": "thinking"} | AI is processing the request. |
visualization | Full chart or table payload | A chart or table was generated. See Visualizations. |
message | {"content": "...", "id": "msg_..."} | The final response from the AI. |
error | {"error": "..."} | An error occurred during processing. |