---
title: "Repo Image Proxy"
method: GET
path: "/projects/{project_id}/repo-image"
---

# Repo Image Proxy

`GET /projects/{project_id}/repo-image`

## Request

- Base URL: `https://usemeridian.us` (the document declares no server; this is the origin it was published from)
- URL: `https://usemeridian.us/projects/{project_id}/repo-image`
- Auth: none declared

G7.32 — proxy a repo-relative image through the project's GitHub PAT.

Used by markdown preview to render images that live in the connected
repo (e.g. ``![](docs/screenshots/foo.png)``) without exposing the PAT
to the browser. Returns the raw bytes with the upstream Content-Type.

Limits:
 - Hosted-only (PAT lives on the tenant).
 - Path is normalized to disallow ``..``; absolute URLs are rejected.
 - Falls back to 404 when the project isn't connected to a repo.
 - 1 MB response cap (oversized images are 413).

## Path parameters

- `project_id` string, required

## Query parameters

- `path` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usemeridian/apis/meridian.md) · [All operations](https://skmtc.dev/usemeridian/apis/meridian/llms.txt) · [OpenAPI document](https://skmtc.dev/usemeridian/apis/meridian/revisions/f37a894bd374?raw)
