---
title: "Get Assistant Sessions"
method: GET
path: "/api/assistant/admin/{userId}/sessions"
tags: ["Assistant"]
---

# Get Assistant Sessions

`GET /api/assistant/admin/{userId}/sessions`

Get chat session metadata from a specific user.

## Path parameters

- `userId` string, required

## Response `200`

List of previous conversation sessions

- ModelAssistantSession[]
  - `createTime` string — The date and time that this object was created. This is a read-only field.
  - `deleteTime` string — The time the session was deleted.
  - `entityId` string — The entity ID associated with this session (e.g., alert soc_id).
  - `id` string — The ID assigned to this object by the server. This is a read-only field.
  - `kind` string — The kind of object. This is a read-only field.
  - `operation` string — The operation that was applied to the object. This is a read-only field.
  - `sessionId` string — The session identifier.
  - `tags` string[] — Metadata about the session.
  - `title` string — The title of the session. Usually the first message sent by the user.
  - `type` string — The type of session (e.g., "alert_investigation").
  - `updateTime` string — The date and time that this object was last modified. This is a read-only field.
  - `usage` ModelSessionUsage — Usage statistics for the session.
    - `modelUsage` object — Usage statistics per model@adapter combination.
    - `totalCredits` integer — The total credits used during the session.
    - `totalInputTokens` integer — The total input tokens used during the session.
    - `totalMessages` integer — The total messages sent during the session.
    - `totalOutputTokens` integer — The total output tokens used during the session.
  - `userId` string — The user ID (or API client ID) that initiated this event. This is a read-only field.

## Other responses

- `401` — Request was not properly authenticated
- `403` — Insufficient permissions for this request
- `500` — Internal SOC error; review SOC logs

---

[API](https://skmtc.net/security-onion-solutions/apis/security-onion-connect-api.md) · [All operations](https://skmtc.net/security-onion-solutions/apis/security-onion-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/security-onion-solutions/security-onion-connect-api/revisions/0576ce393f8d/schema)
