Parameters
The path to the file to read
Branch name or commit SHA. If not specified, uses the repository’s default branch
When
true, resolves the ref under the ephemeral namespaceJWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:readscope
Response
Returns raw file bytes as a streaming response with appropriateContent-Type header.
Notes
- Returns raw file bytes as streaming response
- If no
refis specified, the repository’s default branch is used (typicallymain)
Error Responses
File or reference doesn’t exist
Invalid JWT or missing
git:read scopeMissing
path parameter or invalid file path