Code
Read repository file
Read the text content of a single file from a repository. Supports optional line-range selection via startLine/endLine to avoid fetching entire large files. The response indicates whether the content was truncated by the line range or by a byte-size limit. Supports GitHub and GitLab repositories (not Bitbucket).
post/api/v2/code/read
Request
- Base URLhttps://zeropath.com
- AuthAPI key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret
Request body
Response
File content
Changes
No recorded changes to this operation across all 1 revision of this API.