> ## 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 one file's content at a reviewed commit of a pull request

> Fetched live from GitHub at request time; nothing is persisted or cached. ref must be a full commit SHA the review group actually reviewed — the pull request's reconciled head or a review run's head — and any other SHA is a 404 before a single GitHub call: the endpoint serves reviewed commits, not arbitrary ones. kind discriminates the body: text carries content, and binary, too_large (GitHub's 1 MB contents cap) and not_found carry none. A path with no file at that commit — deleted there, never added there, or naming a directory — is a 200 not_found, NOT a 404: this route's 404 means the caller may not read this pull request at this ref at all (no review group, no current GitHub installation link, or an unreviewed ref), and a client cannot tell those from a missing file by status alone.



## OpenAPI

````yaml api-reference/openapi.account.json GET /pr-reviews/{pullRequestID}/file-content
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}/file-content:
    get:
      tags:
        - pr-reviews
      summary: Get one file's content at a reviewed commit of a pull request
      description: >-
        Fetched live from GitHub at request time; nothing is persisted or
        cached. ref must be a full commit SHA the review group actually reviewed
        — the pull request's reconciled head or a review run's head — and any
        other SHA is a 404 before a single GitHub call: the endpoint serves
        reviewed commits, not arbitrary ones. kind discriminates the body: text
        carries content, and binary, too_large (GitHub's 1 MB contents cap) and
        not_found carry none. A path with no file at that commit — deleted
        there, never added there, or naming a directory — is a 200 not_found,
        NOT a 404: this route's 404 means the caller may not read this pull
        request at this ref at all (no review group, no current GitHub
        installation link, or an unreviewed ref), and a client cannot tell those
        from a missing file by status alone.
      operationId: getPRReviewFileContent
      parameters:
        - in: path
          name: pullRequestID
          required: true
          schema:
            format: uuid
            type: string
        - explode: false
          in: query
          name: path
          required: true
          schema:
            minLength: 1
            type: string
        - explode: false
          in: query
          name: ref
          required: true
          schema:
            pattern: ^[0-9a-f]{40}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PRReviewFileContent'
          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:
    PRReviewFileContent:
      discriminator:
        mapping:
          binary:
            $ref: '#/components/schemas/PRReviewFileContentBinary'
          not_found:
            $ref: '#/components/schemas/PRReviewFileContentNotFound'
          text:
            $ref: '#/components/schemas/PRReviewFileContentText'
          too_large:
            $ref: '#/components/schemas/PRReviewFileContentTooLarge'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/PRReviewFileContentText'
        - $ref: '#/components/schemas/PRReviewFileContentBinary'
        - $ref: '#/components/schemas/PRReviewFileContentTooLarge'
        - $ref: '#/components/schemas/PRReviewFileContentNotFound'
    ErrorResponse:
      additionalProperties: false
      properties:
        code:
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
      type: object
    PRReviewFileContentBinary:
      additionalProperties: false
      properties:
        kind:
          enum:
            - binary
          type: string
      required:
        - kind
      type: object
    PRReviewFileContentNotFound:
      additionalProperties: false
      properties:
        kind:
          enum:
            - not_found
          type: string
      required:
        - kind
      type: object
    PRReviewFileContentText:
      additionalProperties: false
      properties:
        content:
          type: string
        kind:
          enum:
            - text
          type: string
      required:
        - kind
        - content
      type: object
    PRReviewFileContentTooLarge:
      additionalProperties: false
      properties:
        kind:
          enum:
            - too_large
          type: string
      required:
        - kind
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````