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

# Retrieve File

`GET /files/{fileId}`

Returns information about a specific file.

## Path parameters

- `fileId` string, required

## Response `200`

OK

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

## Changes

- **2026-07-17** `062746a4d99e` — 1 info
  - endpoint added
- **2025-03-09** `a88399f645b2` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/changes/files/:fileId/get.md)

---

[API](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api.md) · [All operations](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ballerina-platform/mistral-ai-api/revisions/062746a4d99e/schema)
