---
title: "Get a file content"
method: GET
path: "/repos/{scm}/{namespace}/{name}/content/{path}"
tags: ["Repository"]
---

# Get a file content

`GET /repos/{scm}/{namespace}/{name}/content/{path}`

## Path parameters

- `scm` string, required
- `namespace` string, required
- `name` string, required
- `path` string, required

## Query parameters

- `ref` string

## Response `200`

file content

---

[API](https://skmtc.net/covergates/apis/codecover-api.md) · [All operations](https://skmtc.net/covergates/apis/codecover-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/covergates/codecover-api/versions/10479aa66d33/schema)
