---
title: "Get session"
method: GET
path: "/session/{sessionID}"
tags: ["Session"]
---

# Get session

`GET /session/{sessionID}`

Retrieve detailed information about a specific VoltCode session.

## Path parameters

- `sessionID` string, required

## Query parameters

- `directory` string

## Response `200`

Get session

- Session
  - `id` string, required
  - `slug` string, required
  - `projectID` string, required
  - `directory` string, required
  - `parentID` string
  - `summary` object
    - `additions` number, required
    - `deletions` number, required
    - `files` number, required
    - `diffs` FileDiff[]
      - `file` string, required
      - `before` string, required
      - `after` string, required
      - `additions` number, required
      - `deletions` number, required
  - `share` object
    - `url` string, required
  - `title` string, required
  - `version` string, required
  - `time` object, required
    - `created` number, required
    - `updated` number, required
    - `compacting` number
    - `compactingBlocking` boolean
    - `archived` number
  - `lcm` object
    - `inputTokens` number, required
    - `threshold` number, required
  - `permission` PermissionRule[]
    - `permission` string, required
    - `pattern` string, required
    - `action` 'allow' | 'deny' | 'ask', required
  - `revert` object
    - `messageID` string, required
    - `partID` string
    - `snapshot` string
    - `diff` string

## Other responses

- `400` — Bad request
- `404` — Not found

## Changes

> 50 revisions in range; 1 could not be searched.

- **2026-02-14** `9df3a7d5f839` — 1 warning, 2 info
  - removed the optional property `summary/diffs/items/status` from the response with the `200` status
  - added the optional property `lcm` to the response with the `200` status
  - added the optional property `time/compactingBlocking` to the response with the `200` status
- **2026-02-02** `e5d84d7cf554` — 1 info
  - added the optional property `summary/diffs/items/status` to the response with the `200` status
- **2026-01-14** `099a52ba8e1c` — 2 warning
  - removed the optional property `lcm` from the response with the `200` status
  - removed the optional property `time/compactingBlocking` from the response with the `200` status

[Change history](https://skmtc.dev/martian-engineering/apis/voltcode/changes/session/:sessionID/get.md)

---

[API](https://skmtc.dev/martian-engineering/apis/voltcode.md) · [All operations](https://skmtc.dev/martian-engineering/apis/voltcode/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/martian-engineering/voltcode/revisions/d28625e4a7ea/schema)
