---
title: "Get file metadata"
method: GET
path: "/files/{id}"
tags: ["Files"]
---

# Get file metadata

`GET /files/{id}`

## Request

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

## Path parameters

- `id` string, required

## Response `200`

File metadata

- File
  - `id` string, required
  - `url` string, required
  - `media_type` string, required
  - `size_bytes` integer, required
  - `hash` string, nullable, required
  - `metadata` object, nullable, required
  - `filename` string, nullable, required
  - `title` string, nullable, required: AI-generated title
  - `subtitle` string, nullable, required
  - `thumbnail_url` string, nullable, required
  - `origin` 'upload' | 'generated', required
  - `tool` string, nullable, required: The tool of the job that produced this file (via lineage)
  - `created_by` string, nullable, required: User id of the person who created the file (`null` for service keys and system)
  - `expires_at` string, date-time, nullable, required: `null` = never expires
  - `created_at` string, date-time, nullable, required

## Other responses

- `401`: Missing or invalid API key / JWT
- `404`: Unknown file (or not owned by the caller)

## Changes

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

[Operation history](https://skmtc.dev/varg/apis/varg-api/changes/files/:id/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)
