---
title: "GET /api/sessions"
method: GET
path: "/api/sessions"
tags: ["Ai.Tlbx.MidTerm.OpenApi"]
---

# GET /api/sessions

`GET /api/sessions`

## Response `200`

OK

- SessionListDto
  - `sessions` SessionInfoDto[], required
    - `id` string, required
    - `pid` integer, required
    - `createdAt` string, date-time, required
    - `isRunning` boolean, required
    - `exitCode` integer, nullable, required
    - `cols` integer, required
    - `rows` integer, required
    - `shellType` string, required
    - `name` string, nullable, required
    - `terminalTitle` string, nullable, required
    - `topic` string, nullable, required
    - `notes` string, nullable, required
    - `manuallyNamed` boolean, required
    - `currentDirectory` string, nullable, required
    - `foregroundPid` integer, nullable, required
    - `foregroundName` string, nullable, required
    - `foregroundCommandLine` string, nullable, required
    - `foregroundDisplayName` string, nullable, required
    - `foregroundProcessIdentity` string, nullable, required
    - `agentAttachPoint` SessionAgentAttachPoint, required
      - `provider` string, required
      - `transportKind` string, required
      - `endpoint` string, required
      - `sharedRuntime` boolean, required
      - `source` string, required
      - `preferredThreadId` string, nullable, required
    - `order` integer, required
    - `parentSessionId` string, nullable, required
    - `bookmarkId` string, nullable, required
    - `spaceId` string, nullable, required
    - `workspacePath` string, nullable, required
    - `surface` string, nullable, required
    - `isAdHoc` boolean, required
    - `agentControlled` boolean, required
    - `appServerControlOnly` boolean, required
    - `profileHint` string, nullable, required
    - `appServerControlResumeThreadId` string, nullable, required
    - `hasAppServerControlHistory` boolean, required
    - `supervisor` SessionSupervisorInfoDto, required
      - `state` string, required
      - `profile` string, required
      - `needsAttention` boolean, required
      - `attentionReason` string, nullable, required
      - `attentionScore` integer, required
      - `lastInputAt` string, date-time, nullable, required
      - `lastOutputAt` string, date-time, nullable, required
      - `lastBellAt` string, date-time, nullable, required
      - `currentHeat` number, double, required

---

[API](https://skmtc.net/tlbx-ai/apis/tlbx-api.md) · [All operations](https://skmtc.net/tlbx-ai/apis/tlbx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tlbx-ai/tlbx-api/versions/fbbda676c858/schema)
