List Conversations

get

/ai/applications/{applicationName}/databases/{databaseName}/conversation

Lists all conversations for the user.

Request

Path Parameters
Back to Top

Response

200 Response

OK

Conversations retrieved successfully.

400 Response

Bad Request

Failed to retrieve conversations.

Back to Top

Examples

The following example shows how to fetch all the conversations for a particular user.

This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat.

Script with cURL Command

call properties.bat
curl -X 'GET' \
'http://myserver.example.com:9000/essbase/rest/v1/ai/applications/Sample/databases/Basic/conversation' 
-H 'accept: */*' \
-u %User%:%Password%

Example of Response Body

The following example shows the contents of the response body in JSON format:

[
  {
    "Id": "SAMPLE_BASIC__CHAT_PROFILE_1784115672588",
    "Description": "show the top 5 markets where diet coke is sold",
    "Timestamp": "1784115674000"
  },
  {
    "Id": "SAMPLE_BASIC__CHAT_PROFILE_1784114662000",
    "Description": "get me sales for diet-cola",
    "Timestamp": "1784114663000"
  }
]
Back to Top