Creates a new message in the specified chat and streams the LLM response to the client as NDJSON. Since chat history is persisted, it manages response ID internally. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
The response body is streamed as newline-delimited JSON (
application/x-ndjson).
Each line is a JSON object representing one EnergyCap.DTO.V202510.WattsChatEventDTO — the concrete
event type is distinguished by its type discriminator field. The stream
terminates with either a done event (success) or an error event (failure).
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| chatId | The identifier of the chat where the message will be created. | integer (int32) | Required |
Request Body
WattsChatMessageCreateV202510
| Property | Description | Type |
|---|---|---|
| content | Watts chat message content Required | string |
Example Request Body
{ "content": "string"
}
Responses
200
OK
The request succeeded and the response body contains the requested data.