Read static site repository file
Read the contents of a single file from the static site Git repository at a given ref. Defaults to the commit of the latest successful deployment so you read exactly the code that is deployed. Binary files and files larger than 1 MB return metadata only with a null content (check is_binary and truncated). Returns 404 when the file does not exist at the ref. Static sites always have a privateGit or publicGit source; the 422 response occurs if the repository URL is missing, or, with the reason, if the Git connections of the company can no longer read the repository.
Authorizations
Path Parameters
Query Parameters
Branch, tag, or commit SHA to read the file at. Defaults to the commit of the latest successful deployment, falling back to the default branch when there is no such deployment or the static site's repository was changed after it (so the deployed commit no longer exists in the current repo).
"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
Response
Default Response