Get conversation

edit

Retrieve an existing Elastic AI Assistant conversation by conversation ID.

Request URL

edit

GET <kibana host>:<port>/api/security_ai_assistant/current_user/conversations/{id}

Example requests

edit

Example 1

Retrieves an Elastic AI Assistant conversation with an id value of a696901d-efff-4871-acbe-8123af841932:

GET api/security_ai_assistant/current_user/conversations/a696901d-efff-4871-acbe-8123af841932

Response code

edit

200 Indicates a successful call.

Response payload

edit

A JSON conversation object with a unique id.

Example 1

Conversation response payload:

{
  "timestamp": "2024-08-02T07:19:08.124Z",
  "createdAt": "2024-08-02T07:19:08.124Z",
  "users": [
    {
      "id": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
      "name": "elastic"
    }
  ],
  "title": "Welcome",
  "category": "assistant",
  "apiConfig": {
    "connectorId": "my-gpt4o-ai",
    "actionTypeId": ".gen-ai"
  },
  "isDefault": true,
  "messages": [],
  "updatedAt": "2024-08-02T07:19:08.124Z",
  "replacements": {},
  "namespace": "default",
  "id": "a696901d-efff-4871-acbe-8123af841932"
}