---
title: "Check for an existing file by hash"
method: GET
path: "/files/check"
tags: ["Files"]
---

# Check for an existing file by hash

`GET /files/check`

## Request

- Base URL: `https://api.varg.ai/v2`
- URL: `https://api.varg.ai/v2/files/check`
- Auth: HTTP bearer

Dedup pre-check — returns whether your account already has a file with
this content hash. Lets clients skip the upload entirely.

## Query parameters

- `hash` string, required

## Response `200`

Check result

- object
  - `exists` boolean
  - `file` object, nullable
    - `file_id` string
    - `url` string
    - `media_type` string
    - `size` integer
    - `filename` string, nullable
    - `origin` string

## Other responses

- `400`: Missing `hash` (`missing_hash`)
- `401`: Missing or invalid API key / JWT

## Changes

- **2026-10-20** `43bcf5ea398d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/varg/apis/varg-api/changes/files/check/get.md)

---

[API](https://skmtc.dev/varg/apis/varg-api.md) · [All operations](https://skmtc.dev/varg/apis/varg-api/llms.txt) · [OpenAPI document](https://skmtc.dev/varg/apis/varg-api/revisions/09d49a6d852f?raw)
