---
title: "Inspect one hosted file without downloading it."
method: HEAD
path: "/api/downloads/{id}/{path}"
tags: ["Artifacts"]
---

# Inspect one hosted file without downloading it.

`HEAD /api/downloads/{id}/{path}`

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/downloads/{id}/{path}`
- Auth: none declared

Inspect one hosted file without downloading it.

**Inputs.** Path, query and header fields are listed below. No request body is required.

**Outputs.** See each status below for its media type, schema and headers. A missing record or unavailable capability is not a successful empty result.

**Errors.** HEAD returns headers without a body. Use the HTTP status and Retry-After.

**Rate limits.** Public read budgets apply by client IP and route group. This operation can have a smaller route-specific budget. Read Retry-After on 429 or retryable 503 responses.

**Example setup.** Use an identifier returned by the matching list, search or create operation. Sample identifiers are not a promise that a record exists.

## Path parameters

- `id` string, required
- `path` string, required

## Query parameters

- `licenseAcceptance` string

## Headers

- `Range` string
- `x-hugging-bay-license-acceptance` string

## Response `200`

File headers

## Other responses

- `206`: Byte-range headers
- `403`: Conditional-license obligations have not been accepted with a valid bounded token
- `404`: Not hosted or not found
- `409`: Hosted file verification or immutable storage metadata no longer matches
- `416`: Requested byte range is not satisfiable
- `503`: Conditional-license acceptance authority is not configured

---

[API](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api.md) · [All operations](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/revisions/ea7ba26b1e27?raw)
