---
title: "Check if an asset with the given hash exists"
method: HEAD
path: "/api/assets/hash/{hash}"
tags: ["assets"]
---

# Check if an asset with the given hash exists

`HEAD /api/assets/hash/{hash}`

Returns 204 if an asset with the given content hash already exists, 404 otherwise. Used by clients to deduplicate uploads before transferring bytes.

## Path parameters

- `hash` string, required

## Response `200`

Asset exists

## Other responses

- `404` — No asset with this hash

## Changes

- **2026-04-24** `a66055fa384e` — 6 info
  - api tag `assets` added
  - api tag `file` removed
  - removed the pattern `^blake3:[a-f0-9]{64}$` from the `path` request parameter `hash`
  - removed the non-success response with the status `400`
  - …2 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/assets/hash/:hash/head.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/a66055fa384e/schema)
