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

# Download File

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

## Request

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

Download a file from the repository. Supports image resizing and video thumbnail generation via query parameters.

## Path parameters

- `namespace` string, required
- `repo_name` string, required
- `resource` string, required

## Query parameters

- `width` integer
- `height` integer
- `timestamp` number, double
- `thumbnail` boolean

## Response `200`

File content stream

## Other responses

- `400`: Width or height out of range
- `404`: File not found
- `415`: The file's image format is not supported for resizing

## Changes

- **2026-11-10** `8021aa6fa5bc`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `415`

[Operation history](https://skmtc.dev/oxen/apis/oxen-server/changes/api/repos/:namespace/:repo_name/file/:resource/get.md)

---

[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/8021aa6fa5bc?raw)
