Skip to main content
GET
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
kubernetes
/
chat
/
history
/
{conversation_id}
Get a specific chat conversation
import requests

url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history/{conversation_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "<string>",
  "user_id": "<string>",
  "organisation_id": "<string>",
  "cluster_id": "<string>",
  "title": "<string>",
  "question_type": "<string>",
  "messages": [
    {
      "role": "<string>",
      "content": "<string>",
      "id": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "triage": {},
      "context": {},
      "complete": {},
      "toolsUsed": [
        {
          "id": "<string>",
          "toolName": "<string>",
          "status": "<string>",
          "resultCount": 123
        }
      ]
    }
  ],
  "context_summary": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "cluster_name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Path Parameters

conversation_id
string<uuid4>
required

Response

Conversation retrieved successfully

id
string<uuid4>
required
user_id
string
required
organisation_id
string<uuid4>
required
cluster_id
string<uuid4> | null
required
title
string
required
question_type
string | null
required
messages
ChatMessage · object[]
required
context_summary
Context Summary · object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
cluster_name
string | null