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

# Get message diff

`GET /session/{sessionID}/diff`

Get the file changes (diff) that resulted from a specific user message in the session.

## Path parameters

- `sessionID` string, required

## Query parameters

- `directory` string
- `messageID` string

## Response `200`

Successfully retrieved diff

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

## Changes

- **2026-02-14** `9df3a7d5f839` — 1 warning
  - removed the optional property `items/status` from the response with the `200` status
- **2026-02-02** `e5d84d7cf554` — 1 info
  - added the optional property `items/status` to the response with the `200` status
- **2026-01-16** `5699d3b45832` — 1 breaking, 2 info
  - added the pattern `^ses.*` to the `path` request parameter `sessionID`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `404`
- **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/d28625e4a7ea/schema)
