---
title: "Retrieve File"
method: GET
path: "/v1/files/{file_id}"
tags: ["files"]
---

# Retrieve File

`GET /v1/files/{file_id}`

Returns information about a specific file.

## Path parameters

- `file_id` string, uuid, required

## Response `200`

OK

- GetFileResponse
  - `id` string, uuid, required — The unique identifier of the file.
  - `object` string, required — The object type, which is always "file".
  - `bytes` integer, required — The size of the file, in bytes.
  - `created_at` integer, required — The UNIX timestamp (in seconds) of the event.
  - `filename` string, required — The name of the uploaded file.
  - `purpose` 'fine-tune' | 'batch' | 'ocr', required
  - `sample_type` 'pretrain' | 'instruct' | 'batch_request' | 'batch_result' | 'batch_error', required
  - `num_lines` integer, nullable
  - `mimetype` string, nullable
  - `source` 'upload' | 'repository' | 'mistral', required
  - `signature` string, nullable
  - `expires_at` integer, nullable
  - `visibility` 'workspace' | 'user'
  - `deleted` boolean, required

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/versions/933c4ebdcd72/schema)
