Python
import requests url = "https://platform.ankra.app/api/v1/chat/general/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>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Conversation retrieved successfully
Show child attributes