Get a conversation
Spaces method and path for this operation:
get /s/{space_id}/api/security_ai_assistant/current_user/conversations/{id}
Refer to Spaces for more information.
Get the details of an existing conversation using the conversation ID. This allows users to fetch the specific conversation data by its unique ID.
GET
/api/security_ai_assistant/current_user/conversations/{id}
curl \
--request GET 'http://localhost:5601/api/security_ai_assistant/current_user/conversations/abc123' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"id": "abc123",
"title": "Security Discussion",
"users": [
{
"id": "user1",
"name": "John Doe"
}
],
"category": "assistant",
"messages": [
{
"role": "system",
"content": "Hello, how can I assist you today?",
"timestamp": "2023-10-31T12:00:00Z"
}
],
"apiConfig": {
"connectorId": "12345",
"actionTypeId": "67890"
},
"createdAt": "2023-10-31T12:01:00Z",
"updatedAt": "2023-10-31T12:01:00Z",
"replacements": {},
"excludeFromLastConversationStorage": false
}