> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the changed files of a reviewed pull request with unified-diff patches

> Fetched live from GitHub at request time; nothing is persisted. patch is absent when GitHub provides none (binary or oversized files). truncated is true when the listing hit GitHub's 3000-file cap. 404 semantics match getPRReview and are resolved before any GitHub call: no review group for this user is indistinguishable from no such PR. The live read additionally requires the caller's current GitHub installation link, so a caller who has disconnected GitHub gets the same 404 even though the review group survives in the listing.



## OpenAPI

````yaml api-reference/openapi.account.json GET /pr-reviews/{pullRequestID}/diff
openapi: 3.1.0
info:
  title: Aether Account & Integrations API
  version: 0.1.0
  description: >-
    Account, billing, and integration-management endpoints used by the Aether
    web app and CLI. Root-mounted; NOT part of the versioned /v1 contract.
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /pr-reviews/{pullRequestID}/diff:
    get:
      tags:
        - pr-reviews
      summary: >-
        Get the changed files of a reviewed pull request with unified-diff
        patches
      description: >-
        Fetched live from GitHub at request time; nothing is persisted. patch is
        absent when GitHub provides none (binary or oversized files). truncated
        is true when the listing hit GitHub's 3000-file cap. 404 semantics match
        getPRReview and are resolved before any GitHub call: no review group for
        this user is indistinguishable from no such PR. The live read
        additionally requires the caller's current GitHub installation link, so
        a caller who has disconnected GitHub gets the same 404 even though the
        review group survives in the listing.
      operationId: getPRReviewDiff
      parameters:
        - in: path
          name: pullRequestID
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  files:
                    items:
                      $ref: '#/components/schemas/PRReviewDiffFile'
                    type: array
                  total_files:
                    format: int64
                    minimum: 0
                    type: integer
                  truncated:
                    type: boolean
                required:
                  - files
                  - total_files
                  - truncated
                type: object
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Gateway
components:
  schemas:
    PRReviewDiffFile:
      additionalProperties: false
      properties:
        additions:
          format: int64
          minimum: 0
          type: integer
        deletions:
          format: int64
          minimum: 0
          type: integer
        patch:
          type: string
        path:
          type: string
        previous_path:
          type: string
        status:
          $ref: '#/components/schemas/PRReviewDiffFileStatus'
      required:
        - path
        - status
        - additions
        - deletions
      type: object
    ErrorResponse:
      additionalProperties: false
      properties:
        code:
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
      type: object
    PRReviewDiffFileStatus:
      enum:
        - added
        - removed
        - modified
        - renamed
        - copied
        - changed
        - unchanged
      type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````