---
title: "Get versions from hashes"
method: POST
path: "/version_files"
tags: ["version-files"]
---

# Get versions from hashes

`POST /version_files`

This is the same as [`/version_file/{hash}`](#operation/versionFromHash) except it accepts multiple hashes.

## Request body

- HashList — A list of hashes and the algorithm used to create them
  - `hashes` string[], required
  - `algorithm` 'sha1' | 'sha512', required

## Response `200`

Expected response to a valid request

- HashVersionMap — A map from hashes to versions

## Other responses

- `400` — Request was invalid, see given error

---

[API](https://skmtc.net/modrinth/apis/labrinth.md) · [All operations](https://skmtc.net/modrinth/apis/labrinth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modrinth/labrinth/revisions/16bb5dbc54f4/schema)
