---
title: "Download version file"
method: GET
path: "/api/repos/{namespace}/{repo_name}/versions/{resource}"
tags: ["Version Files"]
---

# Download version file

`GET /api/repos/{namespace}/{repo_name}/versions/{resource}`

## Request

- Base URL: `https://hub.oxen.ai`
- URL: `https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/versions/{resource}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oxen/apis/oxen-server/docs/api/repos/:namespace/:repo_name/versions/:resource/get.ts> (a function with typed inputs; its response is checked against the schema)

Download a file by its resource path, with optional image resizing.

## Path parameters

- `namespace` string, required
- `repo_name` string, required
- `resource` string, required
- `width` integer, nullable, required
- `height` integer, nullable, required

## Response `200`

File content returned as a stream. Content-Type matches the file's MIME type (e.g., image/jpeg), or the resized image's MIME type.

## Other responses

- `404`: Repository, commit, or file not found

---

[API](https://skmtc.dev/oxen/apis/oxen-server.md) - [All operations](https://skmtc.dev/oxen/apis/oxen-server/llms.txt) - [OpenAPI document](https://skmtc.dev/oxen/apis/oxen-server/revisions/2ae578129949?raw)
