Python
import requests url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat/history" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
{ "conversations": [ { "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>" } ], "total_count": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show all conversations including deleted
Maximum number of conversations to return
1 <= x <= 1000
Number of conversations to skip
x >= 0
Chat conversations retrieved successfully
Show child attributes