Get conversations Beta
Get a list of all conversations for the current user.
Query parameters
-
fields array[string]
-
filter string
Search query
-
sort_field string
Field to sort by
Values are
created_at
,is_default
,title
, orupdated_at
. -
sort_order string
Sort order
Values are
asc
ordesc
. -
page integer
Page number
Minimum value is
1
. Default value is1
. -
per_page integer
Conversations per page
Minimum value is
0
. Default value is20
.
GET /api/security_ai_assistant/current_user/conversations/_find
curl \
-X GET https://localhost:5601/api/security_ai_assistant/current_user/conversations/_find
Response examples (200)
{
"data": [
{
"apiConfig": {
"actionTypeId": "string",
"connectorId": "string",
"defaultSystemPromptId": "string",
"model": "string",
"provider": "OpenAI"
},
"category": "assistant",
"createdAt": "string",
"excludeFromLastConversationStorage": true,
"id": "string",
"isDefault": true,
"messages": [
{
"content": "string",
"isError": true,
"reader": {},
"role": "system",
"timestamp": "string",
"traceData": {
"traceId": "string",
"transactionId": "string"
}
}
],
"namespace": "string",
"replacements": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"summary": {
"confidence": "low",
"content": "string",
"public": true,
"timestamp": "string"
},
"timestamp": "string",
"title": "string",
"updatedAt": "string",
"users": [
{
"id": "string",
"name": "string"
}
]
}
],
"page": 42,
"perPage": 42,
"total": 42
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}