---
title: "Get session diff"
method: GET
path: "/session/{sessionID}/diff"
---

# Get session diff

`GET /session/{sessionID}/diff`

Get all file changes (diffs) made during this session.

## Path parameters

- `sessionID` string, required

## Query parameters

- `directory` string
- `messageID` string

## Response `200`

List of diffs

- FileDiff[]
  - `file` string, required
  - `before` string, required
  - `after` string, required
  - `additions` number, required
  - `deletions` number, required

## Other responses

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

## Changes

- **2026-01-14** `099a52ba8e1c` — 3 info
  - removed the pattern `^ses.*` from the `path` request parameter `sessionID`
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`

[Change history](https://skmtc.dev/martian-engineering/apis/voltcode/changes/session/:sessionID/diff/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/099a52ba8e1c/schema)
