---
title: "List the exact base-to-head changed files for an associated pull request"
method: GET
path: "/api/v1/sessions/{sessionId}/pr/{prNumber}/files"
tags: ["sessions"]
---

# List the exact base-to-head changed files for an associated pull request

`GET /api/v1/sessions/{sessionId}/pr/{prNumber}/files`

## Path parameters

- `sessionId` string, required — Session identifier, e.g. project-1.
- `prNumber` integer, required — Associated pull request number.

## Query parameters

- `sourceUrl` string — Stable URL of the selected associated pull request.

## Response `200`

OK

- ListPRFilesResponse
  - `files` WorkspaceFileSummary[], required
    - `additions` integer, required
    - `binary` boolean, required
    - `deletions` integer, required
    - `editable` boolean, required
    - `fileFingerprint` string, required
    - `path` string, required
    - `previousPath` string
    - `size` integer, required
    - `status` 'unmodified' | 'modified' | 'added' | 'deleted' | 'renamed', required
  - `sessionId` string, required
  - `summary` WorkspaceSummary, required
    - `additions` integer, required
    - `deletions` integer, required
    - `files` integer, required
  - `truncated` boolean, required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-09-21** `36b3a9d49c3e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/:sessionId/pr/:prNumber/files/get.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/371302977441?raw)
