repos
Read a file from the active repo session workspace.
Read a file from the active repo session workspace. Reads the live session overlay, not just the published base commit. Append #L165, #L165-L180, or a Markdown heading slug (#export-jsdoc) to path to return that region instead of the whole file. A missing or invalid anchor fails instead of ignoring the fragment.
Org permission: package:read.
get/v1/repo-sessions/{session_id}/file
Request
- Base URL: https://api.kody.codes
- URL: https://api.kody.codes/v1/repo-sessions/{session_id}/file
- Auth: HTTP bearer
Path parameters
session_idstring required
Active repo session id from repoOpenSession or repoListSessions.
Query parameters
pathstring required
Repo-relative file path to read. Append #L165, #L165-L180, or a Markdown heading slug (#export-jsdoc) to return that region. A missing anchor fails instead of returning the whole file.
Response
Success.
Changes
No recorded changes to this operation across all 3 revisions of this API.