---
title: "Export resource as a zip"
method: GET
path: "/api/repos/{namespace}/{repo_name}/export/download/{resource}"
tags: ["Export"]
---

# Export resource as a zip

`GET /api/repos/{namespace}/{repo_name}/export/download/{resource}`

## Request

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

Download a directory as a zip archive. Subject to size limits.

## Path parameters

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

## Response `200`

Zip archive of the directory

## Other responses

- `400`: Download size exceeds limit
- `404`: Repository or resource 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/8021aa6fa5bc?raw)
