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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
1^[0-9a-f]{40}$