Assistant
Get Session Details
Retrieve the complete chat history and usage for a specific session. Can lookup deleted sessions.
get/api/assistant/sessions/{sessionId}
Path parameters
sessionIdstring required
Session ID to retrieve history for
Response
Complete chat history and session details
Example response
{
"history": [
{
"createTime": "2024-11-14T15:03:22Z",
"id": "PdFc-JIBLkNJ8-bDfz47",
"kind": "case",
"message": {
"id": "c3d44fb8-3bc2-46e2-a7d2-8a8983556d1a",
"role": "user",
"stop_reason": "user_request",
"stop_sequence": "end_turn",
"usage": {
"credits": 1,
"input_tokens": 5,
"output_tokens": 10
}
},
"model": "sonnet-4.5@SOAI",
"operation": "create",
"session_id": "chat_1757086398900_ykhmndscn",
"tags": [
"investigation"
],
"updateTime": "2024-11-14T15:33:02Z",
"userId": "socl_my_new_client"
}
],
"session": {
"createTime": "2024-11-14T15:03:22Z",
"deleteTime": "2025-09-05T15:33:00.000Z",
"entityId": "WKhCuTw4GPvrQA-9ksmn",
"id": "PdFc-JIBLkNJ8-bDfz47",
"kind": "case",
"operation": "create",
"sessionId": "chat_1757086398900_ykhmndscn",
"tags": [
"investigation"
],
"title": "Can you write a suricata rule for me?",
"type": "alert_investigation",
"updateTime": "2024-11-14T15:33:02Z",
"usage": {
"totalCredits": 5,
"totalInputTokens": 1500,
"totalMessages": 25,
"totalOutputTokens": 3000
},
"userId": "socl_my_new_client"
}
}