---
title: "Download a file or a directory from image as tar archive"
method: GET
path: "/inspect/{image_uuid}/archive"
tags: ["inspect"]
---

# Download a file or a directory from image as tar archive

`GET /inspect/{image_uuid}/archive`

Streams the specified path inside the image root filesystem as a POSIX PAX
tar archive. A directory becomes the archive root; a regular file becomes
a single-entry archive. The response is chunked; total size is not known
upfront. Served as an attachment, `filename` is the path with `/` replaced
by `_` plus `.tar` (e.g. `/bin/true` -> `bin_true.tar`).

## Path parameters

- `image_uuid` string, uuid, required — A UUID string

## Query parameters

- `path` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request - Invalid request parameters
- `401` — Unauthorized - Invalid or missing authentication credentials. Either the `Authorization` bearer token is missing or invalid, or the `Project` header is missing.
- `403` — Forbidden - Token does not have sufficient permissions
- `404` — Not Found - The path does not exist in the image or image does not exist
- `422` — Unprocessable Entity - The specified path is not a regular file or directory inside the image

---

[API](https://skmtc.net/nebius/apis/nebius-openai-compatible-inference-api.md) · [All operations](https://skmtc.net/nebius/apis/nebius-openai-compatible-inference-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nebius/nebius-openai-compatible-inference-api/revisions/0fb323abba3c/schema)
