---
title: "Retrieve a file"
method: GET
path: "/v1beta/files/{file_id}"
tags: ["Files"]
---

# Retrieve a file

`GET /v1beta/files/{file_id}`

## Request

- Base URL: `https://api.indices.io`
- URL: `https://api.indices.io/v1beta/files/{file_id}`
- Auth: HTTP bearer

Retrieve a file's metadata by its ID.

## Path parameters

- `file_id` string, required: The ID of the file to retrieve.

## Response `200`

Successful response

- File
  - `id` string, required: Unique identifier for the object.
  - `source` 'UPLOAD' | 'RUN_OUTPUT', required
  - `run_id` string, nullable, required: ID of the run that produced this file. Null for uploaded files.
  - `name` string, required: User-facing filename.
  - `size_bytes` integer, required: Size of the file in bytes.
  - `content_type` string, required: MIME type of the file.
  - `crc32c` string, required: Base64-encoded CRC32C checksum of the file content.
  - `created_at` string, date-time, required: Timestamp when the file was created.

## Other responses

- `422`: Validation error

---

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