Retrieves all messages in a Watts chat session
Use this endpoint to get the full conversation history for a chat. Returns messages in chronological order.
The chat must be active (not deleted) and belong to the authenticated user.
Requires the VirtualEnergyManager feature flag.
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. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| chatId | Unique numeric identifier of the chat | integer (int32) | Required |
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
Array of:
WattsChatMessageResponseV202510
| Property | Description | Type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| citations | Data queries run to produce this message, in the order they ran. Empty for user messages, for assistant replies that needed no query, and for history recorded before citations were captured. | WattsChatCitationV202510[] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
WattsChatCitationV202510 properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content | Full message content | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| createdDate | Date/time offset representing when Watts chat message was sent | string (date-time) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| inputTokens | Tokens this message cost. Null for user messages and for anything recorded before usage was captured. | integer (int32) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| messageKind | Message kind. 0-Standard for ordinary messages, 1-Undo for the assistant message recording that the most recent report change was reverted (its content is the restored version’s summary). Only reporting chats record undos, so general chat messages are always Standard. Must be a valid value for WattsChatMessageKind: Standard = 0, Undo = 1 | integer (int32) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| outputTokens | integer (int32) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| totalTokens | integer (int32) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| wattsChatMessageId | The identifier for the Watts chat message | integer (int32) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| wattsChatMessageRole | Watts chat message role. 1-User, 2-Assistant, 3-Error. Must be a valid value for WattsChatMessageRole: User = 1, Assistant = 2, Error = 3 | integer (int32) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example Response
[
{ "citations": [
{ "callId": "string", "chart": {}, "detail": "string", "documentationUrl": "string", "emptyReason": "string", "error": "string", "filters": [], "kind": "string", "queryTimeMs": 1, "rowCount": 1, "running": false, "summary": "string", "toolName": "string", "truncated": false, "warnings": []
}
], "content": "string", "createdDate": "2026-10-25", "inputTokens": 1, "messageKind": 1, "outputTokens": 1, "totalTokens": 1, "wattsChatMessageId": 1, "wattsChatMessageRole": 1
}
]