---
title: "Batch download files (Tarball)"
method: POST
path: "/api/repos/{namespace}/{repo_name}/versions/batch-download"
tags: ["Version Files"]
---

# Batch download files (Tarball)

`POST /api/repos/{namespace}/{repo_name}/versions/batch-download`

## Request

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

Download multiple files as a gzipped tarball by providing their hashes.

## Path parameters

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

## Request body `application/gzip`

- integer[]

## Response `200`

Tarball of all requested files, gzipped.

---

[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)
