---
title: "Resolve a file"
method: GET
path: "/{namespace}/{repo}/resolve/{rev}/{path}"
tags: ["models"]
---

# Resolve a file

`GET /{namespace}/{repo}/resolve/{rev}/{path}`

This endpoint requires to follow redirection

## Path parameters

- `namespace` string, required
- `repo` string, required
- `rev` string, required
- `path` string, required — Wildcard path parameter

## Headers

- `Range` string — The range in bytes of the file to download
- `Accept` 'application/vnd.xet-fileinfo+json' — Returns json information about the XET file info - if the file is a xet file

## Response `200`

The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json

- object
  - `hash` string, required — The XET hash of the file
  - `refreshUrl` string, required — The XET auth URL for the file
  - `reconstructionUrl` string, required — The XET reconstruction URL for the file
  - `etag` string, required — The ETag of the file
  - `size` number, required — The size of the file

## Other responses

- `302` — Redirection to file
- `304` — Not modified
- `307` — Redirection to Xet endpoint

## Changes

- **2026-09-08** `bd17546f47b8` — 1 info
  - for the `header` request parameter `Accept`, the type was generalized from no type to `string`

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/:namespace/:repo/resolve/:rev/:path/get.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/74f2b0d17636?raw)
