Retrieve all messages for a specific analytics conversation session.
GET
Path: /api/v1/conversations/{sessionId}/messages
Parameter | Type | Description |
---|---|---|
sessionId | string | The unique identifier of the conversation session. |
AnalyticsChatMessage
Object PropertiesProperty | Type | Description |
---|---|---|
id | string | Unique identifier for the message. |
role | user | assistant | human_agent | The role of the message sender. |
content | string | The textual content of the message. |
timestamp | string | ISO 8601 timestamp of when the message was created. |
metadata | object | Optional. Contains additional information about the message, such as sources used or confidence scores. |
metadata.sources | object | Optional. Key-value pairs where keys are source numbers and values are source information objects. |
metadata.sources[key].text | string | The text snippet from the source. |
metadata.sources[key].url | string | null | The URL of the source, if available. |
metadata.sources[key].score | number | A score indicating the relevance or confidence in the source. |
metadata.sources[key].title | string | undefined | The title of the source document/page, if available. |
metadata.confidence | number | undefined | Optional. A confidence score for the assistant’s message. |
metadata
object, particularly sources
, is based on the existing message display logic and might evolve.