IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Find conversations
editFind conversations
editRetrieve a list of Elastic AI Assistant conversations for the current user.
Request URL
editGET <kibana host>:<port>/api/security_ai_assistant/current_user/conversations/_find
URL query parameters
editName | Type | Description | Required |
---|---|---|---|
|
Number |
The page number to return. Defaults to |
No |
|
Number |
The number of items to return per page. Defaults to |
No |
|
String |
The filter query to apply on the request. |
No |
|
String |
The field to sort the results by. Valid values are:
|
No |
|
String |
The order to sort the results in. Valid values are:
|
No |
|
String |
Defines the fields of the document to return in the response. |
No |
Example requests
editExample 1
Get a list of the current user’s conversations.
GET api/security_ai_assistant/current_user/conversations/_find?page=1&per_page=100
Response code
edit200
Indicates a successful call.
Response payload
editA JSON conversation object with a unique id
.
Example 1
Conversation response payload:
{ "perPage": 20, "page": 1, "total": 1, "data": [ { "timestamp": "2024-08-02T07:19:08.124Z", "createdAt": "2024-08-02T07:19:08.124Z", "users": [ { "id": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0", "name": "elastic" } ], "title": "The conversation title.", "category": "assistant", "apiConfig": { "connectorId": "86ab-471c-a00b-25b7e20c2d12", "actionTypeId": ".gen-ai", "defaultSystemPromptId": "Default", "model": "gpt-4o" }, "isDefault": true, "messages": [ { "timestamp": "2019-12-13T16:40:33.400Z", "content": "test content", "role": "user" } ], "updatedAt": "2024-08-02T07:39:45.129Z", "replacements": {}, "namespace": "default", "id": "a696901d-efff-4871-acbe-8123af841932" } ] }