---
title: "Hash a single file"
method: POST
path: "/operations/hashsumfile"
---

# Hash a single file

`POST /operations/hashsumfile`

Returns the hash of a single file using the specified hash algorithm.

## Query parameters

- `fs` string
- `remote` string
- `hashType` string
- `download` boolean
- `base64` boolean
- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- OperationsHashsumfileRequest
  - `fs` string — Remote name or path containing the file to hash.
  - `remote` string — Path to the specific file within `fs` to hash.
  - `hashType` string — Hash algorithm to use, e.g. `md5`, `sha1`, or another supported name.
  - `download` boolean — Set to true to force reading the data instead of using remote checksums.
  - `base64` boolean — Set to true to emit the hash value in base64 rather than hexadecimal.
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Hash algorithm used and the hash value for a single file from `operations/hashsumfile`.

- object
  - `hashType` string, required — The hash algorithm that was used.
  - `hash` string, required — The hash value of the file.

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

---

[API](https://skmtc.net/rclone/apis/rclone-rc-api.md) · [All operations](https://skmtc.net/rclone/apis/rclone-rc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rclone/rclone-rc-api/versions/2849bf2803ce/schema)
