---
title: "GET /registry-git/{asset}/{namespace}/{slug}/file"
method: GET
path: "/registry-git/{asset}/{namespace}/{slug}/file"
tags: ["registry-git"]
---

# GET /registry-git/{asset}/{namespace}/{slug}/file

`GET /registry-git/{asset}/{namespace}/{slug}/file`

Read the resource’s canonical file at a ref on the linked repository

## Path parameters

- `asset` 'apis' | 'schemas' | 'rules' | 'sdks', required
- `namespace` string, required
- `slug` string, required

## Query parameters

- `ref` string

## Response `200`

Default Response

- object
  - `content` string, required
  - `sha` string, required
  - `ref` string, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

## Changes

- **2026-08-21** `4efa9fcf5c1e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/scalar/apis/core/changes/registry-git/:asset/:namespace/:slug/file/get.md)

---

[API](https://skmtc.dev/scalar/apis/core.md) · [All operations](https://skmtc.dev/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalar/core/revisions/7536f3eb84cd/schema)
