Get Repository File
Replica
Get Repository File
Reads a repository file for preview or editing. Editable text files include a revision to pass as expectedRevision when saving.
GET
Get Repository File
Authorizations
API key authentication. Obtain your API key from the Replicas dashboard under Organization → Settings → API Keys.
Path Parameters
Query Parameters
Repository-relative file path.
Example:
"src/index.ts"
Response
Repository file content and metadata
Repository file content and metadata. Editable text files include content and revision; supported binary previews may include base64 and mimeType.
Required range:
x >= 0SHA-256 revision to pass as expectedRevision when saving editable text.
Pattern:
^[a-f0-9]{64}$