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 only occurs if the repository URL is missing.
Documentation Index
Fetch the complete documentation index at: https://api-docs.sevalla.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Static site identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Query Parameters
Path of the file to read, relative to the repository root.
1"src/index.ts"
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
Path of the file relative to the repository root
"src/index.ts"
The ref the file was read at (the resolved commit SHA or branch)
"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
UTF-8 file content. Null when the file is binary or exceeds the 1 MB size limit.
"export const main = () => console.log('hello')"
File size in bytes
-9007199254740991 <= x <= 90071992547409911024
Whether the file was detected as binary. Binary files do not return content.
false
Whether content was omitted because the file exceeds the 1 MB size limit
false