Skip to content
Hoody.com

File integrity verification in Hoody is handled through a dedicated query parameter on the file retrieval endpoint. Instead of exposing separate hashing operations, the API computes and returns the SHA256 hash of a file when requested, allowing clients to confirm that a downloaded file matches its expected contents without transferring the file body twice.

Only SHA256 is supported. The endpoint does not accept other algorithms, and there is no algorithm selector — every hash request returns a SHA256 digest.

Append ?hash (or its alias ?sha256) to a standard GET /api/v1/files/{path} request. When the parameter is present, the server skips the file body and returns the SHA256 hash of the file as a plain text response. Without the parameter, the endpoint behaves normally and returns the file contents.

The two query parameters are functionally identical:

  • hash — primary parameter
  • sha256 — alias for hash, provided for convenience

Both return the same value for the same file. Supplying both in a single request is redundant but produces the same response.

NameInTypeRequiredDescription
hashquerybooleanNoGet SHA256 hash of file (returns plain text hash)
sha256querybooleanNoGet SHA256 hash of file (alias for hash)

Request the hash of a file:

Terminal window
curl "https://files.containers.hoody.icu/api/v1/files/path/to/file.bin?hash"

The response body is the lowercase hexadecimal SHA256 digest, exactly 64 characters long, with no surrounding JSON, no whitespace, and no trailing newline.