---
title: "Read managed source files"
method: GET
path: "/v1/projects/{project_id}/source/files"
---

# Read managed source files

`GET /v1/projects/{project_id}/source/files`

## Request

- Base URL: `https://app.ohmyho.st`
- URL: `https://app.ohmyho.st/v1/projects/{project_id}/source/files`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required

## Query parameters

- `commit_sha` string
- `path` string: Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.

## Headers

- `X-Request-Id` string

## Response `200`

The tenant-scoped managed source result.

- union
  - ManagedSourceFiles
    - `commit_sha` string, required
    - `files` SourceManifestFile[], required
      - `path` string, required: Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.
      - `sha256` string, required
      - `byte_length` integer, required
      - `executable` boolean, required
  - ManagedSourceFileResponse
    - `commit_sha` string, required
    - `file` object, required
      - `path` string, required: Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.
      - `sha256` string, required
      - `byte_length` integer, required
      - `executable` boolean, required
      - `content_base64` string, byte, required

## Other responses

- `400`: The request failed.
- `401`: The request failed.
- `404`: The resource does not exist or is not visible to the authenticated principal.
- `409`: The request failed.
- `413`: The request failed.
- `429`: The request failed.
- `503`: The request failed.

---

[API](https://skmtc.dev/ohmyho/apis/ohmyho-st-api.md) · [All operations](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/revisions/d069888c0017?raw)
